Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Public Member Functions | |
GuiSpreadsheetDrawContext (GuiSpreadsheet &spreadsheet) | |
GuiFont & | get_font () const |
![]() | |
virtual void | draw_pixel (const int &x, const int &y, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
virtual void | draw_line (const int &x1, const int &y1, const int &x2, const int &y2, const unsigned char &r, const unsigned char &g, const unsigned char &b, const LineStyle ls=LINE_STYLE_SOLID) |
virtual void | draw_text (const CoreString &text, const int &x, const int &y) |
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) override |
Draw the given text at a pixel position, using the given color. | |
virtual bool | draw_text_clampable (const CoreString &text, const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b, const bool &points=false, const bool &clamp_left=false, const bool &justify_right=false) |
virtual void | draw_text (const CoreString &text, const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b, const GuiWidget::Justify &justification=GuiWidget::JUSTIFY_CENTER) |
virtual void | draw_wrapped_text (const CoreString &text, const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
virtual void | draw_icon_text (const GuiImage &icon, const CoreString &text, const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b, const GuiWidget::Justify &justification=GuiWidget::JUSTIFY_CENTER, const GuiWidget::IconPosition &pos=GuiWidget::ICON_POSITION_LEFT, const bool &enabled=true, const bool &icon_highlight=false) |
virtual void | draw_round_frame (const GuiWidget::Roundness &roundness, const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
virtual void | draw_round_frame (const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
void | draw_round_framef (const int &x, const int &y, const int &w, const int &h, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
void | draw_round_framef (const int &x, const int &y, const int &w, const int &h, const unsigned char &fgr, const unsigned char &fgg, const unsigned char &fgb, const unsigned char &bgr, const unsigned char &bgg, const unsigned char &bgb) |
virtual void | draw_round_framef (const GuiWidget::Roundness &roundness, const int &x, const int &y, const int &w, const int &h, const unsigned char &fgr, const unsigned char &fgg, const unsigned char &fgb, const unsigned char &bgr, const unsigned char &bgg, const unsigned char &bgb) |
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) override |
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) override |
Draw a solid rectangle using the given color. | |
void | draw_triangle (int x, int y, int x1, int y1, int x2, int y2, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
void | draw_trianglef (int x, int y, int x1, int y1, int x2, int y2, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
![]() | |
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 |
Public Attributes | |
int | x |
int | y |
int | text_x |
int | text_y |
int | width |
int | height |
int | text_width |
int | text_height |
unsigned char | text_color [3] |
unsigned char | text_disabled_color [3] |
unsigned char | background_color [3] |
bool | highlight_text |
bool | is_row_selected |
bool | is_cell_selected |
bool | is_cell_highlighted |
bool | has_selection_cursor |
bool | is_read_only |
const OfContext * | working_context |
Additional Inherited Members | |
![]() | |
enum | LineStyle { LINE_STYLE_SOLID = 0, LINE_STYLE_DASH = 1, LINE_STYLE_DOT = 2 } |
![]() | |
static const CoreClassInfo & | class_info () |
template<class T > | |
static T * | cast (CoreBaseObject *object) |
template<class T > | |
static const T * | cast (const CoreBaseObject *object) |
![]() | |
GuiWidgetDc (GuiWidget &widget) | |
![]() | |
GuiWidget & | m_widget |
The widget this dc draws to. | |