Home | All Classes | Grouped Classes | Index | Search

Class CL_Canvas

Canvas pixelbuffer/surface class. More...

Derived from: none
Derived by: none
Group: Display (Display 2D)

#include <ClanLib/display.h>

Construction:

CL_Canvas

Constructs a canvas.

Attributes:

get_pixelbuffer

Returns the pixel buffer of the canvas.

get_gc

Returns the graphic context of the canvas.

Operations:

operator =

Copy assignment operator.

draw

Draw canvas onto graphic context.

Detailed description:

The Canvas class is a special pixelbuffer that is optimized for rapid changes in its pixel data. This is opposite to CL_Surface, which is optimzied for no changes in its pixel data.



Questions or comments, write to the
ClanLib mailing list.