DrawContext Struct Reference

#include <draw.h>

List of all members.

Public Member Functions

 DrawContext (EDrawTool initTool, int initFgBrushWidht, int initBgBrushWidth)

Static Public Member Functions

static const char * toolLabel (EDrawTool et)
static EDrawTool toolByLabel (const char *szLabel)

Public Attributes

EDrawTool tool
 selected tool
int fgBrushWidth
 brush width (in pixels)
int bgBrushWidth
 rubber width (in pixels)
Pixel fgColor
 forground color
Pixel bgColor
 background color


Detailed Description

Dsecribe draw tool properties.

Definition at line 36 of file draw.h.


Constructor & Destructor Documentation

DrawContext::DrawContext ( EDrawTool  initTool,
int  initFgBrushWidht,
int  initBgBrushWidth 
) [inline]

Initialize DrawContext structure.

Parameters:
initTool Tool enumerator.
initFgBrushWidht Foreground brush width.
initBgBrushWidth Background brush width.

Definition at line 63 of file draw.h.

References Pixel::alpha, bgColor, Pixel::blue, fgColor, Pixel::green, and Pixel::red.


Member Function Documentation

static const char* DrawContext::toolLabel ( EDrawTool  et  )  [static]

Draw tool label lookup.

Parameters:
et Tool enumerator.
Returns:
Label of equipment.

static EDrawTool DrawContext::toolByLabel ( const char *  szLabel  )  [static]

Tool enumerator lookup.

Parameters:
szLabel Label of tool to lookup.
Returns:
Tool enumerator, TOOL_NOTOOL if not found.


Member Data Documentation

EDrawTool DrawContext::tool

selected tool

Definition at line 37 of file draw.h.

int DrawContext::fgBrushWidth

brush width (in pixels)

Definition at line 38 of file draw.h.

int DrawContext::bgBrushWidth

rubber width (in pixels)

Definition at line 39 of file draw.h.

Pixel DrawContext::fgColor

forground color

Definition at line 40 of file draw.h.

Referenced by DrawContext().

Pixel DrawContext::bgColor

background color

Definition at line 41 of file draw.h.

Referenced by DrawContext().


The documentation for this struct was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2