In file libs/cs2d/softx/x2d.h:

## class csGraphics2DXLib : public csGraphics2D

> XLIB version.

## Inheritance:

### Public Methods

virtual bool PerformExtension(char* args)
  Extensions for X11 port.
void recompute_grey_palette()
  Use greyscale palette for simulation of 15/16-bit on an 8-bit display.
void recompute_simulated_palette()
  Special function that is available only on the X version
void restore_332_palette()
  This function restores the standard 3:3:2 truecolor palette while simulating 15/16-bit on an 8-bit display
virtual bool SetMouseCursor(int iShape, ITextureHandle *iBitmap)
  Set mouse cursor shape
virtual bool SetMousePosition(int x, int y)
  Set mouse position.

### Protected Methods

void CsPrintf(int msgtype, char *format, ...)
  This function is functionally equivalent to csSystemDriver::CsPrintf

### Private Fields

Cursor EmptyMouseCursor
  Empty mouse cursor (consist of EmptyPixmap)
Pixmap EmptyPixmap
  A empty pixmap
Cursor MouseCursor[int(csmcWait) + 1]
  Mouse cursors (if hardware mouse cursors are used)
ISystem* System
  Pointer to system driver interface
IUnixSystemDriver* UnixSystem
  Pointer to DOS-specific interface

### Private Methods

static void ProcessEvents(void *Param)
  This routine is called once per event loop

### Inherited from csGraphics2D:

### Public Fields

static int Font
static bool FullScreen
static RGBpaletteEntry Palette[256]
static bool PaletteAlloc[256]
static int Width

### Public Methods

static void (*DrawPixel)(int x, int y, int color)
static void (*DrawSprite)(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static unsigned char* (*GetPixelAt)(int x, int y)
static void (*WriteChar)(int x, int y, int fg, int bg, char c)
virtual bool BeginDraw()
virtual void Clear(int color)
void ClearAll(int color)
static bool ClipLine(float &x1, float &y1, float &x2, float &y2, int xmin, int ymin, int xmax, int ymax)
virtual void Close()
virtual bool DoubleBuffer(bool Enable)
virtual bool DoubleBuffer()
virtual void DrawBox(int x, int y, int w, int h, int color)
virtual void DrawLine(float x1, float y1, float x2, float y2, int color)
static void DrawPixel8(int x, int y, int color)
virtual void FinishDraw()
virtual void FreeArea(ImageArea *Area)
virtual void GetClipRect(int &xmin, int &ymin, int &xmax, int &ymax)
int GetNumPalEntries()
virtual int GetPage()
int GetPixelBytes()
csPixelFormat* GetPixelFormat()
virtual void GetStringError(HRESULT hRes, char* szValue)
virtual int GetTextHeight(int Font)
virtual int GetTextWidth(int Font, char *text)
virtual void Initialize()
virtual bool Open(char *Title)
virtual void Print(csRect *area = NULL)
virtual void RestoreArea(ImageArea *Area, bool Free = true)
virtual bool SaveArea(ImageArea *&Area, int x, int y, int w, int h)
virtual void SetClipRect(int xmin, int ymin, int xmax, int ymax)
virtual void SetRGB(int i, int r, int g, int b)
void SysPrintf(int mode, char* text, ...)
virtual void Write(int x, int y, int fg, int bg, char *text)

### Public

### Protected Fields

static int ClipX1
static int* LineAddress
static unsigned char* Memory
static csPixelFormat pfmt
static ISystem* system

### Protected Methods

void complete_pixel_format()
static void DrawPixel16(int x, int y, int color)
static void DrawPixel32(int x, int y, int color)
static void DrawSprite16(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static void DrawSprite32(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static void DrawSprite8(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static unsigned char* GetPixelAt16(int x, int y)
static unsigned char* GetPixelAt32(int x, int y)
static unsigned char* GetPixelAt8(int x, int y)
static void WriteChar16(int x, int y, int fg, int bg, char c)
static void WriteChar32(int x, int y, int fg, int bg, char c)
static void WriteChar8(int x, int y, int fg, int bg, char c)

### Protected

## Documentation

> XLIB version.

`Cursor MouseCursor[int(csmcWait) + 1]`
  Mouse cursors (if hardware mouse cursors are used)

`Cursor EmptyMouseCursor`
  Empty mouse cursor (consist of EmptyPixmap)

`Pixmap EmptyPixmap`
  A empty pixmap

`ISystem* System`
  Pointer to system driver interface

`IUnixSystemDriver* UnixSystem`
  Pointer to DOS-specific interface

`static void ProcessEvents(void *Param)`
  This routine is called once per event loop

`void recompute_simulated_palette()`
  Special function that is available only on the X version. This recomputes the colormap and the lookup table for simulation of 15/16-bit on an 8-bit display to get an optimal display. The default colormap simulates a 3:3:2 truecolor display.

`void restore_332_palette()`
  This function restores the standard 3:3:2 truecolor palette while simulating 15/16-bit on an 8-bit display

`void recompute_grey_palette()`
  Use greyscale palette for simulation of 15/16-bit on an 8-bit display.

`virtual bool PerformExtension(char* args)`
  Extensions for X11 port.

`virtual bool SetMousePosition(int x, int y)`
  Set mouse position.

`virtual bool SetMouseCursor(int iShape, ITextureHandle *iBitmap)`
  Set mouse cursor shape

`void CsPrintf(int msgtype, char *format, ...)`
  This function is functionally equivalent to csSystemDriver::CsPrintf

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de