- Inherits from:
- DGraphicDrawable
- Declared in:
- DGraphicScreen.h
Object
|
+---DGraphicDrawable
|
+---DGraphicSurface
Class Description
The DGraphicSurface class implements a class for off-screen drawing to a graphic
surface. This surface can then be blit to the graphic screen.
- Last modified:
- 05-Nov-2007 (DGraphicScreen.h)
- Constructors
- - (DGraphicSurface *) init
- Initialise to an graphic surface object
- Returns:
- the object
- - (DGraphicSurface *) init :(unsigned) width :(unsigned) height :(DColor *) fgc :(DColor *) bgc
- Initialise and open a graphic surface object
- Parameters:
- width - the width of the screen
height - the height of the screen
fgc - the (default) foreground color
bgc - the (default) background color
- Returns:
- the object
- Copy related methods
- - shallowCopy
- Do a shallow copy of the graphic surface object (not implemented)
- Returns:
- the object
- Deconstructor
- - free
- Free the graphic surface
- Returns:
- the object
- Surface control methods
- - (DGraphicSurface *) close
- Close the surface
- Returns:
- the object
- - (BOOL) open :(unsigned) width :(unsigned) height :(DColor *) fgc :(DColor *) bgc
- Open a graphic screen surface (with the same depth as the screen)
- Parameters:
- width - the width of the surface
height - the height of the surface
fgc - the (default) foreground color
bgc - the (default) background color
- Returns:
- success
generated 05-Nov-2007 by ObjcDoc 3.0.0