Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | e_month_widget_new () |
void | e_month_widget_set_month () |
void | e_month_widget_get_month () |
void | e_month_widget_set_week_start_day () |
GDateWeekday | e_month_widget_get_week_start_day () |
void | e_month_widget_set_show_week_numbers () |
gboolean | e_month_widget_get_show_week_numbers () |
void | e_month_widget_set_show_day_names () |
gboolean | e_month_widget_get_show_day_names () |
void | e_month_widget_set_day_selected () |
gboolean | e_month_widget_get_day_selected () |
void | e_month_widget_set_day_tooltip_markup () |
const gchar * | e_month_widget_get_day_tooltip_markup () |
void | e_month_widget_clear_day_tooltips () |
void | e_month_widget_add_day_css_class () |
void | e_month_widget_remove_day_css_class () |
void | e_month_widget_clear_day_css_classes () |
guint | e_month_widget_get_day_at_position () |
gboolean | show-day-names | Read / Write |
gboolean | show-week-numbers | Read / Write |
int | week-start-day | Read / Write |
#define | E_MONTH_WIDGET_CSS_CLASS_BOLD |
#define | E_MONTH_WIDGET_CSS_CLASS_ITALIC |
#define | E_MONTH_WIDGET_CSS_CLASS_UNDERLINE |
#define | E_MONTH_WIDGET_CSS_CLASS_HIGHLIGHT |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkEventBox ╰── EMonthWidget
void e_month_widget_set_month (EMonthWidget *self
,GDateMonth month
,guint year
);
Sets the month
of the year
to be shown in the self
.
Since: 3.46
void e_month_widget_get_month (EMonthWidget *self
,GDateMonth *out_month
,guint *out_year
);
Retrieve currently shown month and/or year in the self
.
self |
an EMonthWidget |
|
out_month |
an output location to set the shown month to, as GDateMonth, or |
[out][optioal] |
out_year |
an output location to set the shown year to, or |
[out][optional] |
Since: 3.46
void e_month_widget_set_week_start_day (EMonthWidget *self
,GDateWeekday value
);
Set which day of week the week starts on.
Since: 3.46
GDateWeekday
e_month_widget_get_week_start_day (EMonthWidget *self
);
Since: 3.46
void e_month_widget_set_show_week_numbers (EMonthWidget *self
,gboolean value
);
Set whether to show the week numbers.
Since: 3.46
gboolean
e_month_widget_get_show_week_numbers (EMonthWidget *self
);
Since: 3.46
void e_month_widget_set_show_day_names (EMonthWidget *self
,gboolean value
);
Set whether to show day names above the month days.
Since: 3.46
gboolean
e_month_widget_get_show_day_names (EMonthWidget *self
);
Since: 3.46
void e_month_widget_set_day_selected (EMonthWidget *self
,guint day
,gboolean selected
);
Sets the day
as selected
. There can be selected more
than one day.
Using the day
out of range for the current month and year
leads to no change being done.
Since: 3.46
gboolean e_month_widget_get_day_selected (EMonthWidget *self
,guint day
);
Returns whether the day
is selected. Using the day
out of range
for the current month and year always returns FALSE
.
Since: 3.46
void e_month_widget_set_day_tooltip_markup (EMonthWidget *self
,guint day
,const gchar *tooltip_markup
);
Sets a tooltip tooltip_markup
for the day
. The tooltip_markup
is expected to be markup.
The function does nothing when the day
is out of range.
self |
an EMonthWidget |
|
day |
a day of month |
|
tooltip_markup |
a tooltip to set, or |
[nullable] |
Since: 3.46
const gchar * e_month_widget_get_day_tooltip_markup (EMonthWidget *self
,guint day
);
Returns a tooltip markup for the day
, previously set by e_month_widget_set_day_tooltip_markup()
,
or NULL
when none is set.
The function returns NULL
when the day
is out of range.
Since: 3.46
void
e_month_widget_clear_day_tooltips (EMonthWidget *self
);
Clear tooltips for all days of the month.
Since: 3.46
void e_month_widget_add_day_css_class (EMonthWidget *self
,guint day
,const gchar *name
);
Add the CSS class name
for the day
.
The function does nothing when the day
is out of range.
Since: 3.46
void e_month_widget_remove_day_css_class (EMonthWidget *self
,guint day
,const gchar *name
);
Add the CSS class name
for the day
.
The function does nothing when the day
is out of range.
Since: 3.46
void
e_month_widget_clear_day_css_classes (EMonthWidget *self
);
Clear CSS classes for all days of the month. Those considered are E_MONTH_WIDGET_CSS_CLASS_BOLD
,
E_MONTH_WIDGET_CSS_CLASS_ITALIC
, E_MONTH_WIDGET_CSS_CLASS_UNDERLINE
and E_MONTH_WIDGET_CSS_CLASS_HIGHLIGHT
. The function also removes
selected state from the days, if set.
Since: 3.46
guint e_month_widget_get_day_at_position (EMonthWidget *self
,gdouble x_win
,gdouble y_win
);
Returns the day of month above which the x_win
, y_win
is. The position
is in the self
widget coordinates. A value 0 is returned when the position
doesn't point into any day.
Since: 3.46
“show-day-names”
property “show-day-names” gboolean
Whether to show day names.
Owner: EMonthWidget
Flags: Read / Write
Default value: FALSE
Since: 3.46
“show-week-numbers”
property “show-week-numbers” gboolean
Whether to show week numbers.
Owner: EMonthWidget
Flags: Read / Write
Default value: FALSE
Since: 3.46
“week-start-day”
property “week-start-day” int
A day the week starts with.
Owner: EMonthWidget
Flags: Read / Write
Allowed values: [0,7]
Default value: 7
Since: 3.46
“changed”
signalvoid user_function (EMonthWidget *self, gpointer user_data)
This signal is emitted when the shown date (month or year) changes.
self |
an EMonthWidget, which sent the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.46
“day-clicked”
signalvoid user_function (EMonthWidget *self, GdkEvent *event, guint year, int month, guint day, gpointer user_data)
This signal is emitted when a day is clicked. It's identified
as a date split into year
, month
and day
.
self |
an EMonthWidget, which sent the signal |
|
event |
a GdkButtonEvent causing this signal; it's always a button release event |
|
year |
the year of the clicked day |
|
month |
the month of the clicked day |
|
day |
the day of the clicked day |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.46