#include <label.h>
Inheritance diagram for cwidget::widgets::label:
Public Member Functions | |
bool | get_cursorvisible () |
point | get_cursorloc () |
int | width_request () |
int | height_request (int width) |
void | paint (const style &st) |
Display this widget. | |
void | set_text (const std::string &_txt, const style &st) |
void | set_text (const std::string &_txt) |
void | set_text (const std::wstring &_txt, const style &st) |
void | set_text (const std::wstring &_txt) |
void | set_text (fragment *f) |
Static Public Member Functions | |
static util::ref_ptr< label > | create (fragment *f) |
static util::ref_ptr< label > | create (const std::string &txt, const style &st) |
Create a label with the given text and background. | |
static util::ref_ptr< label > | create (const std::string &txt) |
Create a label with the given text. | |
static util::ref_ptr< label > | create (const std::wstring &txt, const style &st) |
Create a label with the given text and background. | |
static util::ref_ptr< label > | create (const std::wstring &txt) |
CReate a label with the given text. | |
Protected Member Functions | |
label (fragment *f) | |
label (const std::string &_txt, const style &st) | |
label (const std::string &_txt) | |
label (const std::wstring &_txt, const style &st) | |
label (const std::wstring &_txt) |
The text cannot be scrolled or selected in any way; if there isn't room for it, it just gets clipped.
Passing a "background" style into the constructor modifies the background style of the widget (as set_bg_style would); this differs from wrapping the text in a style_fragment in that it even affects parts of the widget which aren't covered by text.
|
Implements cwidget::widgets::widget. |
|
Display this widget.
Implements cwidget::widgets::widget. |
|
Implements cwidget::widgets::widget. |