Clarisse 4.0 SP5b SDK  4.0.0.0.5.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
GuiDc Class Referenceabstract
Inheritance diagram for GuiDc:
CoreBaseObject CoreBaseType GuiGlWidgetDc GuiWidgetDc GuiSpreadsheetDrawContext

Public Member Functions

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
 
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
 
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
 
void draw_text (const CoreString &text, const GMathVec2i &position, GMathVec3uc &color)
 
void draw_rect (const GMathVec4i &rectangle, const GMathVec3uc &color)
 
void draw_rectf (const GMathVec4i &rectangle, const GMathVec3uc &color)
 
void get_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role, unsigned char &r, unsigned char &g, unsigned char &b) const
 
const GMathVec3uc & get_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role) const
 
GuiFontget_font (void) const
 
void get_text_size (const CoreString &text, int &w, int &h, GuiFont::Weight weight=GuiFont::WEIGHT_NORMAL) const
 
void get_text_size (const char *text, int &w, int &h, GuiFont::Weight weight=GuiFont::WEIGHT_NORMAL) const
 
GuiWidgetget_widget (void)
 
- Public Member Functions inherited from CoreBaseObject
bool is_kindof (const CoreBaseObject &object) const
 
virtual size_t get_memory_size () const
 
CoreString get_class_info_name () const
 
CoreString get_class_interface () const
 
const unsigned long & get_class_info_id () const
 
bool is_kindof (const CoreClassInfo &cinfo) const
 
virtual const CoreClassInfoget_class_info () const
 
bool operator== (const CoreBaseObject &obj) const
 
template<class T >
T * cast ()
 
template<class T >
const T * cast () const
 
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const
 
bool operator== (const CoreBaseType &obj) const
 

Protected Member Functions

 GuiDc (GuiWidget &widget)
 
virtual ~GuiDc (void)
 

Protected Attributes

GuiWidgetm_widget
 The widget this dc draws to.
 

Friends

class GuiWidget
 

Additional Inherited Members

- Static Public Member Functions inherited from CoreBaseObject
static const CoreClassInfoclass_info ()
 
static bool ___class_destructor__ (void *instance, const bool &is_array)
 
template<class T >
static T * cast (CoreBaseObject *object)
 
template<class T >
static const T * cast (const CoreBaseObject *object)
 

Detailed Description

Contains basic drawing functions to be use in widgets draw()

Constructor & Destructor Documentation

GuiDc::GuiDc ( GuiWidget widget)
protected

Constructor

GuiDc::~GuiDc ( void  )
protectedvirtual

Destructor

Member Function Documentation

virtual void GuiDc::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 
)
pure virtual

Draw a rectangle outline using the given color

Implemented in GuiWidgetDc, and GuiGlWidgetDc.

virtual void GuiDc::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 
)
pure virtual

Draw a solid rectangle using the given color

Implemented in GuiWidgetDc, and GuiGlWidgetDc.

virtual void GuiDc::draw_text ( const CoreString text,
const int &  x,
const int &  y,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
)
pure virtual

Draw the given text at a pixel position, using the given color.

Implemented in GuiWidgetDc, and GuiGlWidgetDc.