Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXDC.h>
Inheritance diagram for FX::FXDC:
Public Member Functions | |
FXDC (FXApp *a) | |
FXApp * | getApp () const |
void * | context () const |
virtual FXColor | readPixel (FXint x, FXint y) |
virtual void | drawPoint (FXint x, FXint y) |
virtual void | drawPoints (const FXPoint *points, FXuint npoints) |
virtual void | drawPointsRel (const FXPoint *points, FXuint npoints) |
virtual void | drawLine (FXint x1, FXint y1, FXint x2, FXint y2) |
virtual void | drawLines (const FXPoint *points, FXuint npoints) |
virtual void | drawLinesRel (const FXPoint *points, FXuint npoints) |
virtual void | drawLineSegments (const FXSegment *segments, FXuint nsegments) |
virtual void | drawRectangle (FXint x, FXint y, FXint w, FXint h) |
virtual void | drawRectangles (const FXRectangle *rectangles, FXuint nrectangles) |
virtual void | drawRoundRectangle (FXint x, FXint y, FXint w, FXint h, FXint ew, FXint eh) |
virtual void | drawArc (FXint x, FXint y, FXint w, FXint h, FXint ang1, FXint ang2) |
virtual void | drawArcs (const FXArc *arcs, FXuint narcs) |
virtual void | drawEllipse (FXint x, FXint y, FXint w, FXint h) |
virtual void | fillRectangle (FXint x, FXint y, FXint w, FXint h) |
virtual void | fillRectangles (const FXRectangle *rectangles, FXuint nrectangles) |
virtual void | fillRoundRectangle (FXint x, FXint y, FXint w, FXint h, FXint ew, FXint eh) |
virtual void | fillChord (FXint x, FXint y, FXint w, FXint h, FXint ang1, FXint ang2) |
virtual void | fillChords (const FXArc *chords, FXuint nchords) |
virtual void | fillArc (FXint x, FXint y, FXint w, FXint h, FXint ang1, FXint ang2) |
virtual void | fillArcs (const FXArc *arcs, FXuint narcs) |
virtual void | fillEllipse (FXint x, FXint y, FXint w, FXint h) |
virtual void | fillPolygon (const FXPoint *points, FXuint npoints) |
virtual void | fillConcavePolygon (const FXPoint *points, FXuint npoints) |
virtual void | fillComplexPolygon (const FXPoint *points, FXuint npoints) |
virtual void | fillPolygonRel (const FXPoint *points, FXuint npoints) |
virtual void | fillConcavePolygonRel (const FXPoint *points, FXuint npoints) |
virtual void | fillComplexPolygonRel (const FXPoint *points, FXuint npoints) |
virtual void | drawHashBox (FXint x, FXint y, FXint w, FXint h, FXint b=1) |
virtual void | drawFocusRectangle (FXint x, FXint y, FXint w, FXint h) |
virtual void | drawArea (const FXDrawable *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy) |
virtual void | drawArea (const FXDrawable *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy, FXint dw, FXint dh) |
virtual void | drawImage (const FXImage *image, FXint dx, FXint dy) |
virtual void | drawBitmap (const FXBitmap *bitmap, FXint dx, FXint dy) |
virtual void | drawIcon (const FXIcon *icon, FXint dx, FXint dy) |
virtual void | drawIconShaded (const FXIcon *icon, FXint dx, FXint dy) |
virtual void | drawIconSunken (const FXIcon *icon, FXint dx, FXint dy) |
virtual void | drawText (FXint x, FXint y, const FXString &string) |
virtual void | drawText (FXint x, FXint y, const FXchar *string, FXuint length) |
virtual void | drawImageText (FXint x, FXint y, const FXString &string) |
virtual void | drawImageText (FXint x, FXint y, const FXchar *string, FXuint length) |
virtual void | setForeground (FXColor clr) |
FXColor | getForeground () const |
virtual void | setBackground (FXColor clr) |
FXColor | getBackground () const |
virtual void | setDashes (FXuint dashoffset, const FXchar *dashpattern, FXuint dashlength) |
const FXchar * | getDashPattern () const |
FXuint | getDashOffset () const |
FXuint | getDashLength () const |
virtual void | setLineWidth (FXuint linewidth=0) |
FXuint | getLineWidth () const |
virtual void | setLineCap (FXCapStyle capstyle=CAP_BUTT) |
FXCapStyle | getLineCap () const |
virtual void | setLineJoin (FXJoinStyle joinstyle=JOIN_MITER) |
FXJoinStyle | getLineJoin () const |
virtual void | setLineStyle (FXLineStyle linestyle=LINE_SOLID) |
FXLineStyle | getLineStyle () const |
virtual void | setFillStyle (FXFillStyle fillstyle=FILL_SOLID) |
FXFillStyle | getFillStyle () const |
virtual void | setFillRule (FXFillRule fillrule=RULE_EVEN_ODD) |
FXFillRule | getFillRule () const |
virtual void | setFunction (FXFunction func=BLT_SRC) |
FXFunction | getFunction () const |
virtual void | setTile (FXImage *image, FXint dx=0, FXint dy=0) |
FXImage * | getTile () const |
virtual void | setStipple (FXBitmap *bitmap, FXint dx=0, FXint dy=0) |
FXBitmap * | getStippleBitmap () const |
virtual void | setStipple (FXStipplePattern pat, FXint dx=0, FXint dy=0) |
FXStipplePattern | getStipplePattern () const |
virtual void | setClipRegion (const FXRegion ®ion) |
virtual void | setClipRectangle (FXint x, FXint y, FXint w, FXint h) |
virtual void | setClipRectangle (const FXRectangle &rectangle) |
const FXRectangle & | getClipRectangle () const |
FXint | getClipX () const |
FXint | getClipY () const |
FXint | getClipWidth () const |
FXint | getClipHeight () const |
virtual void | clearClipRectangle () |
virtual void | setClipMask (FXBitmap *bitmap, FXint dx=0, FXint dy=0) |
virtual void | clearClipMask () |
virtual void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
virtual void | clipChildren (FXbool yes) |
virtual | ~FXDC () |
Friends | |
class | FXFont |
A Device Context is used to maintain the state of the graphics drawing system. Defining your drawing code in terms of the Abstract Device Context allows the drawing commands to be rendered on different types of surfaces, such as windows and images (FXDCWindow), or on paper (FXDCPrint). WYSYWYG may be obtained by using the same identical drawing code in your application regardless of the actual device surface being utilized.
See also:
|
Construct dummy DC.
|
|
Destructor.
|
|
Get application.
|
|
Get context handle.
|
|
Read back pixel.
Reimplemented in FX::FXDCWindow. |
|
Draw points.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw lines.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw rectangles.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw rounded rectangle with ellipse with ew and ellips height eh.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw arcs. The argument ang1 specifies the start of the arc relative to the three-o'clock position from the center, in units of degrees*64. The argument ang2 specifies the path and extent of the arc relative to the start of the arc, in units of degrees*64. The arguments x,y,w,h specify the bounding rectangle. Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw ellipse.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Filled rectangles.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Filled rounded rectangle with ellipse with ew and ellips height eh.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Fill chord.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Fill arcs.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Fill ellipse.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Filled polygon.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Filled polygon with relative points.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw hashed box.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw focus rectangle.
Reimplemented in FX::FXDCWindow. |
|
Draw area from source.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw area stretched area from source.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw image.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw bitmap.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw icon.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw string with base line starting at x, y.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Draw text starting at x, y over filled background.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Set foreground drawing color.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get foreground drawing color.
|
|
Set background drawing color.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get background drawing color.
|
|
Set dash pattern and dash offset. A dash pattern of [1 2 3 4] is a repeating pattern of 1 foreground pixel, 2 background pixels, 3 foreground pixels, and 4 background pixels. The offset is where in the pattern the system will start counting. The maximum length of the dash pattern is 32. Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get dash pattern.
|
|
Get dash offset.
|
|
Get dash length.
|
|
Set line width:- 0 means thinnest/fastest possible.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get line width.
|
|
Set line cap style.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get line cap style.
|
|
Set line join style.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get line join style.
|
|
Set line style.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get line style.
|
|
Set fill style.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get fill style.
|
|
Set fill rule.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get fill rule.
|
|
Set rasterop function.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get rasterop function.
|
|
Set the tile image.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get the tile image.
|
|
Set the stipple pattern.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get stipple bitmap.
|
|
Set the stipple pattern.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get pattern.
|
|
Set clip region.
Reimplemented in FX::FXDCWindow. |
|
Set clip rectangle.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Change clip rectangle.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Return clip rectangle.
|
|
Return clip x.
|
|
Return clip y.
|
|
Return clip width.
|
|
Return clip height.
|
|
Clear clipping.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Set clip mask.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Clear clip mask.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Set font to draw text with.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Get text font.
|
|
Clip against child windows.
Reimplemented in FX::FXDCPrint, and FX::FXDCWindow. |
|
Reimplemented in FX::FXDCWindow. |
Copyright © 1997-2005 Jeroen van der Zijp |