#include <multilineedit.h>
Inheritance diagram for wftk::MultiLineEdit:
Public Types | |
enum | tag_t { START_TAG = 127, END_TAG = 126, FONT_TAG = 124, IMAGE_TAG = 123, LINK_TAG = 122 } |
Markup tags for text formatting / link embedding: in c-strings you may use the octal encodings: . More... | |
Public Member Functions | |
MultiLineEdit (const std::string &text="", const Font &font=Font(), bool readonly=true, bool fill=false) | |
Constructor. | |
void | setWrapping (bool flag) |
Control word-wrap behaviour. | |
void | setMaxLinesToStore (unsigned n) |
Set scrollback size. | |
virtual void | addText (const std::string &) |
append text to this widget | |
void | newline () |
start a new line on the text output area | |
unsigned | visibleLines () const |
return the number of visible lines | |
void | setMarkupColor (unsigned index, const Color &fontCol) |
keep the current markup font, but change its color | |
void | setMarkupFont (unsigned index, const Font &font) |
void | setImage (unsigned index, Surface::Resource *surface) |
Set background image from a Resource. | |
void | setImage (unsigned index, const Surface &surface) |
Set background image from a Surface. | |
void | setImage (unsigned index, const std::string &) |
Set background image from a named resource. | |
virtual bool | buttonEvent (Mouse::Button, bool, const Point &) |
mouse-click handler function | |
Public Attributes | |
SigC::Signal1< void, unsigned > | linkActivated |
signal emitted when a link markup is hovered | |
Protected Member Functions | |
virtual void | setPackingInfo () |
recalculate the object's prefered size | |
virtual void | handleResize (Uint16 w, Uint16 h) |
Calculate new shape for shaped widgets, call to setShape() after a resize. | |
void | breakText (std::string &, std::vector< std::string > &, unsigned) |
void | renderTextLines (const std::vector< std::string > &) |
Protected Attributes | |
unsigned | maxLinesToStore_ |
|
Markup tags for text formatting / link embedding: in c-strings you may use the octal encodings: .
|
|
Constructor.
|
|
while (itr != lines[n].end()) |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.