|
virtual void | draw_text (const CoreString &text, const int &x, const int &y, const unsigned char &r, const unsigned char &g, const unsigned char &b)=0 |
| Draw the given text at a pixel position, using the given color.
|
|
virtual void | draw_rect (const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b)=0 |
| Draw a rectangle outline using the given color.
|
|
virtual void | draw_rectf (const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b)=0 |
| Draw a solid rectangle using the given color.
|
|
void | draw_text (const CoreString &text, const GMathVec2i &position, GMathVec3uc &color) |
| Draw text.
|
|
void | draw_rect (const GMathVec4i &rectangle, const GMathVec3uc &color) |
| Draw a rectangle outline.
|
|
void | draw_rectf (const GMathVec4i &rectangle, const GMathVec3uc &color) |
| Draw a solid rectangle.
|
|
void | get_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role, unsigned char &r, unsigned char &g, unsigned char &b) const |
| Get a color from the color scheme.
|
|
const GMathVec3uc & | get_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role) const |
| Get a color from the color scheme.
|
|
GuiFont & | get_font (void) const |
| Get the font.
|
|
void | get_text_size (const CoreString &text, int &w, int &h, GuiFont::Weight weight=GuiFont::WEIGHT_NORMAL) const |
| Get the size occupied by a given text at a given weight.
|
|
void | get_text_size (const char *text, int &w, int &h, GuiFont::Weight weight=GuiFont::WEIGHT_NORMAL) const |
| Get the size occupied by a given text at a given weight.
|
|
GuiWidget & | get_widget (void) |
| Get the drawing context's widget.
|
|
bool | is_kindof (const CoreBaseObject &object) const |
|
virtual size_t | get_memory_size () const |
|
CoreString | get_class_info_name () const |
|
const unsigned long & | get_class_info_id () const |
|
virtual bool | is_kindof (const CoreClassInfo &cinfo) const |
|
virtual const CoreClassInfo & | get_class_info () const |
|
template<class T > |
T * | cast () |
|
template<class T > |
const T * | cast () const |
|
bool | is_kindof (const CoreClassInfo &cinfo) const |
|
Contains basic drawing functions to be use in widgets draw()