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; }
This class provides a drawing area widget. This widget should substitute VDKCanvas which is now depre...
Definition: vdkdrawarea.h:210
void Clear()
Definition: vdkdrawarea.cc:253
Provides a raw image wrapping GdkPixbuf This class should in time substitute VDKRawPixmap that from n...
Definition: rawpixbuf.h:40
VDKReadWriteValueProp< VDKPen, GdkLineStyle > Style
Definition: vdkdrawarea.h:154
VDKReadWriteValueProp< VDKPen, gint > Thickness
Definition: vdkdrawarea.h:145
virtual ~VDKDrawingArea()
Definition: vdkdrawarea.cc:240
VDKBrush * Brush
Definition: vdkdrawarea.h:225
void SetBackground(VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
Definition: vdkdrawarea.cc:417
virtual ~VDKPen()
Definition: vdkdrawarea.h:137
Provides a simple RGB color structure.
Definition: vdkutils.h:37
VDKReadWriteValueProp< VDKPen, VDKRgb > Color
Definition: vdkdrawarea.h:141
VDKReadWriteValueProp< VDKPen, GdkCapStyle > Cap
Definition: vdkdrawarea.h:170
This class provides a Pen to customize drawing.
Definition: vdkdrawarea.h:125
VDKPen * Pen
Definition: vdkdrawarea.h:221
This class provides a brush to customize drawing. Actually unused, left for future improuvments...
Definition: vdkdrawarea.h:195
VDKReadWriteValueProp< VDKPen, GdkJoinStyle > Join
Definition: vdkdrawarea.h:180
void SetForeground(VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
Definition: vdkdrawarea.cc:398
GtkWidget * widget
Definition: vdkobj.h:241
VDKDrawingArea(VDKForm *owner)
Definition: vdkdrawarea.cc:216
Hierarchy root class.
Definition: vdkutils.h:263
virtual void SetFont(VDKFont *f)
Definition: vdkdrawarea.cc:439
Provides a raw font.
Definition: vdkfont.h:37
VDKPen(VDKDrawingArea *owner)
Definition: vdkdrawarea.cc:147