28 #ifndef _VDKDRAWAREA_H
29 #define _VDKDRAWAREA_H
31 #include <vdk/vdkobj.h>
32 #include <vdk/colors.h>
33 #include <vdk/rawpixbuf.h>
63 VDKReadWriteValueProp <VDKDrawTool, GdkFill>
Fill;
88 VDKReadWriteValueProp <VDKDrawTool, GdkFunction>
Function;
90 void SetFill (GdkFill fill);
95 void SetTile (
const char* tfile);
105 void SetTile (GdkPixmap* tile);
110 GdkPixmap *
Tile(
char** tdata);
115 GdkPixmap *
Tile(
const char* tfile);
117 void SetFunction(GdkFunction f);
141 VDKReadWriteValueProp <VDKPen, VDKRgb>
Color;
154 VDKReadWriteValueProp <VDKPen, GdkLineStyle>
Style;
170 VDKReadWriteValueProp <VDKPen, GdkCapStyle>
Cap;
180 VDKReadWriteValueProp <VDKPen, GdkJoinStyle>
Join;
182 void SetColor (
VDKRgb color);
183 void SetThickness (
int t);
184 void SetStyle (GdkLineStyle style);
185 void SetCap (GdkCapStyle cap);
186 void SetJoin (GdkJoinStyle join);
213 static void RealizeEvent (GtkWidget* wid, gpointer gp );
240 void DrawString(
int x,
int y,
char* text);
241 void DrawText(
int x,
int y,
char* text,
int n);
242 void DrawPoint(
int x,
int y);
243 void DrawLine(
int x,
int y,
int x1,
int y1);
244 void DrawRect(gint filled,
int x,
int y,
int w,
int h);
245 void DrawArc(
int filled,
int x,
int y,
int width,
246 int height,
int angle1,
int angle2);
247 void DrawPolygon(
int filled,GdkPoint *points, gint npoints);
248 void DrawPoints(GdkPoint *points,
int npoints);
249 void DrawSegments(GdkSegment *segs,
int nsegs);
250 void DrawLines(GdkPoint *points,
int npoints);
251 void DrawPixbuf(
int x,
int y,
const char *pixfile);
252 void DrawPixbuf(
int x,
int y,
VDKPixbuf* pix);
253 void DrawPixbuf(
int x,
int y,
const char ** data);
257 GdkGC* GC () {
return _gc; }
258 GdkDrawable* Drawable () {
return widget->window; }