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)
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

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.


Member Typedef Documentation


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]
void* MGD::DEVICE_SIMPLE::GetPrivData (  )  const [inline]
ERRVALUE MGD::DEVICE_SIMPLE::SetDisplayInfo ( const DISPLAYINFO dispinfo  )  [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.

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

Generated on Sun Oct 7 21:35:19 2012 for TNTsdk 2012 by  doxygen 1.6.1