MGD::DEVICE_HDC Class Reference

#include <mi32/mg2hdc.h>

Inheritance diagram for MGD::DEVICE_HDC:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ERRVALUE ChangeDC (HDC hdc, int height, int width)
ERRVALUE Create (HDC hdc, int height, int width)
 DEVICE_HDC ()
HDC GetHDC () const
virtual CONTEXTv_CreateContext ()
virtual ERRVALUE v_FillSpan (MGD::CONTEXT *gc, INT32 x1, INT32 x2, INT32 y)
virtual CAPABILITY v_GetCapabilities () const
virtual MGD::PIXEL v_GetColorPixel (const COLOR &color)
virtual ~DEVICE_HDC ()

Constructor & Destructor Documentation

MGD::DEVICE_HDC::DEVICE_HDC  ) 
 

Construct an X device.

After constructing, you should call Create()

virtual MGD::DEVICE_HDC::~DEVICE_HDC  )  [virtual]
 

Destructor.


Member Function Documentation

ERRVALUE MGD::DEVICE_HDC::ChangeDC HDC  hdc,
int  height,
int  width
 

Change the device context that the device points to.

ERRVALUE MGD::DEVICE_HDC::Create HDC  hdc,
int  height,
int  width
 

HDC MGD::DEVICE_HDC::GetHDC  )  const [inline]
 

Definition at line 103 of file mg2hdc.h.

virtual CONTEXT* MGD::DEVICE_HDC::v_CreateContext  )  [virtual]
 

Create a GC for drawing.

Derived classes may override this and make it return anything derived from MGD_GC. MGD_GC'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_HDC::v_FillSpan MGD::CONTEXT gc,
INT32  x1,
INT32  x2,
INT32  y
[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.

Reimplemented from MGD::DEVICE.

virtual CAPABILITY MGD::DEVICE_HDC::v_GetCapabilities  )  const [virtual]
 

Return a list of the capabilities of this device.

Don't forget to OR in the capabilities of the base class in the derived class

Reimplemented from MGD::DEVICE.

virtual MGD::PIXEL MGD::DEVICE_HDC::v_GetColorPixel const COLOR color  )  [virtual]
 

Given a color, return the Pixel value that matches (or is as close possible).

Reimplemented from MGD::DEVICE.


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