AlpTimeSelector
[UI Widgets]


Data Structures

struct  _AlpTimeSelector
struct  _AlpTimeSelectorClass

Defines

#define ALP_IS_TIME_SELECTOR(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_TIME_SELECTOR))
#define ALP_IS_TIME_SELECTOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_TIME_SELECTOR))
#define ALP_TIME_SELECTOR(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_TIME_SELECTOR, AlpTimeSelector))
#define ALP_TIME_SELECTOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_TIME_SELECTOR, AlpTimeSelectorClass))
#define ALP_TIME_SELECTOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_TIME_SELECTOR, AlpTimeSelectorClass))
#define ALP_TYPE_TIME_SELECTOR   (alp_time_selector_get_type())

Typedefs

typedef _AlpTimeSelector AlpTimeSelector
typedef _AlpTimeSelectorClass AlpTimeSelectorClass

Enumerations

enum  AlpTimeSelectorFlags { ALP_TIME_SELECTOR_24 = (1 << 0), ALP_TIME_SELECTOR_12 = (1 << 1) }
 Some flags to specify behavior of AlpTimeSelector . If both flags are not specified, it depends of system wide settings. More...

Functions

gint alp_time_selector_get_hour (AlpTimeSelector *selector)
 retuns the selected hour.
gint alp_time_selector_get_min (AlpTimeSelector *selector)
 retuns the selected minute.
GType alp_time_selector_get_type (void) G_GNUC_CONST
 Get the AlpTimeSelector object type.
GtkWidget * alp_time_selector_new (gint flags)
 Creates a new ALP Time Selector with specified flags.
GtkWidget * alp_time_selector_new_with_time (gint flags, gint hour, gint min)
 Creates a new ALP Time Selector with specified flags, hour and min.
gint alp_time_selector_select (GtkWidget *parent, const gchar *title, gint *hour, gint *min, gint flags)
 show dialog and ask user to select time.
void alp_time_selector_set_hour (AlpTimeSelector *selector, gint hour)
 set the hour.
void alp_time_selector_set_min (AlpTimeSelector *selector, gint min)
 set the minute.


Define Documentation

#define ALP_IS_TIME_SELECTOR obj   )     (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_TIME_SELECTOR))
 

#define ALP_IS_TIME_SELECTOR_CLASS klass   )     (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_TIME_SELECTOR))
 

#define ALP_TIME_SELECTOR obj   )     (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_TIME_SELECTOR, AlpTimeSelector))
 

#define ALP_TIME_SELECTOR_CLASS klass   )     (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_TIME_SELECTOR, AlpTimeSelectorClass))
 

#define ALP_TIME_SELECTOR_GET_CLASS obj   )     (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_TIME_SELECTOR, AlpTimeSelectorClass))
 

#define ALP_TYPE_TIME_SELECTOR   (alp_time_selector_get_type())
 


Typedef Documentation

typedef struct _AlpTimeSelector AlpTimeSelector
 

typedef struct _AlpTimeSelectorClass AlpTimeSelectorClass
 


Enumeration Type Documentation

enum AlpTimeSelectorFlags
 

Some flags to specify behavior of AlpTimeSelector . If both flags are not specified, it depends of system wide settings.

Enumerator:
ALP_TIME_SELECTOR_24  widget for 24 hours
ALP_TIME_SELECTOR_12  widget for 12 hours


Function Documentation

gint alp_time_selector_get_hour AlpTimeSelector selector  ) 
 

retuns the selected hour.

Parameters:
[in] selector an AlpTimeSelector.
Returns:
selected hour (0-23).

gint alp_time_selector_get_min AlpTimeSelector selector  ) 
 

retuns the selected minute.

Parameters:
[in] selector an AlpTimeSelector.
Returns:
selected minute (0-59).

GType alp_time_selector_get_type void   ) 
 

Get the AlpTimeSelector object type.

Parameters:
[in] none. 
Returns:
The AlpTimeSelector type identifier

GtkWidget* alp_time_selector_new gint  flags  ) 
 

Creates a new ALP Time Selector with specified flags.

Parameters:
[in] flags bitwise-or of AlpTimeSelectorFlags.

GtkWidget* alp_time_selector_new_with_time gint  flags,
gint  hour,
gint  min
 

Creates a new ALP Time Selector with specified flags, hour and min.

Parameters:
[in] flags bitwise-or of AlpTimeSelectorFlags.
[in] hour an hour (0-23).
[in] min an minute (0-59).

gint alp_time_selector_select GtkWidget *  parent,
const gchar *  title,
gint *  hour,
gint *  min,
gint  flags
 

show dialog and ask user to select time.

Parameters:
[in] title specifies the title of dialog.
[in,out] hour the placeholder of the hour showed at first and selected by user,
[in,out] min the placeholder of the minutes showed at first and selected by user.
[in] flags bitwise-or of AlpTimeSelectorFlags
Returns:
GTK_RESPONSE_ACCEPT if user specified some time.

GTK_RESPONSE_CANCEL if user canceled.

void alp_time_selector_set_hour AlpTimeSelector selector,
gint  hour
 

set the hour.

Parameters:
[in] selector an AlpTimeSelector.
[in] hour an hour (0-23).

void alp_time_selector_set_min AlpTimeSelector selector,
gint  min
 

set the minute.

Parameters:
[in] selector an AlpTimeSelector.
[in] min an minute.


Generated on Wed Jul 30 07:06:42 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.