Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GDeviceContext Class Reference

Base class for a graphics content, a plane that graphics primitives can be drawn. More...

#include <Gdc2.h>

Inheritance diagram for GDeviceContext:

GSurface GMemDC GPrintDC GScreenDC GImageList List of all members.

Public Member Functions

virtual bool IsAlpha ()
 Returns true if this Surface has an alpha channel.
virtual bool IsAlpha (bool b)
 Creates or destroys the alpha channel for this surface.
bool DrawOnAlpha ()
 Returns true if we are drawing on the alpha channel.
bool DrawOnAlpha (bool Draw)
 True if you want to edit the alpha channel rather than the colour bits.
GSurfaceAlphaDC ()
 Returns the surface of the alpha channel.
virtual COLOUR Colour ()
 Gets the current colour.
virtual COLOUR Colour (COLOUR c, int Bits=0)
 Sets the current colour.
virtual int Op ()
 Gets the current blending mode in operation.
virtual int Op (int Op)
virtual int X ()
 Gets the width in pixels.
virtual int Y ()
 Gets the height in pixels.
virtual int GetBits ()
 Gets the bits per pixel.
virtual int PixelSize ()
 Gets the bytes per pixels.
virtual bool IsScreen ()
 Returns true if the surface is on the screen.
virtual uchar * operator[] (int y)
 Returns a pointer to the start of a scanline, or NULL if not available.
virtual void GetOrigin (int &x, int &y)
 Gets the surface origin.
virtual void SetOrigin (int x, int y)
 Sets the surface origin.

Friends

class GFilter
class GSurface

Detailed Description

Base class for a graphics content, a plane that graphics primitives can be drawn.


Member Function Documentation

COLOUR GDeviceContext::Colour COLOUR  c,
int  Bits = 0
[virtual]
 

Sets the current colour.

Parameters:
c  The new colour
Bits  The bit depth of the new colour or 0 to indicate the depth is the same as the current Surface

Reimplemented in GScreenDC.

int GDeviceContext::Op int  Op  )  [virtual]
 

Sets the current blending mode in operation

See also:
GDC_SET, GDC_AND, GDC_OR, GDC_XOR and GDC_ALPHA

Reimplemented in GScreenDC.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:46:57 2005 for Lgi by  doxygen 1.4.1