FX::FXDCWindow Class Reference

#include <FXDCWindow.h>

Inheritance diagram for FX::FXDCWindow:

Inheritance graph
[legend]

List of all members.


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.

Public Member Functions

 FXDCWindow (FXDrawable *drawable, FXEvent *event)
 FXDCWindow (FXDrawable *drawable)
void begin (FXDrawable *drawable)
void end ()
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)
virtual void setBackground (FXColor clr)
virtual void setDashes (FXuint dashoffset, const FXchar *dashpattern, FXuint dashlength)
virtual void setLineWidth (FXuint linewidth=0)
virtual void setLineCap (FXCapStyle capstyle=CAP_BUTT)
virtual void setLineJoin (FXJoinStyle joinstyle=JOIN_MITER)
virtual void setLineStyle (FXLineStyle linestyle=LINE_SOLID)
virtual void setFillStyle (FXFillStyle fillstyle=FILL_SOLID)
virtual void setFillRule (FXFillRule fillrule=RULE_EVEN_ODD)
virtual void setFunction (FXFunction func=BLT_SRC)
virtual void setTile (FXImage *tile, FXint dx=0, FXint dy=0)
virtual void setStipple (FXBitmap *stipple, FXint dx=0, FXint dy=0)
virtual void setStipple (FXStipplePattern stipple, FXint dx=0, FXint dy=0)
virtual void setClipRegion (const FXRegion &region)
virtual void setClipRectangle (FXint x, FXint y, FXint w, FXint h)
virtual void setClipRectangle (const FXRectangle &rectangle)
virtual void clearClipRectangle ()
virtual void setClipMask (FXBitmap *mask, FXint dx=0, FXint dy=0)
virtual void clearClipMask ()
virtual void setFont (FXFont *fnt)
virtual void clipChildren (FXbool yes)
virtual ~FXDCWindow ()
FXAppgetApp () const
void * context () const
FXColor getForeground () const
FXColor getBackground () const
const FXchar * getDashPattern () const
FXuint getDashOffset () const
FXuint getDashLength () const
FXuint getLineWidth () const
FXCapStyle getLineCap () const
FXJoinStyle getLineJoin () const
FXLineStyle getLineStyle () const
FXFillStyle getFillStyle () const
FXFillRule getFillRule () const
FXFunction getFunction () const
FXImagegetTile () const
FXBitmapgetStippleBitmap () const
FXStipplePattern getStipplePattern () const
const FXRectanglegetClipRectangle () const
FXint getClipX () const
FXint getClipY () const
FXint getClipWidth () const
FXint getClipHeight () const
FXFontgetFont () const

Protected Attributes

FXDrawablesurface
FXVisualvisual
FXRectangle rect
FXuint flags
FXPixel devfg
FXPixel devbg
void * xftDraw
void * ctx
FXFontfont
FXStipplePattern pattern
FXBitmapstipple
FXImagetile
FXBitmapmask
FXRectangle clip
FXColor fg
FXColor bg
FXuint width
FXCapStyle cap
FXJoinStyle join
FXLineStyle style
FXFillStyle fill
FXFillRule rule
FXFunction rop
FXchar dashpat [32]
FXuint dashlen
FXuint dashoff
FXint tx
FXint ty
FXint cx
FXint cy

Friends

class FXFont


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

virtual FX::FXDCWindow::~FXDCWindow (  )  [virtual]

Destructor.


Member Function Documentation

void FX::FXDCWindow::begin ( FXDrawable drawable  ) 

Begin locks in a drawable surface.

void FX::FXDCWindow::end (  ) 

End unlock the drawable surface.

virtual FXColor FX::FXDCWindow::readPixel ( FXint  x,
FXint  y 
) [virtual]

Read back pixel.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawPoint ( FXint  x,
FXint  y 
) [virtual]

Draw points.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawLine ( FXint  x1,
FXint  y1,
FXint  x2,
FXint  y2 
) [virtual]

Draw lines.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawRectangle ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) [virtual]

Draw rectangles.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawRoundRectangle ( FXint  x,
FXint  y,
FXint  w,
FXint  h,
FXint  ew,
FXint  eh 
) [virtual]

Draw rounded rectangle with ellipse with ew and ellips height eh.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawArc ( FXint  x,
FXint  y,
FXint  w,
FXint  h,
FXint  ang1,
FXint  ang2 
) [virtual]

Draw arcs.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawEllipse ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) [virtual]

Draw ellipse.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillRectangle ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) [virtual]

Filled rectangles.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillRoundRectangle ( FXint  x,
FXint  y,
FXint  w,
FXint  h,
FXint  ew,
FXint  eh 
) [virtual]

Filled rounded rectangle with ellipse with ew and ellips height eh.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillChord ( FXint  x,
FXint  y,
FXint  w,
FXint  h,
FXint  ang1,
FXint  ang2 
) [virtual]

Fill chord.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillArc ( FXint  x,
FXint  y,
FXint  w,
FXint  h,
FXint  ang1,
FXint  ang2 
) [virtual]

Draw arcs.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillEllipse ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) [virtual]

Fill ellipse.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillPolygon ( const FXPoint points,
FXuint  npoints 
) [virtual]

Filled polygon.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::fillPolygonRel ( const FXPoint points,
FXuint  npoints 
) [virtual]

Filled polygon with relative points.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawHashBox ( FXint  x,
FXint  y,
FXint  w,
FXint  h,
FXint  b = 1 
) [virtual]

Draw hashed box.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawFocusRectangle ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) [virtual]

Draw focus rectangle.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawArea ( const FXDrawable source,
FXint  sx,
FXint  sy,
FXint  sw,
FXint  sh,
FXint  dx,
FXint  dy 
) [virtual]

Draw area from source.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawArea ( const FXDrawable source,
FXint  sx,
FXint  sy,
FXint  sw,
FXint  sh,
FXint  dx,
FXint  dy,
FXint  dw,
FXint  dh 
) [virtual]

Draw area stretched area from source.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawImage ( const FXImage image,
FXint  dx,
FXint  dy 
) [virtual]

Draw image.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawBitmap ( const FXBitmap bitmap,
FXint  dx,
FXint  dy 
) [virtual]

Draw bitmap.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawIcon ( const FXIcon icon,
FXint  dx,
FXint  dy 
) [virtual]

Draw icon.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawText ( FXint  x,
FXint  y,
const FXString string 
) [virtual]

Draw string with base line starting at x, y.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::drawImageText ( FXint  x,
FXint  y,
const FXString string 
) [virtual]

Draw text starting at x, y over filled background.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setForeground ( FXColor  clr  )  [virtual]

Set foreground/background drawing color.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setBackground ( FXColor  clr  )  [virtual]

Set background drawing color.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setDashes ( FXuint  dashoffset,
const FXchar *  dashpattern,
FXuint  dashlength 
) [virtual]

Set dash pattern.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setLineWidth ( FXuint  linewidth = 0  )  [virtual]

Set line width.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setLineCap ( FXCapStyle  capstyle = CAP_BUTT  )  [virtual]

Set line cap style.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setLineJoin ( FXJoinStyle  joinstyle = JOIN_MITER  )  [virtual]

Set line join style.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setLineStyle ( FXLineStyle  linestyle = LINE_SOLID  )  [virtual]

Set line style.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setFillStyle ( FXFillStyle  fillstyle = FILL_SOLID  )  [virtual]

Set fill style.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setFillRule ( FXFillRule  fillrule = RULE_EVEN_ODD  )  [virtual]

Set fill rule.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setFunction ( FXFunction  func = BLT_SRC  )  [virtual]

Set blit function.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setTile ( FXImage tile,
FXint  dx = 0,
FXint  dy = 0 
) [virtual]

Set the tile.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setStipple ( FXBitmap stipple,
FXint  dx = 0,
FXint  dy = 0 
) [virtual]

Set the stipple pattern.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setStipple ( FXStipplePattern  stipple,
FXint  dx = 0,
FXint  dy = 0 
) [virtual]

Set the stipple pattern.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setClipRegion ( const FXRegion region  )  [virtual]

Set clip region.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setClipRectangle ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) [virtual]

Set clip rectangle.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setClipRectangle ( const FXRectangle rectangle  )  [virtual]

Set clip rectangle.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::clearClipRectangle (  )  [virtual]

Clear clipping.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setClipMask ( FXBitmap mask,
FXint  dx = 0,
FXint  dy = 0 
) [virtual]

Set clip mask.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::clearClipMask (  )  [virtual]

Clear clip mask.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::setFont ( FXFont fnt  )  [virtual]

Set font to draw text with.

Reimplemented from FX::FXDC.

virtual void FX::FXDCWindow::clipChildren ( FXbool  yes  )  [virtual]

Clip against child windows.

Reimplemented from FX::FXDC.

FXApp* FX::FXDC::getApp (  )  const [inline, inherited]

Get application.

void* FX::FXDC::context (  )  const [inline, inherited]

Get context handle.

FXColor FX::FXDC::getForeground (  )  const [inline, inherited]

Get foreground drawing color.

FXColor FX::FXDC::getBackground (  )  const [inline, inherited]

Get background drawing color.

const FXchar* FX::FXDC::getDashPattern (  )  const [inline, inherited]

Get dash pattern.

FXuint FX::FXDC::getDashOffset (  )  const [inline, inherited]

Get dash offset.

FXuint FX::FXDC::getDashLength (  )  const [inline, inherited]

Get dash length.

FXuint FX::FXDC::getLineWidth (  )  const [inline, inherited]

Get line width.

FXCapStyle FX::FXDC::getLineCap (  )  const [inline, inherited]

Get line cap style.

FXJoinStyle FX::FXDC::getLineJoin (  )  const [inline, inherited]

Get line join style.

FXLineStyle FX::FXDC::getLineStyle (  )  const [inline, inherited]

Get line style.

FXFillStyle FX::FXDC::getFillStyle (  )  const [inline, inherited]

Get fill style.

FXFillRule FX::FXDC::getFillRule (  )  const [inline, inherited]

Get fill rule.

FXFunction FX::FXDC::getFunction (  )  const [inline, inherited]

Get rasterop function.

FXImage* FX::FXDC::getTile (  )  const [inline, inherited]

Get the tile image.

FXBitmap* FX::FXDC::getStippleBitmap (  )  const [inline, inherited]

Get stipple bitmap.

FXStipplePattern FX::FXDC::getStipplePattern (  )  const [inline, inherited]

Get pattern.

const FXRectangle& FX::FXDC::getClipRectangle (  )  const [inline, inherited]

Return clip rectangle.

FXint FX::FXDC::getClipX (  )  const [inline, inherited]

Return clip x.

FXint FX::FXDC::getClipY (  )  const [inline, inherited]

Return clip y.

FXint FX::FXDC::getClipWidth (  )  const [inline, inherited]

Return clip width.

FXint FX::FXDC::getClipHeight (  )  const [inline, inherited]

Return clip height.

FXFont* FX::FXDC::getFont (  )  const [inline, inherited]

Get text font.


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:57:37 2008 for TnFOX by doxygen v1.5.6