MGD::DEVICE_SIMPLE Class Reference
This class is an MGD::DEVICE that lets you pass a pointer to a fill span function.
More...
#include <mi32/mg2simpl.h>
List of all members.
Public Types |
| typedef int(* | FILLSPANFUNC )(MGD::CONTEXT_SIMPLE *gc, INT32 x1, INT32 x2, INT32 y) |
| typedef int(* | OLDFILLSPANFUNC )(MGD::CONTEXT *gc, INT32 x1, INT32 x2, INT32 y) |
Public Member Functions |
| | DEVICE_SIMPLE (INT32 height, INT32 width, INT32 depth, FILLSPANFUNC FillSpan=0, void *PrivData=0) |
| | DEVICE_SIMPLE (INT32 height, INT32 width, INT32 depth, OLDFILLSPANFUNC FillSpan, void *PrivData=0) |
| virtual | ~DEVICE_SIMPLE () |
| FILLSPANFUNC | GetFillSpanFunc () const |
| void * | GetPrivData () const |
| ERRVALUE | SetDisplayInfo (const DISPLAYINFO &dispinfo) |
| void | SetFillSpanFunc (OLDFILLSPANFUNC FillSpanFunc) |
| void | SetFillSpanFunc (FILLSPANFUNC FillSpanFunc) |
| void | SetPrivData (void *data) |
Private Member Functions |
| CONTEXT * | v_CreateContext () |
| virtual ERRVALUE | v_FillSpan (MGD::CONTEXT *gc, INT32 x1, INT32 x2, INT32 y) |
| virtual COLORSPACE | v_GetColorSpace () const |
Detailed Description
This class is an MGD::DEVICE that lets you pass a pointer to a fill span function.
This is mostly for use by old code that used to use MgdInitSimple(). In fact, MgdInitSimple() is now implemented using this class.
Member Typedef Documentation
Constructor & Destructor Documentation
| virtual MGD::DEVICE_SIMPLE::~DEVICE_SIMPLE |
( |
|
) |
[virtual] |
Member Function Documentation
| FILLSPANFUNC MGD::DEVICE_SIMPLE::GetFillSpanFunc |
( |
|
) |
const [inline] |
| void* MGD::DEVICE_SIMPLE::GetPrivData |
( |
|
) |
const [inline] |
| void MGD::DEVICE_SIMPLE::SetFillSpanFunc |
( |
OLDFILLSPANFUNC |
FillSpanFunc |
) |
[inline] |
| void MGD::DEVICE_SIMPLE::SetFillSpanFunc |
( |
FILLSPANFUNC |
FillSpanFunc |
) |
[inline] |
| void MGD::DEVICE_SIMPLE::SetPrivData |
( |
void * |
data |
) |
[inline] |
| CONTEXT* MGD::DEVICE_SIMPLE::v_CreateContext |
( |
|
) |
[private, virtual] |
Create CONTEXT for drawing.
Derived classes may override this and make it return anything derived from MGD::CONTEXT. MGD::CONTEXT's constructor is private, so this is the only way for calling code to create a GC.
Reimplemented from MGD::DEVICE.
Fill a horizontal span.
Many of the default method implementations call this to do all the work. Derived classes that implement this do not need to worry about clipping, as the default implementation in CONTEXT does clipping and then calls this version.
If your implementation handles bitmap pattern fills in a way that's optimized for your dest device, you should return CAPABALITY_BitmapFill in GetCapabilities. Default implementation does nothing.
Reimplemented from MGD::DEVICE.
| virtual COLORSPACE MGD::DEVICE_SIMPLE::v_GetColorSpace |
( |
|
) |
const [inline, private, virtual] |
Return the "native" COLORSPACE used by the display Image operations using this colorspace will be more effeciant.
Reimplemented from MGD::DEVICE.
The documentation for this class was generated from the following file: