Maeomm Reference Documentation: hildonmm
Main Page   Namespaces   Book  

Hildon::TimeSelector Class Reference
[Widgets]

A widget to select the current time. More...

Inheritance diagram for Hildon::TimeSelector:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~TimeSelector ()
HildonTimeSelector* gobj ()
 Provides access to the underlying C GtkObject.
const HildonTimeSelector* gobj () const
 Provides access to the underlying C GtkObject.
 TimeSelector ()
 TimeSelector (guint minutes_step)
bool set_time (guint hours, guint minutes)
 Sets the current active hour on the Hildon::TimeSelector widget.
void get_time (guint& hours, guint& minutes) const
 Gets the current active hour on the Hildon::TimeSelector widget.
guint get_hours () const
guint get_minutes () const

Related Functions

(Note that these are not member functions.)

Hildon::TimeSelectorwrap (HildonTimeSelector* object, bool take_copy=false)
 A Glib::wrap() method for this object.


Detailed Description

A widget to select the current time.

This widget allows users to choose a time by selecting the hour and minute. It also allows the user to choose between AM or PM. The currently selected time can be altered with set_time(), and retrieved using get_time().


Constructor& Destructor Documentation

virtual Hildon::TimeSelector::~TimeSelector (  )  [virtual]

Hildon::TimeSelector::TimeSelector (  ) 

Hildon::TimeSelector::TimeSelector ( guint  minutes_step  )  [explicit]


Member Function Documentation

HildonTimeSelector* Hildon::TimeSelector::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Hildon::TouchSelector.

const HildonTimeSelector* Hildon::TimeSelector::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Hildon::TouchSelector.

bool Hildon::TimeSelector::set_time ( guint  hours,
guint  minutes 
)

Sets the current active hour on the Hildon::TimeSelector widget.

The format of the hours accepted is always 24h format, with a range (0-23):(0-59).

Parameters:
hours The current hour (0-23).
minutes The current minute (0-59).
Returns:
true on success, false otherwise.

void Hildon::TimeSelector::get_time ( guint &  hours,
guint &  minutes 
) const

Gets the current active hour on the Hildon::TimeSelector widget.

Both year and minutes can be 0.

This method returns the date always in 24h format, with a range (0-23):(0-59)

Parameters:
hours To set the current hour (0-23).
minutes To set the current minute (0-59).

guint Hildon::TimeSelector::get_hours (  )  const

guint Hildon::TimeSelector::get_minutes (  )  const


Friends And Related Function Documentation

Hildon::TimeSelector* wrap ( HildonTimeSelector *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
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.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:

Generated for hildonmm by Doxygen 1.5.6 © 1997-2001