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

#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"

The type name for the Ewl_Calendar widget


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

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

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

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

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

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


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:46 2009