![]() |
![]() |
![]() |
libjana-gtk Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
JanaGtkYearView; GtkWidget * jana_gtk_year_view_new (guint months_per_row
,JanaTime *year
); void jana_gtk_year_view_add_store (JanaGtkYearView *self
,JanaGtkEventStore *store
); void jana_gtk_year_view_remove_store (JanaGtkYearView *self
,JanaGtkEventStore *store
); void jana_gtk_year_view_set_year (JanaGtkYearView *self
,JanaTime *year
); JanaTime * jana_gtk_year_view_get_year (JanaGtkYearView *self
); void jana_gtk_year_view_set_months_per_row (JanaGtkYearView *self
,guint months_per_row
); gint jana_gtk_year_view_get_selected_month (JanaGtkYearView *self
); void jana_gtk_year_view_set_selected_month (JanaGtkYearView *self
,gint month
); void jana_gtk_year_view_set_highlighted_time (JanaGtkYearView *self
,JanaTime *time
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkTable +----JanaGtkYearView
"highlighted-time" GObject* : Read / Write "months-per-row" guint : Write "year" GObject* : Read / Write
GtkWidget * jana_gtk_year_view_new (guint months_per_row
,JanaTime *year
);
Create a new widget that provides a summary of events over year
.
|
Number of months to pack into a row |
|
The year to count events in |
Returns : |
A new JanaGtkYearView widget. |
void jana_gtk_year_view_add_store (JanaGtkYearView *self
,JanaGtkEventStore *store
);
Adds store
to the list of JanaGtkEventStore objects used in visualising
the year.
|
A JanaGtkYearView |
|
A JanaGtkEventStore |
void jana_gtk_year_view_remove_store (JanaGtkYearView *self
,JanaGtkEventStore *store
);
Removes store
from the list of JanaGtkEventStore objects used in
visualising the year. If store
has not previously been added with
jana_gtk_year_view_add_store()
, nothing happens.
|
A JanaGtkYearView |
|
A JanaGtkEventStore |
void jana_gtk_year_view_set_year (JanaGtkYearView *self
,JanaTime *year
);
Set the year for self
to count events in.
|
A JanaGtkYearView |
|
The year to count events in |
JanaTime * jana_gtk_year_view_get_year (JanaGtkYearView *self
);
Gets the year self
is counting events in.
|
A JanaGtkYearView |
Returns : |
The year self is counting events in. |
void jana_gtk_year_view_set_months_per_row (JanaGtkYearView *self
,guint months_per_row
);
Set the number of months for self
to pack into a row.
|
A JanaGtkYearView |
|
Months to pack per row, between 1 and 12, inclusive |
gint jana_gtk_year_view_get_selected_month
(JanaGtkYearView *self
);
Gets the currently selected month, between 0 and 12 inclusive. 0 corresponds to there being no event selected.
|
A JanaGtkYearView |
Returns : |
The selected month, 1 - 12, or 0 if there is no selected month. |
void jana_gtk_year_view_set_selected_month (JanaGtkYearView *self
,gint month
);
Sets or clears the selected month.
|
A JanaGtkYearView |
|
A month (1 - 12), or 0 to clear the selection |
void jana_gtk_year_view_set_highlighted_time (JanaGtkYearView *self
,JanaTime *time
);
Sets a time to be highlighted. This can be used to highlight the current time, for example.
|
A JanaGtkYearView |
|
A JanaTime |
"highlighted-time"
property"highlighted-time" GObject* : Read / Write
A time that should be highlighted, for example, the current time.
"months-per-row"
property"months-per-row" guint : Write
Months to display per row.
Allowed values: [1,12]
Default value: 3
"selection-changed"
signalvoid user_function (JanaGtkYearView *janagtkyearview,
gint arg1,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |