Maeomm Reference Documentation: hildonmm |
The TimeButton widget shows a text label and a time, and allows the user to select a different time. Visually, it's a button that, once clicked, presents a Hildon::PickerDialog containing a Hildon::TimeSelector. Once the user selects a different time from the selector, this will be shown in the button.
Public Member Functions | |
guint | get_hours () const |
guint | get_minutes () const |
const TimeSelector* | get_selector () const |
Retrieves the Hildon::TouchSelector associated to button. | |
TimeSelector* | get_selector () |
Retrieves the Hildon::TouchSelector associated to button. | |
void | get_time (guint& hours, guint& minutes) const |
Retrieves the time from button. | |
const HildonTimeButton* | gobj () const |
Provides access to the underlying C GtkObject. | |
HildonTimeButton* | gobj () |
Provides access to the underlying C GtkObject. | |
void | set_selector (TimeSelector& selector) |
void | set_time (guint hours, guint minutes) |
Sets the time to be displayed in button. | |
TimeButton (Gtk::Hildon::SizeType size, ButtonArrangement arrangement, guint minutes_step) | |
Creates a new Hildon::TimeButton. | |
TimeButton (Gtk::Hildon::SizeType size, ButtonArrangement arrangement) | |
TimeButton () | |
virtual | ~TimeButton () |
Related Functions | |
(Note that these are not member functions.) | |
Hildon::TimeButton* | wrap (HildonTimeButton* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Hildon::TimeButton::~TimeButton | ( | ) | [virtual] |
Hildon::TimeButton::TimeButton | ( | ) |
Hildon::TimeButton::TimeButton | ( | Gtk::Hildon::SizeType | size, | |
ButtonArrangement | arrangement | |||
) | [explicit] |
Hildon::TimeButton::TimeButton | ( | Gtk::Hildon::SizeType | size, | |
ButtonArrangement | arrangement, | |||
guint | minutes_step | |||
) |
Creates a new Hildon::TimeButton.
See Hildon::Button::new() for details on the parameters.
size | One of Hildon::SizeType. | |
arrangement | One of Hildon::ButtonArrangement. | |
minutes_step | Step between the minutes in the selector options. |
guint Hildon::TimeButton::get_hours | ( | ) | const |
guint Hildon::TimeButton::get_minutes | ( | ) | const |
const TimeSelector* Hildon::TimeButton::get_selector | ( | ) | const [inline] |
Retrieves the Hildon::TouchSelector associated to button.
Reimplemented from Hildon::PickerButton.
References Hildon::PickerButton::get_selector().
TimeSelector* Hildon::TimeButton::get_selector | ( | ) | [inline] |
Retrieves the Hildon::TouchSelector associated to button.
Reimplemented from Hildon::PickerButton.
References Hildon::PickerButton::get_selector().
void Hildon::TimeButton::get_time | ( | guint & | hours, | |
guint & | minutes | |||
) | const |
Retrieves the time from button.
hours | Return location for the hours of the time selected. | |
minutes | Return location for the minutes of the time selected. |
const HildonTimeButton* Hildon::TimeButton::gobj | ( | ) | const [inline] |
HildonTimeButton* Hildon::TimeButton::gobj | ( | ) | [inline] |
void Hildon::TimeButton::set_selector | ( | TimeSelector& | selector | ) | [inline] |
References Hildon::PickerButton::set_selector().
void Hildon::TimeButton::set_time | ( | guint | hours, | |
guint | minutes | |||
) |
Sets the time to be displayed in button.
This time will be selected by default on the Hildon::TimeSelector.
hours | The hours to be set. | |
minutes | The time to be set. |
Hildon::TimeButton* wrap | ( | HildonTimeButton * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |