Home About Applications Software License Documentation Download Community



Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CGCanvas Class Reference

Inheritance diagram for CGCanvas:

CGXULElement CGCanvasBitmap CGLayout CGLayoutDialog CGLayoutTab CGLayoutChooseColour List of all members.

Public Member Functions

void new (void)
void CGCanvas (int width, int height)
void ~CGCanvas (void)
void xor_write_set (bool xor_write)
void colour_background_set (TGColour colour)
void pointer_cursor_set (EGPointerCursor pointer_cursor)
void pointer_capture (bool capture)
void draw_polygon (TGColour colour, bool fill, int point_count, TPoint *point_data, bool closed)

Static Public Member Functions

static void palette_set (CGPalette *palette)
static void queue_draw_disable (bool disable)
static void queue_draw (const TRect *extent)
static void draw_point (TGColour colour, int x, int y)
static void draw_line (TGColour colour, int x, int y, int x2, int y2)
static void draw_rectangle (TGColour colour, bool fill, int x, int y, int x2, int y2)
static void draw_ellipse (TGColour colour, bool fill, int x, int y, int x2, int y2)
static void draw_text (TGColour colour, int x, int y, const char *text)
static void stroke_style_set (int stroke_width, ARRAY< int > *stroke_dasharray, int stroke_dashoffset, int stroke_miterlimit, EGStrokeLineCap stroke_linecap, EGStrokeLineJoin stroke_linejoin)
static void font_set (EGFontFamily font_family, int font_size, EGFontStyle font_style, EGFontWeight font_weight, EGTextDecoration text_decoration)

Public Attributes

 ATTRIBUTE<TRect viewBox>
 EXCEPTION<BadObject>

Private Member Functions

void notify_attribute_update (ARRAY< const TAttribute * > *attribute, bool changing)
void draw_gobject_transformed (struct tag_CGCanvas *canvas, CGObject *gobject, TRect *extent, EGObjectDrawMode mode)
void point_array_utov (int count, TPoint *point)
void point_array_vtou (int count, TPoint *point)
void view_update (bool resize)
void transform_viewbox (void)
void transform_set_gobject (CGObject *gobject, bool viewbox)
void draw (CGCanvas *canvas, TRect *extent)
void resize_request (int x, int y, int width, int height)
void component_reposition (CObjPersistent *object)
void NATIVE_enter (bool enter)
void NATIVE_allocate (struct tag_CGLayout *layout)
void NATIVE_release (struct tag_CGLayout *layout)
void NATIVE_size_allocate (void)
void NATIVE_line_set (TGColour colour, bool fill)
void NATIVE_fill_set (TGColour colour, bool fill)
void NATIVE_stroke_style_set (int stroke_width, ARRAY< int > *stroke_dasharray, int stroke_dashoffset, int stroke_miterlimit, EGStrokeLineCap stroke_linecap, EGStrokeLineJoin stroke_linejoin)
void NATIVE_queue_draw (const TRect *extent)
void NATIVE_draw_point (TGColour colour, int x, int y)
void NATIVE_draw_line (TGColour colour, int x, int y, int x2, int y2)
void NATIVE_draw_rectangle (TGColour colour, bool fill, int x, int y, int x2, int y2)
void NATIVE_draw_ellipse (TGColour colour, bool fill, int x, int y, int x2, int y2)
void NATIVE_draw_polygon (TGColour colour, bool fill, int point_count, TPoint *point_data, bool closed)
void NATIVE_font_set (EGFontFamily font_family, int font_size, EGFontStyle font_style, EGFontWeight font_weight, EGTextDecoration text_decoration)
void NATIVE_text_align_set (EGTextAnchor anchor, EGTextBaseline baseline)
void NATIVE_text_extent_get (int x, int y, const char *text, TRect *result)
void NATIVE_draw_text (TGColour colour, int x, int y, const char *text)
void NATIVE_draw_bitmap (CGBitmap *bitmap, int x, int y)
void NATIVE_draw_bitmap_section (CGBitmap *bitmap, int x, int y, int src_x, int src_y, int width, int height)

Private Attributes

CGCoordSpace coord_space
CGPalettepalette
int enter_count
bool xor_write
bool in_draw
bool queue_draw_disable
bool native_erase_background
bool component_reposition
TGColour native_erase_background_colour
TPoint pointer_position
EGPointerCursor pointer_cursor
byte native_data [64]
int stroke_width
ARRAY< int > stroke_dasharray
int stroke_dashoffset
int stroke_miterlimit
EGStrokeLineCap stroke_linecap
EGStrokeLineJoin stroke_linejoin
TGColour line_colour_current
bool fill_current
TGColour fill_colour_current
EGTextAnchor text_anchor
EGTextBaseline text_baseline
EGFontFamily font_family
EGTextDecoration text_decoration
int resize_width
int resize_height
int content_width
int content_height
int allocated_width
int allocated_height
int scroll_width
int scroll_height
TPoint view_origin

Constructor & Destructor Documentation

void CGCanvas::CGCanvas int  width,
int  height
 

void CGCanvas::~CGCanvas void   ) 
 


Member Function Documentation

void CGCanvas::colour_background_set TGColour  colour  ) 
 

void CGCanvas::component_reposition CObjPersistent object  )  [private]
 

void CGCanvas::draw CGCanvas canvas,
TRect extent
[private]
 

Reimplemented in CGLayout.

static void CGCanvas::draw_ellipse TGColour  colour,
bool  fill,
int  x,
int  y,
int  x2,
int  y2
[inline, static]
 

void CGCanvas::draw_gobject_transformed struct tag_CGCanvas *  canvas,
CGObject gobject,
TRect extent,
EGObjectDrawMode  mode
[private]
 

static void CGCanvas::draw_line TGColour  colour,
int  x,
int  y,
int  x2,
int  y2
[inline, static]
 

static void CGCanvas::draw_point TGColour  colour,
int  x,
int  y
[inline, static]
 

void CGCanvas::draw_polygon TGColour  colour,
bool  fill,
int  point_count,
TPoint point_data,
bool  closed
 

static void CGCanvas::draw_rectangle TGColour  colour,
bool  fill,
int  x,
int  y,
int  x2,
int  y2
[inline, static]
 

static void CGCanvas::draw_text TGColour  colour,
int  x,
int  y,
const char *  text
[inline, static]
 

static void CGCanvas::font_set EGFontFamily  font_family,
int  font_size,
EGFontStyle  font_style,
EGFontWeight  font_weight,
EGTextDecoration  text_decoration
[inline, static]
 

void CGCanvas::NATIVE_allocate struct tag_CGLayout *  layout  )  [private, virtual]
 

Reimplemented from CGXULElement.

Reimplemented in CGCanvasBitmap.

void CGCanvas::NATIVE_draw_bitmap CGBitmap bitmap,
int  x,
int  y
[private]
 

void CGCanvas::NATIVE_draw_bitmap_section CGBitmap bitmap,
int  x,
int  y,
int  src_x,
int  src_y,
int  width,
int  height
[private]
 

void CGCanvas::NATIVE_draw_ellipse TGColour  colour,
bool  fill,
int  x,
int  y,
int  x2,
int  y2
[private]
 

void CGCanvas::NATIVE_draw_line TGColour  colour,
int  x,
int  y,
int  x2,
int  y2
[private]
 

void CGCanvas::NATIVE_draw_point TGColour  colour,
int  x,
int  y
[private]
 

void CGCanvas::NATIVE_draw_polygon TGColour  colour,
bool  fill,
int  point_count,
TPoint point_data,
bool  closed
[private]
 

void CGCanvas::NATIVE_draw_rectangle TGColour  colour,
bool  fill,
int  x,
int  y,
int  x2,
int  y2
[private]
 

void CGCanvas::NATIVE_draw_text TGColour  colour,
int  x,
int  y,
const char *  text
[private]
 

void CGCanvas::NATIVE_enter bool  enter  )  [private]
 

static void CGCanvas::NATIVE_fill_set TGColour  colour,
bool  fill
[inline, private]
 

void CGCanvas::NATIVE_font_set EGFontFamily  font_family,
int  font_size,
EGFontStyle  font_style,
EGFontWeight  font_weight,
EGTextDecoration  text_decoration
[private]
 

static void CGCanvas::NATIVE_line_set TGColour  colour,
bool  fill
[inline, private]
 

void CGCanvas::NATIVE_queue_draw const TRect extent  )  [private]
 

void CGCanvas::NATIVE_release struct tag_CGLayout *  layout  )  [private, virtual]
 

Reimplemented from CGXULElement.

Reimplemented in CGCanvasBitmap.

void CGCanvas::NATIVE_size_allocate void   )  [private]
 

void CGCanvas::NATIVE_stroke_style_set int  stroke_width,
ARRAY< int > *  stroke_dasharray,
int  stroke_dashoffset,
int  stroke_miterlimit,
EGStrokeLineCap  stroke_linecap,
EGStrokeLineJoin  stroke_linejoin
[private]
 

void CGCanvas::NATIVE_text_align_set EGTextAnchor  anchor,
EGTextBaseline  baseline
[private]
 

void CGCanvas::NATIVE_text_extent_get int  x,
int  y,
const char *  text,
TRect result
[private]
 

void CGCanvas::new void   )  [virtual]
 

Reimplemented from CGXULElement.

Reimplemented in CGLayout, and CGLayoutTab.

void CGCanvas::notify_attribute_update ARRAY< const TAttribute * > *  attribute,
bool  changing
[private, virtual]
 

Reimplemented from CGXULElement.

Reimplemented in CGLayout.

static void CGCanvas::palette_set CGPalette palette  )  [inline, static]
 

void CGCanvas::point_array_utov int  count,
TPoint point
[private]
 

void CGCanvas::point_array_vtou int  count,
TPoint point
[private]
 

void CGCanvas::pointer_capture bool  capture  ) 
 

void CGCanvas::pointer_cursor_set EGPointerCursor  pointer_cursor  ) 
 

static void CGCanvas::queue_draw const TRect extent  )  [inline, static]
 

static void CGCanvas::queue_draw_disable bool  disable  )  [inline, static]
 

void CGCanvas::resize_request int  x,
int  y,
int  width,
int  height
[private]
 

static void CGCanvas::stroke_style_set int  stroke_width,
ARRAY< int > *  stroke_dasharray,
int  stroke_dashoffset,
int  stroke_miterlimit,
EGStrokeLineCap  stroke_linecap,
EGStrokeLineJoin  stroke_linejoin
[inline, static]
 

void CGCanvas::transform_set_gobject CGObject gobject,
bool  viewbox
[private]
 

void CGCanvas::transform_viewbox void   )  [private]
 

void CGCanvas::view_update bool  resize  )  [private]
 

void CGCanvas::xor_write_set bool  xor_write  ) 
 


Member Data Documentation

int CGCanvas::allocated_height [private]
 

int CGCanvas::allocated_width [private]
 

CGCanvas::ATTRIBUTE<TRect viewBox>
 

bool CGCanvas::component_reposition [private]
 

int CGCanvas::content_height [private]
 

int CGCanvas::content_width [private]
 

CGCoordSpace CGCanvas::coord_space [private]
 

int CGCanvas::enter_count [private]
 

CGCanvas::EXCEPTION<BadObject>
 

TGColour CGCanvas::fill_colour_current [private]
 

bool CGCanvas::fill_current [private]
 

EGFontFamily CGCanvas::font_family [private]
 

bool CGCanvas::in_draw [private]
 

TGColour CGCanvas::line_colour_current [private]
 

byte CGCanvas::native_data[64] [private]
 

bool CGCanvas::native_erase_background [private]
 

TGColour CGCanvas::native_erase_background_colour [private]
 

CGPalette* CGCanvas::palette [private]
 

EGPointerCursor CGCanvas::pointer_cursor [private]
 

TPoint CGCanvas::pointer_position [private]
 

static void CGCanvas::queue_draw_disable [inline, private]
 

int CGCanvas::resize_height [private]
 

int CGCanvas::resize_width [private]
 

int CGCanvas::scroll_height [private]
 

int CGCanvas::scroll_width [private]
 

ARRAY<int> CGCanvas::stroke_dasharray [private]
 

int CGCanvas::stroke_dashoffset [private]
 

EGStrokeLineCap CGCanvas::stroke_linecap [private]
 

EGStrokeLineJoin CGCanvas::stroke_linejoin [private]
 

int CGCanvas::stroke_miterlimit [private]
 

int CGCanvas::stroke_width [private]
 

EGTextAnchor CGCanvas::text_anchor [private]
 

EGTextBaseline CGCanvas::text_baseline [private]
 

EGTextDecoration CGCanvas::text_decoration [private]
 

TPoint CGCanvas::view_origin [private]
 

bool CGCanvas::xor_write [private]
 


The documentation for this class was generated from the following files:
Generated on Sat Feb 26 15:54:38 2005 for Keystone by  doxygen 1.4.1