Fl_Group | +----Fl_Time
#include <Flek/Fl_Time.H>
Fl_Time is a widget that allows a user to select a time (hour and minute).
Fl_Time::Fl_Time(int x, int y, int w, int h, char *l=0);
The constructor for an empty Fl_Time widget.
void Fl_Time::current_time();
Sets the minute and hour to the system minute and hour.
int Fl_Time::hour();
Gets the hour.Return Value
The hour associated with this widget.void Fl_Time::hour(int value);
Sets the hour.Parameters
hour The hour associated with this widget.
void Fl_Time::labelcolor(Fl_Color color);
Sets the label color which is used for the M+, M-, Y+, and Y- labels.Parameters
font The label color. Fl_Color Fl_Time::labelcolor();
Gets the label color which is used for the M+, M-, Y+, and Y- labels.Return Value
The label color.
void Fl_Time::labelfont(Fl_Font font);
Sets the label font which is used for the M+, M-, Y+, and Y- labels.Parameters
font The label font. Fl_Font Fl_Time::labelfont();
Gets the label font which is used for the M+, M-, Y+, and Y- labels.Return Value
The label font.
void Fl_Time::labelsize(int size);
Sets the size of the label text which is used for the M+, M-, Y+, and Y- labels.Parameters
size The size of the label font. int Fl_Time::labelsize();
Gets the size of the label text which is used for the M+, M-, Y+, and Y- labels.Return Value
The size of the label font.
int Fl_Time::minute();
Gets the minute.Return Value
The minute associated with this widget.void Fl_Time::minute(int value);
Sets the minute.Parameters
minute The minute associated with this widget.
void Fl_Time::refresh();
Refreshes the widget.
void Fl_Time::textcolor(Fl_Color);
Sets the color of the text which is used to display the set time.Parameters
color The color of the text font. Fl_Color Fl_Time::textcolor();
Gets the color of the text which is used to display the set time.Return Value
The color of the text font.
void Fl_Time::textfont(Fl_Font);
Sets the font of the text which is used to display the set time.Parameters
font The font of the text font. Fl_Font Fl_Time::textfont();
Gets the font of the text which is used to display the set time.Return Value
The font of the text font.
void Fl_Time::textsize(int size);
Sets the size of the text which is used to display the set time.Parameters
size The size of the text font. int Fl_Time::textsize();
Gets the size of the text which is used to display the set time.Return Value
The size of the text font.
bool Fl_Time::valid();
Determines if the entered time is a recognized format.Return Value
True if it is a valid time format, otherwise false.
void Fl_Time::value(int h, int m);
Sets the minute and hour at the same time.Parameters
minute The minute associated with this widget. hour The hour associated with this widget.