192 FXApp* getApp()
const {
return app; }
195 void* context()
const {
return ctx; }
203 virtual void drawPointsRel(
const FXPoint* points,
FXuint npoints);
207 virtual void drawLines(
const FXPoint* points,
FXuint npoints);
208 virtual void drawLinesRel(
const FXPoint* points,
FXuint npoints);
209 virtual void drawLineSegments(
const FXSegment* segments,
FXuint nsegments);
227 virtual void drawArcs(
const FXArc* arcs,
FXuint narcs);
241 virtual void fillChords(
const FXArc* chords,
FXuint nchords);
245 virtual void fillArcs(
const FXArc* arcs,
FXuint narcs);
251 virtual void fillPolygon(
const FXPoint* points,
FXuint npoints);
252 virtual void fillConcavePolygon(
const FXPoint* points,
FXuint npoints);
253 virtual void fillComplexPolygon(
const FXPoint* points,
FXuint npoints);
256 virtual void fillPolygonRel(
const FXPoint* points,
FXuint npoints);
257 virtual void fillConcavePolygonRel(
const FXPoint* points,
FXuint npoints);
258 virtual void fillComplexPolygonRel(
const FXPoint* points,
FXuint npoints);
292 virtual void setForeground(
FXColor clr);
295 FXColor getForeground()
const {
return fg; }
298 virtual void setBackground(
FXColor clr);
301 FXColor getBackground()
const {
return bg; }
310 virtual void setDashes(
FXuint dashoffset,
const FXchar *dashpattern,
FXuint dashlength);
313 const FXchar* getDashPattern()
const {
return dashpat; }
316 FXuint getDashOffset()
const {
return dashoff; }
319 FXuint getDashLength()
const {
return dashlen; }
322 virtual void setLineWidth(
FXuint linewidth=0);
325 FXuint getLineWidth()
const {
return width; }
355 FXFillRule getFillRule()
const {
return rule; }
361 FXFunction getFunction()
const {
return rop; }
367 FXImage *getTile()
const {
return tile; }
373 FXBitmap *getStippleBitmap()
const {
return stipple; }
382 virtual void setClipRegion(
const FXRegion& region);
388 virtual void setClipRectangle(
const FXRectangle& rectangle);
391 const FXRectangle& getClipRectangle()
const {
return clip; }
394 FXint getClipX()
const {
return clip.
x; }
397 FXint getClipY()
const {
return clip.y; }
400 FXint getClipWidth()
const {
return clip.w; }
403 FXint getClipHeight()
const {
return clip.h; }
406 virtual void clearClipRectangle();
412 virtual void clearClipMask();
415 virtual void setFont(
FXFont *fnt);
418 FXFont* getFont()
const {
return font; }
421 virtual void clipChildren(
FXbool yes);
Vertical hatch pattern.
Definition: FXDC.h:142
D := 1.
Definition: FXDC.h:49
Double dashed lines.
Definition: FXDC.h:61
Even odd polygon filling.
Definition: FXDC.h:109
A Bitmap is a rectangular array of pixels.
Definition: FXBitmap.h:64
All ones.
Definition: FXDC.h:122
char FXchar
Definition: fxdefs.h:387
FXshort x
Definition: FXRectangle.h:39
Rectangle.
Definition: FXRectangle.h:37
Fill with solid color.
Definition: FXDC.h:96
D := S & ~D.
Definition: FXDC.h:36
Fill with foreground where mask is 1, background otherwise.
Definition: FXDC.h:99
FXshort y1
Definition: FXDC.h:153
Cross-hatch pattern.
Definition: FXDC.h:143
FXshort y2
Definition: FXDC.h:153
short FXshort
Definition: fxdefs.h:395
Horizontal hatch pattern.
Definition: FXDC.h:141
D := ~S ^ D.
Definition: FXDC.h:43
unsigned int FXuint
Definition: fxdefs.h:396
FXFillRule
Fill Rules.
Definition: FXDC.h:108
FXJoinStyle
Line Join Styles.
Definition: FXDC.h:83
D := ~D.
Definition: FXDC.h:44
D := 0.
Definition: FXDC.h:34
Solid lines.
Definition: FXDC.h:59
#define FXAPI
Definition: fxdefs.h:122
D := S.
Definition: FXDC.h:37
FXuchar FXbool
Definition: fxdefs.h:393
Round line end caps.
Definition: FXDC.h:73
FXCapStyle
Line Cap Styles.
Definition: FXDC.h:70
Application Object.
Definition: FXApp.h:158
All zeroes.
Definition: FXDC.h:140
On-off dashed lines.
Definition: FXDC.h:60
FXFillStyle
Fill Styles.
Definition: FXDC.h:95
D := S | ~D.
Definition: FXDC.h:45
FXuint FXColor
Definition: fxdefs.h:454
50% gray
Definition: FXDC.h:131
Winding rule polygon filling.
Definition: FXDC.h:110
FXshort y
Definition: FXDC.h:159
D := ~S & ~D == D := ~(S | D)
Definition: FXDC.h:42
Arc.
Definition: FXDC.h:158
Line segment.
Definition: FXDC.h:152
Abstract Device Context.
Definition: FXDC.h:191
FXLineStyle
Line Styles.
Definition: FXDC.h:58
int FXint
Definition: fxdefs.h:397
Round line joints.
Definition: FXDC.h:85
FXStipplePattern
Stipple/dither patterns.
Definition: FXDC.h:119
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:45
Cross-diagonal hatch pattern.
Definition: FXDC.h:146
D := S & D.
Definition: FXDC.h:35
FXshort b
Definition: FXDC.h:159
D := ~S | ~D == ~(S & D)
Definition: FXDC.h:48
FXshort x
Definition: FXDC.h:159
Butting line end caps.
Definition: FXDC.h:72
FXshort h
Definition: FXDC.h:159
D := ~S & D.
Definition: FXDC.h:38
D := ~S | D.
Definition: FXDC.h:47
Beveled or flat joints.
Definition: FXDC.h:86
Point.
Definition: FXPoint.h:35
D := S | D.
Definition: FXDC.h:41
Reverse diagonal \ hatch pattern.
Definition: FXDC.h:145
FXshort x2
Definition: FXDC.h:153
Mitered or pointy joints.
Definition: FXDC.h:84
Fill where stipple mask is 1.
Definition: FXDC.h:98
D := S ^ D.
Definition: FXDC.h:40
Region.
Definition: FXRegion.h:30
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
Projecting line end caps.
Definition: FXDC.h:74
FXFunction
Drawing (BITBLT) functions.
Definition: FXDC.h:33
D := D.
Definition: FXDC.h:39
FXshort a
Definition: FXDC.h:159
FXshort w
Definition: FXDC.h:159
Fill with tiled bitmap.
Definition: FXDC.h:97
Diagonal // hatch pattern.
Definition: FXDC.h:144
D := ~S.
Definition: FXDC.h:46
Font class.
Definition: FXFont.h:142
FXshort x1
Definition: FXDC.h:153
Don't include last end cap.
Definition: FXDC.h:71
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33
Drawable is an abstract base class for any surface that can be drawn upon, such as a FXWindow...
Definition: FXDrawable.h:41