Ewl_Calendar: The EWL Calendar Widget
Detailed Description
Defines the Ewl_Calendar class.
- Remarks:
- Inherits from Ewl_Box.
Tutorial
Data Structures | |
struct | Ewl_Calendar |
Inherits from an Ewl_Box to provide a calendar widget. More... | |
Defines | |
#define | EWL_CALENDAR(calendar) ((Ewl_Calendar *) calendar) |
#define | EWL_CALENDAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CALENDAR_TYPE)) |
#define | EWL_CALENDAR_TYPE "calendar" |
Typedefs | |
typedef struct Ewl_Calendar | Ewl_Calendar |
Functions | |
char * | ewl_calendar_ascii_time_get (Ewl_Calendar *cal) |
Returns an ASCII formatted representation of the selected date the user must freet this string. | |
int | ewl_calendar_day_get (Ewl_Calendar *c) |
Returns the current day selected in the calendar. | |
int | ewl_calendar_init (Ewl_Calendar *calendar) |
Init a new Ewl_Calendar to default values and callbacks, and set date to today. | |
int | ewl_calendar_month_get (Ewl_Calendar *c) |
Returns the month selected in the calendar. | |
Ewl_Widget * | ewl_calendar_new (void) |
Creates a new Ewl_Calendar. | |
int | ewl_calendar_year_get (Ewl_Calendar *c) |
Returns the year currently selected in the calendar. |
Define Documentation
#define EWL_CALENDAR | ( | calendar | ) | ((Ewl_Calendar *) calendar) |
Typecast a pointer to an Ewl_Calendar pointer
Referenced by ewl_datepicker_cb_value_changed().
#define EWL_CALENDAR_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_CALENDAR_TYPE)) |
Returns TRUE if the widget is an Ewl_Calendar, FALSE otherwise
#define EWL_CALENDAR_TYPE "calendar" |
- Widget Theme Keys:
- /calendar/file
- Widget Theme Keys:
- /calendar/group
Referenced by ewl_calendar_ascii_time_get(), ewl_calendar_day_get(), ewl_calendar_init(), ewl_calendar_month_get(), and ewl_calendar_year_get().
Typedef Documentation
typedef struct Ewl_Calendar Ewl_Calendar |
The Ewl_Calendar structure
Function Documentation
char* ewl_calendar_ascii_time_get | ( | Ewl_Calendar * | cal | ) |
Returns an ASCII formatted representation of the selected date the user must freet this string.
- Parameters:
-
cal,: The calendar to get the date frm
- Returns:
- Returns the string representing the selected date. This string must be free'd
References cur_day, cur_month, cur_year, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, and EWL_CALENDAR_TYPE.
Referenced by ewl_datepicker_cb_value_changed().
int ewl_calendar_day_get | ( | Ewl_Calendar * | c | ) |
Returns the current day selected in the calendar.
- Parameters:
-
c,: The Ewl_Calendar to get the day from
- Returns:
- Returns the day currently selected in the calendar
References cur_day, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, and EWL_CALENDAR_TYPE.
int ewl_calendar_init | ( | Ewl_Calendar * | ib | ) |
Init a new Ewl_Calendar to default values and callbacks, and set date to today.
- Parameters:
-
ib,: The calendar widget to initialize
- Returns:
- Returns FALSE on failure, a TRUE on success
References cur_day, cur_month, cur_year, DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_BOX, ewl_box_init(), ewl_box_orientation_set(), EWL_CALENDAR_TYPE, ewl_callback_append(), EWL_CALLBACK_CLICKED, EWL_CONTAINER, ewl_container_child_append(), EWL_FLAG_ALIGN_CENTER, EWL_FLAG_ALIGN_LEFT, EWL_FLAG_ALIGN_RIGHT, EWL_FLAG_FILL_FILL, EWL_FLAG_FILL_HFILL, EWL_FLAG_FILL_SHRINK, EWL_FLAG_FILL_VSHRINK, EWL_GRID, ewl_grid_dimensions_set(), ewl_grid_new(), ewl_hbox_new(), EWL_ICON, ewl_icon_alt_text_set(), EWL_ICON_GO_NEXT, EWL_ICON_GO_PREVIOUS, ewl_icon_image_set(), ewl_icon_new(), EWL_ICON_SIZE_SMALL, ewl_icon_theme_icon_path_get(), ewl_label_new(), EWL_OBJECT, ewl_object_alignment_set(), ewl_object_fill_policy_set(), EWL_ORIENTATION_HORIZONTAL, ewl_vbox_new(), EWL_WIDGET, ewl_widget_appearance_set(), ewl_widget_inherit(), ewl_widget_internal_set(), ewl_widget_show(), grid, and month_label.
Referenced by ewl_calendar_new().
int ewl_calendar_month_get | ( | Ewl_Calendar * | c | ) |
Returns the month selected in the calendar.
- Parameters:
-
c,: The Ewl_Calendar to get the month from
- Returns:
- Returns the month currently selected in the calendar
References cur_month, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, and EWL_CALENDAR_TYPE.
Ewl_Widget* ewl_calendar_new | ( | void | ) |
Creates a new Ewl_Calendar.
- Returns:
- Returns NULL on failure, a new Ewl_Calendar on success Creates a new Ewl_Calendar object
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_calendar_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.
Referenced by ewl_datepicker_init().
int ewl_calendar_year_get | ( | Ewl_Calendar * | c | ) |
Returns the year currently selected in the calendar.
- Parameters:
-
c,: The Ewl_Calendar to get the year from
- Returns:
- Returns the current year selected in the calendar
References cur_year, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, and EWL_CALENDAR_TYPE.