HildonTimeSelector

HildonTimeSelector — A widget to select the current time.

Synopsis

                    HildonTimeSelectorPrivate;
                    HildonTimeSelector;
GtkWidget*          hildon_time_selector_new            (void);
gboolean            hildon_time_selector_set_time       (HildonTimeSelector *selector,
                                                         guint hours,
                                                         guint minutes);
void                hildon_time_selector_get_time       (HildonTimeSelector *selector,
                                                         guint *hours,
                                                         guint *minutes);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkVBox
                                       +----HildonTouchSelector
                                             +----HildonTimeSelector

Implemented Interfaces

HildonTimeSelector implements AtkImplementorIface and GtkBuildable.

Description

HildonTimeSelector is a time widget, equivalent to hildon-calendar, but with a multi-column approach

Details

HildonTimeSelectorPrivate

typedef struct _HildonTimeSelectorPrivate HildonTimeSelectorPrivate;


HildonTimeSelector

typedef struct _HildonTimeSelector HildonTimeSelector;


hildon_time_selector_new ()

GtkWidget*          hildon_time_selector_new            (void);

Creates a new HildonTimeSelector

Returns : a new HildonTimeSelector

hildon_time_selector_set_time ()

gboolean            hildon_time_selector_set_time       (HildonTimeSelector *selector,
                                                         guint hours,
                                                         guint minutes);

Sets the current active hour on the HildonTimeSelector widget

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

selector : the HildonTimeSelector
hours : the current hour (0-23)
minutes : the current minute (0-59)
Returns :

hildon_time_selector_get_time ()

void                hildon_time_selector_get_time       (HildonTimeSelector *selector,
                                                         guint *hours,
                                                         guint *minutes);

Gets the current active hour on the HildonTimeSelector widget. Both year and minutes can be NULL.

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

selector : the HildonTimeSelector
hours : to set the current hour (0-23)
minutes : to set the current minute (0-59)