Download

Support

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_Widgetewl_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 (  )     (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"


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_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.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:51:08 2008