![]() |
![]() |
![]() |
Kipinä Internals Reference Manual | ![]() |
---|---|---|---|---|
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); GType kp_calendar_view_get_active_mark_type (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_clear_marks (KPCalendarView *cv); void kp_calendar_view_add_mark (KPCalendarView *cv, guint d, guint m, guint y, guint h, guint min, const gchar *str, gboolean update_marks); 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);
GtkWidget* kp_calendar_view_new (KPViewModelType type, guint d, guint m, guint y);
Create a new KPCalendarView
type : |
A KPViewModelType |
d : |
day |
m : |
month |
y : |
year |
Returns : | A KPCalendarView |
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 |
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 |
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 |
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. |
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. |
GType kp_calendar_view_get_active_mark_type (KPCalendarView *cv);
cv : |
|
Returns : |
void kp_calendar_view_attach_popup_menu (KPCalendarView *cv, GtkMenu *menu);
cv : |
|
menu : |
void kp_calendar_view_open_to_window (KPViewModelType type, guint d, guint m, guint y);
type : |
|
d : |
|
m : |
|
y : |
void kp_calendar_view_add_mark (KPCalendarView *cv, guint d, guint m, guint y, guint h, guint min, const gchar *str, gboolean update_marks);
cv : |
|
d : |
|
m : |
|
y : |
|
h : |
|
min : |
|
str : |
|
update_marks : |
gchar* kp_calendar_view_get_current_mark (KPCalendarView *cv);
cv : |
|
Returns : |
void kp_calendar_view_remove_current_mark (KPCalendarView *cv);
cv : |
void kp_calendar_view_remove_mark (KPCalendarView *cv, guint d, guint m, guint y, const gchar *mark);
cv : |
|
d : |
|
m : |
|
y : |
|
mark : |
void kp_calendar_view_set_active (KPCalendarView *cv, gboolean activate);
cv : |
|
activate : |