Diagrama de herencias de GDT::Gui::Texto


Métodos públicos | |
| _GDT_EXPORT_ int | AltoDelTexto () |
| _GDT_EXPORT_ int | AnchoDelTexto () |
| _GDT_EXPORT_ void | AsignarFuente (wchar_t *fontname) |
| NUEVO. | |
| _GDT_EXPORT_ void | AsignarFuente (const char fontname[1024]) |
| Asigna la fuente que usará el texto. | |
| _GDT_EXPORT_ void | Color (int r, int g, int b, int a=255) |
| Asigna el color del texto. | |
| _GDT_EXPORT_ void | Crear (int x1, int y1, int x2, int y2, wchar_t *texto, IGUIElement *padre=0) |
| Crea un control Gui de tipo texto estático. | |
| _GDT_EXPORT_ void | Crear (int x1, int y1, int x2, int y2, wchar_t *texto, bool borde, bool wordWrap, IGUIElement *padre=0) |
| Crea un control Gui de tipo texto estático. | |
| _GDT_EXPORT_ void | Establecer (const wchar_t *text, int x, int y) |
| _GDT_EXPORT_ void | Establecer (const wchar_t *text, int x, int y, int ancho, int alto) |
| _GDT_EXPORT_ bool | EsVisible () |
| _GDT_EXPORT_ wchar_t * | FuenteEnUso () |
| Obtiene el nombre del archivo de fuentes usado. | |
| _GDT_EXPORT_ void | Multilinea (bool activar) |
| _GDT_EXPORT_ void | Posicionar (int x, int y) |
| Ubica el control GUI en las coordenadas que se indiquen. | |
| _GDT_EXPORT_ void | Posicionar (position2d< s32 > pos) |
| Ubica el control GUI donde se indique usando un vector 2D. | |
| _GDT_EXPORT_ int | PosicionX () |
| _GDT_EXPORT_ int | PosicionY () |
| _GDT_EXPORT_ | Texto () |
| _GDT_EXPORT_ void | TextoCentrado (const wchar_t *text, int x, int y) |
| _GDT_EXPORT_ void | TextoCentrado (const wchar_t *text, int x, int y, int ancho, int alto) |
| _GDT_EXPORT_ void | Visible (bool visible) |
| Establece si el control es visible o no. | |
| _GDT_EXPORT_ | ~Texto () |
Atributos públicos | |
| IGUIStaticText * | guitexto |
| wchar_t * | szfuente |
Este Control GUI permite desplegar Texto por la pantalla. Usese para mostrar alertas, mensajes, o para lo que sea conveniente.
| GDT::Gui::Texto::Texto | ( | ) |
| GDT::Gui::Texto::~Texto | ( | ) |
| int GDT::Gui::Texto::AltoDelTexto | ( | ) |
| int GDT::Gui::Texto::AnchoDelTexto | ( | ) |
| void GDT::Gui::Texto::AsignarFuente | ( | wchar_t * | fontname | ) |
NUEVO.
| void GDT::Gui::Texto::AsignarFuente | ( | const char | fontname[1024] | ) |
Asigna la fuente que usará el texto.
| fontname | ruta al archivo de la fuente. Debe ser un bitmap de caracteres. |
| void GDT::Gui::Texto::Color | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | a = 255 | |||
| ) |
Asigna el color del texto.
| r,g,b | colores Azul, Verde y Rojo, de 0 a 255. | |
| a | Transparencia alpha, de 0 a 255. |
| void GDT::Gui::Texto::Crear | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2, | |||
| wchar_t * | texto, | |||
| IGUIElement * | padre = 0 | |||
| ) |
Crea un control Gui de tipo texto estático.
| x1,y1 | posición del texto. | |
| x2,y2 | posición hasta la que llega el texto. | |
| texto | es el texto del Control GUI. | |
| padre | Ejemplo: Texto.Crear( 10, 5 , 40, 15, L"Leeme"); |
| void GDT::Gui::Texto::Crear | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2, | |||
| wchar_t * | texto, | |||
| bool | borde, | |||
| bool | wordWrap, | |||
| IGUIElement * | padre = 0 | |||
| ) |
Crea un control Gui de tipo texto estático.
| void GDT::Gui::Texto::Establecer | ( | const wchar_t * | text, | |
| int | x, | |||
| int | y | |||
| ) |
| void GDT::Gui::Texto::Establecer | ( | const wchar_t * | text, | |
| int | x, | |||
| int | y, | |||
| int | ancho, | |||
| int | alto | |||
| ) |
| bool GDT::Gui::Texto::EsVisible | ( | ) |
| wchar_t * GDT::Gui::Texto::FuenteEnUso | ( | ) |
Obtiene el nombre del archivo de fuentes usado.
NUEVO
| void GDT::Gui::Texto::Multilinea | ( | bool | activar | ) |
| void GDT::Gui::Texto::Posicionar | ( | int | x, | |
| int | y | |||
| ) |
Ubica el control GUI en las coordenadas que se indiquen.
| x,y | coordenadas en pixeles. |
Boton.Posicionar(50, 20);
Reimplementado de GDT::Gui::GuiBase.
| void GDT::Gui::Texto::Posicionar | ( | position2d< s32 > | pos | ) |
Ubica el control GUI donde se indique usando un vector 2D.
| pos | vector posicion 2D, en pixeles |
Boton.Posicionar(50, 20);
Reimplementado de GDT::Gui::GuiBase.
| int GDT::Gui::Texto::PosicionX | ( | ) |
Reimplementado de GDT::Gui::GuiBase.
| int GDT::Gui::Texto::PosicionY | ( | ) |
Reimplementado de GDT::Gui::GuiBase.
| void GDT::Gui::Texto::TextoCentrado | ( | const wchar_t * | text, | |
| int | x, | |||
| int | y | |||
| ) |
| void GDT::Gui::Texto::TextoCentrado | ( | const wchar_t * | text, | |
| int | x, | |||
| int | y, | |||
| int | ancho, | |||
| int | alto | |||
| ) |
| void GDT::Gui::Texto::Visible | ( | bool | visible | ) |
Establece si el control es visible o no.
Ejemplo:
Boton.Visible(false);
Reimplementado de GDT::Gui::GuiBase.
| IGUIStaticText* GDT::Gui::Texto::guitexto |
| wchar_t* GDT::Gui::Texto::szfuente |
1.5.1