Class DGraphicDrawable

Inherits from:
Object
Conforms to:
DDrawable
Declared in:
DGraphicScreen.h

Class Hierarchy

    Object
      |
      +---DGraphicDrawable

Class Description

The DGraphicDrawable class implements a class with the shared methods between the graphic screen class and the graphic surface class. It contains the methods for drawing, clipping, color.. The x and y positions start from zero, so the screen size is 0..maxX and 0..maxY (inclusive). ToDo: drawing boxes, circles..

Direct subclasses:
DGraphicScreen, DGraphicSurface
Last modified:
05-Nov-2007 (DGraphicScreen.h)

Instance Variables

protected unsigned _maxX
the right x-position of the drawable
protected unsigned _maxY
the bottom y-position of the drawable
protected DColor *_fgc
the current foreground color
protected DColor *_bgc
the current background color
protected id <DFont> _font
the current font
protected DSimpleFont *_basicFont
the basic font
protected void *_surface
the surface of the drawable
private BOOL _drawing
is drawing active ?
private unsigned _clipMinX
the left x-position for the clip area
private unsigned _clipMaxX
the right x-position for the clip area
private unsigned _clipMinY
the top y-position for the clip area
private unsigned _clipMaxY
the bottom y-position for the clip area
private unsigned _cursorX
the x-position of the cursor
private unsigned _cursorY
the y-position of the cursor
private unsigned _nextY
the next y-position after writing text
private int _lineType
the last line type
private int _dashLength
the length of a dash
private int _bezierSteps
the number of iteration steps for a bezier curve (def. 15)

Method Index


generated 05-Nov-2007 by ObjcDoc 3.0.0