|
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 std::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 | SetAutoResize (bool bHorizontal=true, bool bVertical=true) |
| Resize the widget automatically if there is not enough space.
|
void | SetAlignment (Uint8 align) |
| Set default alignment.
|
void | SetTabSize (Uint16 tabSize) |
| Set tab size.
|
void | SetLineWidth (Uint16 lineWidth) |
| Set line width.
|
Protected Types |
typedef std::vector< RichWordDescription > | RichWordDescriptionArray |
typedef std::vector< size_t > | Size_tArray |
typedef std::vector< RichLinePart > | RichLinePartArray |
typedef std::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
|
void | eventSizeWidget (Uint16 w, Uint16 h) |
| Callback for the SizeWidget event.
|
Protected Attributes |
bool | my_AutoVerticalResize |
bool | my_AutoHorizontalResize |
RichWordDescriptionArray | my_ParsedWords |
RichLineArray | my_RichText |
Uint32 | my_ChildsBorderWidth |
Uint16 | my_TabSize |
Uint16 | my_LineWidth |