#include <Fl_Widget.H>
Public Member Functions | |
| void | draw (int, int, int, int, Fl_Align) const |
| Draws the label aligned to the given box. | |
| void | measure (int &w, int &h) const |
| Measures the size of the label. | |
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. | |
| const char * | value |
| label text | |
| 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 |
© 1998-2010 by Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for
any purpose, provided this copyright and permission notice are preserved.