kpcalendarview

Name

kpcalendarview -- 

Synopsis



GtkWidget*  kp_calendar_view_new            (KPViewModelType type,
                                             guint d,
                                             guint m,
                                             guint y);
void        kp_calendar_view_set            (KPCalendarView *cv,
                                             KPViewModelType type);
void        kp_calendar_view_set_date       (KPCalendarView *cv,
                                             guint d,
                                             guint m,
                                             guint y);
void        kp_calendar_view_get_date       (KPCalendarView *cv,
                                             guint *d,
                                             guint *m,
                                             guint *y);
GDate*      kp_calendar_view_get_start_date (KPCalendarView *cv);
GDate*      kp_calendar_view_get_end_date   (KPCalendarView *cv);
void        kp_calendar_view_attach_popup_menu
                                            (KPCalendarView *cv,
                                             GtkMenu *menu);
void        kp_calendar_view_open_to_window (KPViewModelType type,
                                             guint d,
                                             guint m,
                                             guint y);
void        kp_calendar_view_add_mark       (KPCalendarView *cv,
                                             guint d,
                                             guint m,
                                             guint y,
                                             guint h,
                                             guint min,
                                             const gchar *str);
gchar*      kp_calendar_view_get_current_mark
                                            (KPCalendarView *cv);
void        kp_calendar_view_remove_current_mark
                                            (KPCalendarView *cv);
void        kp_calendar_view_remove_mark    (KPCalendarView *cv,
                                             guint d,
                                             guint m,
                                             guint y,
                                             const gchar *mark);
void        kp_calendar_view_set_active     (KPCalendarView *cv,
                                             gboolean activate);
gboolean    kp_calendar_view_get_active     (KPCalendarView *cv);

Description

Details

kp_calendar_view_new ()

GtkWidget*  kp_calendar_view_new            (KPViewModelType type,
                                             guint d,
                                             guint m,
                                             guint y);

type :

d :

m :

y :

Returns :


kp_calendar_view_set ()

void        kp_calendar_view_set            (KPCalendarView *cv,
                                             KPViewModelType type);

Set the view type of this KPCalendarView. There are currently some views available: year, month, week and day view.

cv :

A KPCalendarView

type :

A KPViewModelType


kp_calendar_view_set_date ()

void        kp_calendar_view_set_date       (KPCalendarView *cv,
                                             guint d,
                                             guint m,
                                             guint y);

Sets the active day in the view to the day represented by d, m and y.

cv :

A KPCalendarView

d :

Day number between 1 and 31

m :

Month number between 1 and 12

y :

Year number in format yyyy


kp_calendar_view_get_date ()

void        kp_calendar_view_get_date       (KPCalendarView *cv,
                                             guint *d,
                                             guint *m,
                                             guint *y);

Finds out the date of the currently selected day.

cv :

A KPCalendarView

d :

A location to store day number or NULL

m :

A location to store month number or NULL

y :

A location to store year number or NULL


kp_calendar_view_get_start_date ()

GDate*      kp_calendar_view_get_start_date (KPCalendarView *cv);

Find out what is the earliest date in the current view.

cv :

A KPCalendarView

Returns :

a GDate that represents first day in the current view.


kp_calendar_view_get_end_date ()

GDate*      kp_calendar_view_get_end_date   (KPCalendarView *cv);

Find out what is the latest date in the current view.

cv :

A KPCalendarView

Returns :

a GDate that represents last day in the current view.


kp_calendar_view_attach_popup_menu ()

void        kp_calendar_view_attach_popup_menu
                                            (KPCalendarView *cv,
                                             GtkMenu *menu);

cv :

menu :


kp_calendar_view_open_to_window ()

void        kp_calendar_view_open_to_window (KPViewModelType type,
                                             guint d,
                                             guint m,
                                             guint y);

type :

d :

m :

y :


kp_calendar_view_add_mark ()

void        kp_calendar_view_add_mark       (KPCalendarView *cv,
                                             guint d,
                                             guint m,
                                             guint y,
                                             guint h,
                                             guint min,
                                             const gchar *str);

cv :

d :

m :

y :

h :

min :

str :


kp_calendar_view_get_current_mark ()

gchar*      kp_calendar_view_get_current_mark
                                            (KPCalendarView *cv);

cv :

Returns :


kp_calendar_view_remove_current_mark ()

void        kp_calendar_view_remove_current_mark
                                            (KPCalendarView *cv);

cv :


kp_calendar_view_remove_mark ()

void        kp_calendar_view_remove_mark    (KPCalendarView *cv,
                                             guint d,
                                             guint m,
                                             guint y,
                                             const gchar *mark);

cv :

d :

m :

y :

mark :


kp_calendar_view_set_active ()

void        kp_calendar_view_set_active     (KPCalendarView *cv,
                                             gboolean activate);

cv :

activate :


kp_calendar_view_get_active ()

gboolean    kp_calendar_view_get_active     (KPCalendarView *cv);

cv :

Returns :