|
Public Types |
enum | {
PG_TEXT_LEFT = MARK_TEXT_LEFT,
PG_TEXT_CENTER = MARK_TEXT_CENTER,
PG_TEXT_RIGHT = MARK_TEXT_RIGHT,
PG_TEXT_BLOCK = MARK_TEXT_BLOCK,
PG_ALL_LEFT = MARK_ALL_LEFT,
PG_ALL_CENTER = MARK_ALL_CENTER,
PG_ALL_RIGHT = MARK_ALL_RIGHT
} |
Public Member Functions |
| PG_RichEdit (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, bool autoVerticalResize=false, Uint32 linewidth=0, Uint32 tabSize=30, Uint32 childsborderwidth=8, const char *style="WidgetList") |
| Constructor of the PG_WidgetListEx class.
|
void | SetText (const char *text) |
| Sets rich text.
|
void | SetText (const string &text) |
| Sets rich text.
|
void | AddChild (PG_Widget *child) |
| Add a widget to the list.
|
bool | RemoveChild (PG_Widget *child) |
| Remove a widget from the list.
|
bool | LoadText (const char *textfile) |
| Load the content of the widget from a text file.
|
void | SetAutoVerticalResize (bool bResize) |
void | SetAlignment (Uint8 align) |
void | SetTabSize (Uint32 tabSize) |
Protected Types |
typedef vector< RichWordDescription > | RichWordDescriptionArray |
typedef vector< size_t > | Size_tArray |
typedef vector< RichLinePart > | RichLinePartArray |
typedef vector< RichLine > | RichLineArray |
Protected Member Functions |
void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
| overridable eventhandler to blit the widget contents to the screen
|
Protected Attributes |
bool | my_AutoVerticalResize |
RichWordDescriptionArray | my_ParsedWords |
RichLineArray | my_RichText |
Uint32 | my_ChildsBorderWidth |
Uint32 | my_TabSize |