|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
#include <Fl_Widget.H>

Public Member Functions | |
| void | draw (int, int, int, int, Fl_Align) const |
| void | measure (int &w, int &h) const |
Public Attributes | |
| const char * | value |
| Fl_Image * | image |
| Fl_Image * | deimage |
| Fl_Font | font |
| Fl_Fontsize | size |
| Fl_Color | color |
| Fl_Align | align_ |
| uchar | type |
This struct stores all information for a text or mixed graphics label.
Definition at line 73 of file Fl_Widget.H.
| 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.
Definition at line 86 of file fl_labeltype.cxx.
References H, image, type, and value.
Referenced by Fl_Menu_Item::draw(), Fl_Choice::draw(), and Fl_Widget::draw_label().
| 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 |
Definition at line 95 of file fl_labeltype.cxx.
References f, fl_normal_measure(), image, type, and value.
Referenced by Fl_Menu_Item::measure(), and Fl_Widget::redraw_label().
text color
Definition at line 85 of file Fl_Widget.H.
Referenced by Fl_Menu_Item::draw(), Fl_Choice::draw(), Fl_Widget::draw_label(), fl_normal_label(), Fl_Widget::Fl_Widget(), Fl_Image::labeltype(), Fl_File_Icon::labeltype(), and Fl_Menu_Item::measure().
optional image for a deactivated label
Definition at line 79 of file Fl_Widget.H.
Referenced by Fl_Menu_Item::draw(), Fl_Choice::draw(), Fl_Widget::draw_label(), Fl_Widget::Fl_Widget(), and Fl_Menu_Item::measure().
label font used in text
Definition at line 81 of file Fl_Widget.H.
Referenced by Fl_Menu_Item::draw(), Fl_Choice::draw(), fl_normal_label(), fl_normal_measure(), Fl_Widget::Fl_Widget(), and Fl_Menu_Item::measure().
optional image for an active label
Definition at line 77 of file Fl_Widget.H.
Referenced by Fl_Menu_Item::draw(), draw(), Fl_Choice::draw(), Fl_Widget::draw_label(), fl_normal_label(), fl_normal_measure(), Fl_Widget::Fl_Widget(), Fl_Menu_Item::measure(), and measure().
size of label font
Definition at line 83 of file Fl_Widget.H.
Referenced by Fl_Menu_Item::draw(), Fl_Choice::draw(), fl_normal_label(), fl_normal_measure(), Fl_Widget::Fl_Widget(), and Fl_Menu_Item::measure().
type of label.
Definition at line 89 of file Fl_Widget.H.
Referenced by Fl_Menu_Item::draw(), draw(), Fl_Choice::draw(), Fl_Widget::Fl_Widget(), Fl_Menu_Item::measure(), and measure().
| const char* Fl_Label::value |
label text
Definition at line 75 of file Fl_Widget.H.
Referenced by Fl_Widget::copy_label(), Fl_Menu_Item::draw(), draw(), Fl_Choice::draw(), fl_normal_label(), fl_normal_measure(), Fl_Widget::Fl_Widget(), Fl_Widget::label(), Fl_Image::labeltype(), Fl_File_Icon::labeltype(), Fl_Menu_Item::measure(), measure(), Fl_Image::measure(), and Fl_Widget::~Fl_Widget().