#include <grc.h>
|
enum | {
RT_HALIGN_BIDI = 0
, RT_HALIGN_LEFT = 1
, RT_HALIGN_RIGHT = 2
, RT_HALIGN_CENTER = 4
,
RT_HALIGN_BLOCK = 8
, RT_VALIGN_TOP = 0
, RT_VALIGN_CENTER = 16
, RT_VALIGN_BOTTOM = 32
,
RT_WRAP = 64
} |
|
enum | {
BT_ALPHATEST = 1
, BT_ALPHABLEND = 2
, BT_SCALE = 4
, BT_KEEP_ASPECT_RATIO = 8
,
BT_FIXRATIO = 8
, BT_HALIGN_CENTER = 16
, BT_HALIGN_RIGHT = 32
, BT_VALIGN_CENTER = 64
,
BT_VALIGN_BOTTOM = 128
} |
|
|
| gPainter (gDC *dc, eRect rect=eRect()) |
|
virtual | ~gPainter () |
|
void | setBackgroundColor (const gColor &color) |
|
void | setForegroundColor (const gColor &color) |
|
void | setBackgroundColor (const gRGB &color) |
|
void | setForegroundColor (const gRGB &color) |
|
void | setFont (gFont *font) |
|
void | renderText (const eRect &position, const std::string &string, int flags=0, gRGB bordercolor=gRGB(), int border=0, int markedpos=-1, int *offset=0) |
|
void | renderPara (eTextPara *para, ePoint offset=ePoint(0, 0)) |
|
void | fill (const eRect &area) |
|
void | fill (const gRegion &area) |
|
void | clear () |
|
void | blitScale (gPixmap *pixmap, const eRect &pos, const eRect &clip=eRect(), int flags=0, int aflags=BT_SCALE) |
|
void | blit (gPixmap *pixmap, ePoint pos, const eRect &clip=eRect(), int flags=0) |
|
void | blit (gPixmap *pixmap, const eRect &pos, const eRect &clip=eRect(), int flags=0) |
|
void | setPalette (gRGB *colors, int start=0, int len=256) |
|
void | setPalette (gPixmap *source) |
|
void | mergePalette (gPixmap *target) |
|
void | line (ePoint start, ePoint end) |
|
void | setOffset (ePoint abs) |
|
void | moveOffset (ePoint rel) |
|
void | resetOffset () |
|
void | resetClip (const gRegion &clip) |
|
void | clip (const gRegion &clip) |
|
void | clippop () |
|
void | waitVSync () |
|
void | flip () |
|
void | notify () |
|
void | setCompositing (gCompositingData *comp) |
|
void | flush () |
|
void | sendShow (ePoint point, eSize size) |
|
void | sendHide (ePoint point, eSize size) |
|
◆ anonymous enum
Enumerator |
---|
RT_HALIGN_BIDI | |
RT_HALIGN_LEFT | |
RT_HALIGN_RIGHT | |
RT_HALIGN_CENTER | |
RT_HALIGN_BLOCK | |
RT_VALIGN_TOP | |
RT_VALIGN_CENTER | |
RT_VALIGN_BOTTOM | |
RT_WRAP | |
◆ anonymous enum
Enumerator |
---|
BT_ALPHATEST | |
BT_ALPHABLEND | |
BT_SCALE | |
BT_KEEP_ASPECT_RATIO | |
BT_FIXRATIO | |
BT_HALIGN_CENTER | |
BT_HALIGN_RIGHT | |
BT_VALIGN_CENTER | |
BT_VALIGN_BOTTOM | |
◆ gPainter()
◆ ~gPainter()
◆ blit() [1/2]
◆ blit() [2/2]
◆ blitScale()
◆ clear()
◆ clip()
void gPainter::clip |
( |
const gRegion & |
clip | ) |
|
◆ clippop()
void gPainter::clippop |
( |
| ) |
|
◆ fill() [1/2]
void gPainter::fill |
( |
const eRect & |
area | ) |
|
◆ fill() [2/2]
void gPainter::fill |
( |
const gRegion & |
area | ) |
|
◆ flip()
◆ flush()
◆ line()
◆ mergePalette()
void gPainter::mergePalette |
( |
gPixmap * |
target | ) |
|
◆ moveOffset()
void gPainter::moveOffset |
( |
ePoint |
rel | ) |
|
◆ notify()
void gPainter::notify |
( |
| ) |
|
◆ renderPara()
◆ renderText()
void gPainter::renderText |
( |
const eRect & |
position, |
|
|
const std::string & |
string, |
|
|
int |
flags = 0 , |
|
|
gRGB |
bordercolor = gRGB() , |
|
|
int |
border = 0 , |
|
|
int |
markedpos = -1 , |
|
|
int * |
offset = 0 |
|
) |
| |
◆ resetClip()
void gPainter::resetClip |
( |
const gRegion & |
clip | ) |
|
◆ resetOffset()
void gPainter::resetOffset |
( |
| ) |
|
◆ sendHide()
◆ sendShow()
◆ setBackgroundColor() [1/2]
void gPainter::setBackgroundColor |
( |
const gColor & |
color | ) |
|
◆ setBackgroundColor() [2/2]
void gPainter::setBackgroundColor |
( |
const gRGB & |
color | ) |
|
◆ setCompositing()
◆ setFont()
void gPainter::setFont |
( |
gFont * |
font | ) |
|
◆ setForegroundColor() [1/2]
void gPainter::setForegroundColor |
( |
const gColor & |
color | ) |
|
◆ setForegroundColor() [2/2]
void gPainter::setForegroundColor |
( |
const gRGB & |
color | ) |
|
◆ setOffset()
void gPainter::setOffset |
( |
ePoint |
abs | ) |
|
◆ setPalette() [1/2]
void gPainter::setPalette |
( |
gPixmap * |
source | ) |
|
◆ setPalette() [2/2]
void gPainter::setPalette |
( |
gRGB * |
colors, |
|
|
int |
start = 0 , |
|
|
int |
len = 256 |
|
) |
| |
◆ waitVSync()
void gPainter::waitVSync |
( |
| ) |
|
◆ gRC
The documentation for this class was generated from the following files: