![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Window Device Context. More...
#include <FXDCWindow.h>
Public Member Functions | |
| FXDCWindow (FXDrawable *draw, FXEvent *event) | |
| Construct for painting in response to expose; This sets the clip rectangle to the exposed rectangle. | |
| FXDCWindow (FXDrawable *draw) | |
| Construct for normal drawing; This sets clip rectangle to the whole drawable. | |
| FXDrawable * | drawable () const |
| Return active drawable. | |
| void | begin (FXDrawable *draw) |
| Begin locks in a drawable surface. | |
| void | end () |
| End unlock the drawable surface. | |
| virtual FXColor | readPixel (FXint x, FXint y) |
| Read back pixel. | |
| virtual void | drawPoint (FXint x, FXint y) |
| Draw points. | |
| 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) |
| Draw lines. | |
| 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) |
| Draw rectangles. | |
| virtual void | drawRectangles (const FXRectangle *rectangles, FXuint nrectangles) |
| virtual void | drawRoundRectangle (FXint x, FXint y, FXint w, FXint h, FXint ew, FXint eh) |
| Draw rounded rectangle with ellipse with ew and ellips height eh. | |
| virtual void | drawArc (FXint x, FXint y, FXint w, FXint h, FXint ang1, FXint ang2) |
| Draw arcs. | |
| virtual void | drawArcs (const FXArc *arcs, FXuint narcs) |
| virtual void | drawEllipse (FXint x, FXint y, FXint w, FXint h) |
| Draw ellipse. | |
| virtual void | fillRectangle (FXint x, FXint y, FXint w, FXint h) |
| Filled rectangles. | |
| virtual void | fillRectangles (const FXRectangle *rectangles, FXuint nrectangles) |
| virtual void | fillRoundRectangle (FXint x, FXint y, FXint w, FXint h, FXint ew, FXint eh) |
| Filled rounded rectangle with ellipse with ew and ellips height eh. | |
| virtual void | fillChord (FXint x, FXint y, FXint w, FXint h, FXint ang1, FXint ang2) |
| Fill chord. | |
| virtual void | fillChords (const FXArc *chords, FXuint nchords) |
| virtual void | fillArc (FXint x, FXint y, FXint w, FXint h, FXint ang1, FXint ang2) |
| Draw arcs. | |
| virtual void | fillArcs (const FXArc *arcs, FXuint narcs) |
| virtual void | fillEllipse (FXint x, FXint y, FXint w, FXint h) |
| Fill ellipse. | |
| virtual void | fillPolygon (const FXPoint *points, FXuint npoints) |
| Filled polygon. | |
| virtual void | fillConcavePolygon (const FXPoint *points, FXuint npoints) |
| virtual void | fillComplexPolygon (const FXPoint *points, FXuint npoints) |
| virtual void | fillPolygonRel (const FXPoint *points, FXuint npoints) |
| Filled polygon with relative points. | |
| virtual void | fillConcavePolygonRel (const FXPoint *points, FXuint npoints) |
| virtual void | fillComplexPolygonRel (const FXPoint *points, FXuint npoints) |
| virtual void | fillVerticalGradient (FXint x, FXint y, FXint w, FXint h, FXColor top, FXColor bottom) |
| Fill vertical gradient rectangle. | |
| virtual void | fillHorizontalGradient (FXint x, FXint y, FXint w, FXint h, FXColor left, FXColor right) |
| Fill horizontal gradient rectangle. | |
| virtual void | drawHashBox (FXint x, FXint y, FXint w, FXint h, FXint b=1) |
| Draw hashed box. | |
| virtual void | drawFocusRectangle (FXint x, FXint y, FXint w, FXint h) |
| Draw focus rectangle. | |
| virtual void | drawArea (const FXDrawable *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy) |
| Draw area from source. | |
| virtual void | drawArea (const FXDrawable *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy, FXint dw, FXint dh) |
| Draw area stretched area from source. | |
| virtual void | drawImage (const FXImage *image, FXint dx, FXint dy) |
| Draw image. | |
| virtual void | drawBitmap (const FXBitmap *bitmap, FXint dx, FXint dy) |
| Draw bitmap. | |
| virtual void | drawIcon (const FXIcon *icon, FXint dx, FXint dy) |
| Draw icon. | |
| 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) |
| Draw string with base line starting at x, y. | |
| virtual void | drawText (FXint x, FXint y, const FXchar *string, FXuint length) |
| virtual void | drawImageText (FXint x, FXint y, const FXString &string) |
| Draw text starting at x, y over filled background. | |
| virtual void | drawImageText (FXint x, FXint y, const FXchar *string, FXuint length) |
| virtual void | setForeground (FXColor clr) |
| Set foreground/background drawing color. | |
| virtual void | setBackground (FXColor clr) |
| Set background drawing color. | |
| virtual void | setDashes (FXuint dashoffset, const FXuchar *dashpattern, FXuint dashlength) |
| Set dash pattern. | |
| virtual void | setLineWidth (FXuint linewidth=0) |
| Set line width. | |
| virtual void | setLineCap (FXCapStyle capstyle=CAP_BUTT) |
| Set line cap style. | |
| virtual void | setLineJoin (FXJoinStyle joinstyle=JOIN_MITER) |
| Set line join style. | |
| virtual void | setLineStyle (FXLineStyle linestyle=LINE_SOLID) |
| Set line style. | |
| virtual void | setFillStyle (FXFillStyle fillstyle=FILL_SOLID) |
| Set fill style. | |
| virtual void | setFillRule (FXFillRule fillrule=RULE_EVEN_ODD) |
| Set fill rule. | |
| virtual void | setFunction (FXFunction func=BLT_SRC) |
| Set blit function. | |
| virtual void | setTile (FXImage *tile, FXint dx=0, FXint dy=0) |
| Set the tile. | |
| virtual void | setStipple (FXBitmap *stipple, FXint dx=0, FXint dy=0) |
| Set the stipple pattern. | |
| virtual void | setStipple (FXStipplePattern stipple, FXint dx=0, FXint dy=0) |
| Set the stipple pattern. | |
| virtual void | setClipRegion (const FXRegion ®ion) |
| Set clip region. | |
| virtual void | setClipRectangle (FXint x, FXint y, FXint w, FXint h) |
| Set clip rectangle. | |
| virtual void | setClipRectangle (const FXRectangle &rectangle) |
| Set clip rectangle. | |
| virtual void | clearClipRectangle () |
| Clear clipping. | |
| virtual void | setClipMask (FXBitmap *mask, FXint dx=0, FXint dy=0) |
| Set clip mask. | |
| virtual void | clearClipMask () |
| Clear clip mask. | |
| virtual void | setFont (FXFont *fnt) |
| Set font to draw text with. | |
| virtual void | clipChildren (FXbool yes) |
| Clip against child windows. | |
| virtual | ~FXDCWindow () |
| Destructor. | |
Public Member Functions inherited from FX::FXDC | |
| FXDC (FXApp *a) | |
| Construct dummy DC. | |
| FXApp * | getApp () const |
| Get application. | |
| void * | context () const |
| Get context handle. | |
| FXColor | getForeground () const |
| Get foreground drawing color. | |
| FXColor | getBackground () const |
| Get background drawing color. | |
| const FXuchar * | getDashPattern () const |
| Get dash pattern. | |
| FXuint | getDashOffset () const |
| Get dash offset. | |
| FXuint | getDashLength () const |
| Get dash length. | |
| FXuint | getLineWidth () const |
| Get line width. | |
| FXCapStyle | getLineCap () const |
| Get line cap style. | |
| FXJoinStyle | getLineJoin () const |
| Get line join style. | |
| FXLineStyle | getLineStyle () const |
| Get line style. | |
| FXFillStyle | getFillStyle () const |
| Get fill style. | |
| FXFillRule | getFillRule () const |
| Get fill rule. | |
| FXFunction | getFunction () const |
| Get rasterop function. | |
| FXImage * | getTile () const |
| Get the tile image. | |
| FXBitmap * | getStippleBitmap () const |
| Get stipple bitmap. | |
| FXStipplePattern | getStipplePattern () const |
| Get pattern. | |
| const FXRectangle & | getClipRectangle () const |
| Return clip rectangle. | |
| FXint | getClipX () const |
| Return clip x. | |
| FXint | getClipY () const |
| Return clip y. | |
| FXint | getClipWidth () const |
| Return clip width. | |
| FXint | getClipHeight () const |
| Return clip height. | |
| FXFont * | getFont () const |
| Get text font. | |
| virtual | ~FXDC () |
| Destructor. | |
Protected Attributes | |
| FXDrawable * | surface |
| FXRectangle | rect |
| FXPixel | devfg |
| FXPixel | devbg |
| void * | xftDraw |
| FXuint | flags |
Protected Attributes inherited from FX::FXDC | |
| void * | ctx |
| FXFont * | font |
| FXStipplePattern | pattern |
| FXBitmap * | stipple |
| FXImage * | tile |
| FXBitmap * | mask |
| FXRectangle | clip |
| FXColor | fg |
| FXColor | bg |
| FXuint | width |
| FXCapStyle | cap |
| FXJoinStyle | join |
| FXLineStyle | style |
| FXFillStyle | fill |
| FXFillRule | rule |
| FXFunction | rop |
| FXuchar | dashpat [32] |
| FXuint | dashlen |
| FXuint | dashoff |
| FXint | tx |
| FXint | ty |
| FXint | cx |
| FXint | cy |
Friends | |
| class | FXFont |
Window Device Context.
The Window Device Context allows drawing into an FXDrawable, such as an on-screen window (FXWindow and derivatives) or an off-screen image (FXImage and its derivatives). Because certain hardware resources are locked down, only one FXDCWindow may be locked on a drawable at any one time.
|
|