31 #include <vdk/vdkobj.h> 32 #include <vdk/colors.h> 33 #include <vdk/rawpixmap.h> 57 bool setFg,setBg,setF;
59 void DrawBackground();
62 static int ConfigureEvent(GtkWidget* w, GdkEventConfigure* event,
void* o);
63 static int ExposeEvent(GtkWidget* w, GdkEventExpose* event,
void* o);
84 void DrawString(
int x,
int y,
char* text);
85 void DrawText(
int x,
int y,
char* text,
int n);
86 void DrawPoint(
int x,
int y);
87 void DrawLine(
int x,
int y,
int x1,
int y1);
88 void DrawRect(
int filled,
int x,
int y,
int w,
int h);
89 void DrawArc(
int filled,
int x,
int y,
int width,
90 int height,
int angle1,
int angle2);
91 void DrawPolygon(
int filled,GdkPoint *points, gint npoints);
92 void DrawPoints(GdkPoint *points,
int npoints);
93 void DrawSegments(GdkSegment *segs,
int nsegs);
94 void DrawLines(GdkPoint *points,
int npoints);
95 void DrawPixmap(
int x,
int y,
char *pixfile);
97 void DrawPixmap(
int x,
int y,
char ** data);
This class provides a canvas widget.
Definition: canvas.h:52
void Redraw()
Definition: canvas.cc:134
void SetBackground(VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
Definition: canvas.cc:505
void SetForeground(VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
Definition: canvas.cc:480
VDKReadWriteValueProp< VDKCanvas, bool > EnableClear
Definition: canvas.h:75
Provides a simple RGB color structure.
Definition: vdkutils.h:37
provides a raw color object
Definition: colors.h:36
Provides a raw font.
Definition: vdkfont.h:37
void Clear()
Definition: canvas.cc:80
Provides a raw pixmap.
Definition: rawpixmap.h:37
void SetFont(VDKFont *f)
Definition: canvas.cc:530