#include <draw.h>
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 | |
Definition at line 36 of file draw.h.
| DrawContext::DrawContext | ( | EDrawTool | initTool, | |
| int | initFgBrushWidht, | |||
| int | initBgBrushWidth | |||
| ) | [inline] |
Initialize DrawContext structure.
| 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.
| static const char* DrawContext::toolLabel | ( | EDrawTool | et | ) | [static] |
Draw tool label lookup.
| et | Tool enumerator. |
| static EDrawTool DrawContext::toolByLabel | ( | const char * | szLabel | ) | [static] |
Tool enumerator lookup.
| szLabel | Label of tool to lookup. |
1.5.2