|
FLTK 1.3.8
|
This struct stores all information for a text or mixed graphics label. More...
#include <Fl_Widget.H>
Public Member Functions | |
| void | draw (int, int, int, int, Fl_Align) const |
| Draws the label aligned to the given box. More... | |
| void | measure (int &w, int &h) const |
| Measures the size of the label. More... | |
Public Attributes | |
| Fl_Align | align_ |
| alignment of label | |
| Fl_Color | color |
| text color | |
| Fl_Image * | deimage |
| optional image for a deactivated label | |
| Fl_Font | font |
| label font used in text | |
| Fl_Image * | image |
| optional image for an active label | |
| Fl_Fontsize | size |
| size of label font | |
| uchar | type |
| type of label. More... | |
| const char * | value |
| label text | |
This struct stores all information for a text or mixed graphics label.
| void Fl_Label::draw | ( | int | X, |
| int | Y, | ||
| int | W, | ||
| int | H, | ||
| Fl_Align | align | ||
| ) | const |
Draws the label aligned to the given box.
Draws a label with arbitrary alignment in an arbitrary box.
| void Fl_Label::measure | ( | int & | W, |
| int & | H | ||
| ) | const |
Measures the size of the label.
| [in,out] | W,H | : this is the requested size for the label text plus image; on return, this will contain the size needed to fit the label |
| uchar Fl_Label::type |
type of label.