Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXDCWindow Class Reference

#include <FXDCWindow.h>

Inheritance diagram for FX::FXDCWindow:

FX::FXDC List of all members.

Public Methods

 FXDCWindow (FXDrawable *drawable, FXEvent *event)
 FXDCWindow (FXDrawable *drawable)
void begin (FXDrawable *drawable)
 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 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 fillRectangle (FXint x, FXint y, FXint w, FXint h)
 Filled rectangles.

virtual void fillRectangles (const FXRectangle *rectangles, FXuint nrectangles)
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 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 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 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 FXchar *string, FXuint length)
 Draw string.

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 FXchar *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 &region)
 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 setTextFont (FXFont *fnt)
 Set font to draw text with.

virtual void clipChildren (FXbool yes)
 Clip against child windows.

virtual ~FXDCWindow ()
 Destructor.


Detailed Description

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.


Constructor & Destructor Documentation

FX::FXDCWindow::FXDCWindow FXDrawable   drawable,
FXEvent   event
 

Construct for painting in response to expose; This sets the clip rectangle to the exposed rectangle

FX::FXDCWindow::FXDCWindow FXDrawable   drawable
 

Construct for normal drawing; This sets clip rectangle to the whole drawable