Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
CtxDraw Class Reference

Public Types

enum  Mode {
  MODE_NORMAL,
  MODE_INVERT
}
 
enum  Justify {
  JUSTIFY_LEFT_BOTTOM,
  JUSTIFY_RIGHT_TOP,
  JUSTIFY_CENTER
}
 

Public Member Functions

bool is_empty () const
 
void pixel (const int &x, const int &y, const int &r, const int &g, const int &b, const Mode &mode=MODE_NORMAL)
 
void line (const int &x1, const int &y1, const int &x2, const int &y2, const int &r, const int &g, const int &b, const Mode &mode=MODE_NORMAL)
 
void rect (const int &x, const int &y, const int &w, const int &h, const int &r, const int &g, const int &b, const Mode &mode=MODE_NORMAL)
 
void circle (const int &x, const int &y, const int &radius, const int &r, const int &g, const int &b, const Mode &mode=MODE_NORMAL)
 
void fill_rect (const int &x, const int &y, const int &w, const int &h, const int &r, const int &g, const int &b, const int &a, const Mode &mode=MODE_NORMAL)
 
void text (const int &x, const int &y, const int &r, const int &g, const int &b, const Justify &hj, const Justify &vj, const CoreString *s)
 
void framed_text (const int &x, const int &y, const int &r, const int &g, const int &b, const int &bg_r, const int &bg_g, const int &bg_b, const Justify &hj, const Justify &vj, const CoreString *s)
 
virtual float get_view_zoom () const
 
virtual float get_view_offset_x () const
 
virtual float get_view_offset_y () const
 
void remove_all ()
 
void exec ()
 
void flush ()
 

Protected Member Functions

virtual void draw_pixel (const int &x, const int &y, const int &r, const int &g, const int &b, const Mode &mode)
 
virtual void draw_line (const int &x1, const int &y1, const int &x2, const int &y2, const int &r, const int &g, const int &b, const Mode &mode)
 
virtual void draw_rect (const int &x, const int &y, const int &w, const int &h, const int &r, const int &g, const int &b, const Mode &mode)
 
virtual void draw_circle (const int &x, const int &y, const int &radius, const int &r, const int &g, const int &b, const Mode &mode)
 
virtual void draw_fill_rect (const int &x, const int &y, const int &w, const int &h, const int &r, const int &g, const int &b, const int &a, const Mode &mode)
 
virtual void draw_text (const int &x, const int &y, const int &r, const int &g, const int &b, const Justify &hj, const Justify &vj, const CoreString *s)
 
virtual void draw_framed_text (const int &x, const int &y, const int &r, const int &g, const int &b, const int &bg_r, const int &bg_g, const int &bg_b, const Justify &hj, const Justify &vj, const CoreString *s)