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>

Inheritance diagram for MGD::DEVICE_SIMPLE:

Inheritance graph
[legend]
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)
FILLSPANFUNC GetFillSpanFunc () const
void * GetPrivData () const
ERRVALUE SetDisplayInfo (const DISPLAYINFO &dispinfo)
void SetFillSpanFunc (OLDFILLSPANFUNC FillSpanFunc)
void SetFillSpanFunc (FILLSPANFUNC FillSpanFunc)
void SetPrivData (void *data)
virtual ~DEVICE_SIMPLE ()

Private Member Functions

CONTEXTv_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.

Definition at line 96 of file mg2simpl.h.


Member Typedef Documentation

typedef int(* MGD::DEVICE_SIMPLE::FILLSPANFUNC)(MGD::CONTEXT_SIMPLE *gc, INT32 x1, INT32 x2, INT32 y)
 

Definition at line 99 of file mg2simpl.h.

typedef int(* MGD::DEVICE_SIMPLE::OLDFILLSPANFUNC)(MGD::CONTEXT *gc, INT32 x1, INT32 x2, INT32 y)
 

Definition at line 98 of file mg2simpl.h.


Constructor & Destructor Documentation

MGD::DEVICE_SIMPLE::DEVICE_SIMPLE INT32  height,
INT32  width,
INT32  depth,
OLDFILLSPANFUNC  FillSpan,
void *  PrivData = 0
 

MGD::DEVICE_SIMPLE::DEVICE_SIMPLE INT32  height,
INT32  width,
INT32  depth,
FILLSPANFUNC  FillSpan = 0,
void *  PrivData = 0
 

virtual MGD::DEVICE_SIMPLE::~DEVICE_SIMPLE  )  [virtual]
 

Destructor.


Member Function Documentation

FILLSPANFUNC MGD::DEVICE_SIMPLE::GetFillSpanFunc  )  const [inline]
 

Definition at line 131 of file mg2simpl.h.

void* MGD::DEVICE_SIMPLE::GetPrivData  )  const [inline]
 

Definition at line 124 of file mg2simpl.h.

ERRVALUE MGD::DEVICE_SIMPLE::SetDisplayInfo const DISPLAYINFO dispinfo  )  [inline]
 

Definition at line 127 of file mg2simpl.h.

void MGD::DEVICE_SIMPLE::SetFillSpanFunc OLDFILLSPANFUNC  FillSpanFunc  )  [inline]
 

Definition at line 138 of file mg2simpl.h.

void MGD::DEVICE_SIMPLE::SetFillSpanFunc FILLSPANFUNC  FillSpanFunc  )  [inline]
 

Definition at line 134 of file mg2simpl.h.

void MGD::DEVICE_SIMPLE::SetPrivData void *  data  )  [inline]
 

Definition at line 142 of file mg2simpl.h.

CONTEXT* MGD::DEVICE_SIMPLE::v_CreateContext  )  [private, virtual]
 

Create a GC 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.

virtual ERRVALUE MGD::DEVICE_SIMPLE::v_FillSpan MGD::CONTEXT gc,
INT32  x1,
INT32  x2,
INT32  y
[inline, private, virtual]
 

Fill a horizontal span.

Many of the default method implementations call this to do all the work. Not all of them even need it., so not pure-virtual. 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

Reimplemented from MGD::DEVICE.

Definition at line 162 of file mg2simpl.h.

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.

Definition at line 159 of file mg2simpl.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:40 2004 for TNTsdk by  doxygen 1.3.8-20040913