The Fast Light Environment Kit



class Fl_Time

Class Hierarchy

Fl_Group
   |
   +----Fl_Time

Include Files

#include <Flek/Fl_Time.H>

Description

Fl_Time is a widget that allows a user to select a time (hour and minute).

Methods


Method Descriptions

Fl_Time

Fl_Time::Fl_Time(int x, int y, int w, int h, char *l=0);

The constructor for an empty Fl_Time widget.

current_time

void Fl_Time::current_time();

Sets the minute and hour to the system minute and hour.

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
hourThe hour associated with this widget.

labelcolor

void Fl_Time::labelcolor(Fl_Color color);

Sets the label color which is used for the M+, M-, Y+, and Y- labels.

Parameters
fontThe 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.

labelfont

void Fl_Time::labelfont(Fl_Font font);

Sets the label font which is used for the M+, M-, Y+, and Y- labels.

Parameters
fontThe 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.

labelsize

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
sizeThe 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.

minute

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
minuteThe minute associated with this widget.

refresh

void Fl_Time::refresh();

Refreshes the widget.

textcolor

void Fl_Time::textcolor(Fl_Color);

Sets the color of the text which is used to display the set time.

Parameters
colorThe 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.

textfont

void Fl_Time::textfont(Fl_Font);

Sets the font of the text which is used to display the set time.

Parameters
fontThe 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.

textsize

void Fl_Time::textsize(int size);

Sets the size of the text which is used to display the set time.

Parameters
sizeThe 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.

valid

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.

value

void Fl_Time::value(int h, int m);

Sets the minute and hour at the same time.

Parameters
minuteThe minute associated with this widget.
hourThe hour associated with this widget.


© 2000 the Flek Development team.
Generated by ScanDoc
Last Updated: Tue May 15 8:50:06 2001