Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Calendar
is a widget that displays a Gregorian calendar, one month
at a time. It can be created with calendarNew
.
The month and year currently displayed can be altered with
calendarSelectMonth
. The exact day can be selected from the
displayed month using calendarSelectDay
.
To place a visual marker on a particular day, use calendarMarkDay
and to remove the marker, calendarUnmarkDay
. Alternative, all
marks can be cleared with calendarClearMarks
.
The way in which the calendar itself is displayed can be altered using
calendarSetDisplayOptions
.
The selected date can be retrieved from a Calendar
using
calendarGetDate
.
Users should be aware that, although the Gregorian calendar is the legal calendar in most countries, it was adopted progressively between 1582 and 1929. Display before these dates is likely to be historically incorrect.
Synopsis
- newtype Calendar = Calendar (ManagedPtr Calendar)
- class (GObject o, IsDescendantOf Calendar o) => IsCalendar o
- toCalendar :: (MonadIO m, IsCalendar o) => o -> m Calendar
- noCalendar :: Maybe Calendar
- calendarClearMarks :: (HasCallStack, MonadIO m, IsCalendar a) => a -> m ()
- calendarGetDate :: (HasCallStack, MonadIO m, IsCalendar a) => a -> m (Word32, Word32, Word32)
- calendarGetDayIsMarked :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Word32 -> m Bool
- calendarGetDetailHeightRows :: (HasCallStack, MonadIO m, IsCalendar a) => a -> m Int32
- calendarGetDetailWidthChars :: (HasCallStack, MonadIO m, IsCalendar a) => a -> m Int32
- calendarGetDisplayOptions :: (HasCallStack, MonadIO m, IsCalendar a) => a -> m [CalendarDisplayOptions]
- calendarMarkDay :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Word32 -> m ()
- calendarNew :: (HasCallStack, MonadIO m) => m Calendar
- calendarSelectDay :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Word32 -> m ()
- calendarSelectMonth :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Word32 -> Word32 -> m ()
- calendarSetDetailFunc :: (HasCallStack, MonadIO m, IsCalendar a) => a -> CalendarDetailFunc -> m ()
- calendarSetDetailHeightRows :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Int32 -> m ()
- calendarSetDetailWidthChars :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Int32 -> m ()
- calendarSetDisplayOptions :: (HasCallStack, MonadIO m, IsCalendar a) => a -> [CalendarDisplayOptions] -> m ()
- calendarUnmarkDay :: (HasCallStack, MonadIO m, IsCalendar a) => a -> Word32 -> m ()
- constructCalendarDay :: IsCalendar o => Int32 -> IO (GValueConstruct o)
- getCalendarDay :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarDay :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarDetailHeightRows :: IsCalendar o => Int32 -> IO (GValueConstruct o)
- getCalendarDetailHeightRows :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarDetailHeightRows :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarDetailWidthChars :: IsCalendar o => Int32 -> IO (GValueConstruct o)
- getCalendarDetailWidthChars :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarDetailWidthChars :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarMonth :: IsCalendar o => Int32 -> IO (GValueConstruct o)
- getCalendarMonth :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarMonth :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarNoMonthChange :: IsCalendar o => Bool -> IO (GValueConstruct o)
- getCalendarNoMonthChange :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarNoMonthChange :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowDayNames :: IsCalendar o => Bool -> IO (GValueConstruct o)
- getCalendarShowDayNames :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowDayNames :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowDetails :: IsCalendar o => Bool -> IO (GValueConstruct o)
- getCalendarShowDetails :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowDetails :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowHeading :: IsCalendar o => Bool -> IO (GValueConstruct o)
- getCalendarShowHeading :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowHeading :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowWeekNumbers :: IsCalendar o => Bool -> IO (GValueConstruct o)
- getCalendarShowWeekNumbers :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowWeekNumbers :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarYear :: IsCalendar o => Int32 -> IO (GValueConstruct o)
- getCalendarYear :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarYear :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- type C_CalendarDaySelectedCallback = Ptr () -> Ptr () -> IO ()
- type CalendarDaySelectedCallback = IO ()
- afterCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedCallback -> m SignalHandlerId
- genClosure_CalendarDaySelected :: MonadIO m => CalendarDaySelectedCallback -> m (GClosure C_CalendarDaySelectedCallback)
- mk_CalendarDaySelectedCallback :: C_CalendarDaySelectedCallback -> IO (FunPtr C_CalendarDaySelectedCallback)
- noCalendarDaySelectedCallback :: Maybe CalendarDaySelectedCallback
- onCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedCallback -> m SignalHandlerId
- wrap_CalendarDaySelectedCallback :: CalendarDaySelectedCallback -> C_CalendarDaySelectedCallback
- type C_CalendarDaySelectedDoubleClickCallback = Ptr () -> Ptr () -> IO ()
- type CalendarDaySelectedDoubleClickCallback = IO ()
- afterCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedDoubleClickCallback -> m SignalHandlerId
- genClosure_CalendarDaySelectedDoubleClick :: MonadIO m => CalendarDaySelectedDoubleClickCallback -> m (GClosure C_CalendarDaySelectedDoubleClickCallback)
- mk_CalendarDaySelectedDoubleClickCallback :: C_CalendarDaySelectedDoubleClickCallback -> IO (FunPtr C_CalendarDaySelectedDoubleClickCallback)
- noCalendarDaySelectedDoubleClickCallback :: Maybe CalendarDaySelectedDoubleClickCallback
- onCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedDoubleClickCallback -> m SignalHandlerId
- wrap_CalendarDaySelectedDoubleClickCallback :: CalendarDaySelectedDoubleClickCallback -> C_CalendarDaySelectedDoubleClickCallback
- type C_CalendarMonthChangedCallback = Ptr () -> Ptr () -> IO ()
- type CalendarMonthChangedCallback = IO ()
- afterCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> CalendarMonthChangedCallback -> m SignalHandlerId
- genClosure_CalendarMonthChanged :: MonadIO m => CalendarMonthChangedCallback -> m (GClosure C_CalendarMonthChangedCallback)
- mk_CalendarMonthChangedCallback :: C_CalendarMonthChangedCallback -> IO (FunPtr C_CalendarMonthChangedCallback)
- noCalendarMonthChangedCallback :: Maybe CalendarMonthChangedCallback
- onCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> CalendarMonthChangedCallback -> m SignalHandlerId
- wrap_CalendarMonthChangedCallback :: CalendarMonthChangedCallback -> C_CalendarMonthChangedCallback
- type C_CalendarNextMonthCallback = Ptr () -> Ptr () -> IO ()
- type CalendarNextMonthCallback = IO ()
- afterCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> CalendarNextMonthCallback -> m SignalHandlerId
- genClosure_CalendarNextMonth :: MonadIO m => CalendarNextMonthCallback -> m (GClosure C_CalendarNextMonthCallback)
- mk_CalendarNextMonthCallback :: C_CalendarNextMonthCallback -> IO (FunPtr C_CalendarNextMonthCallback)
- noCalendarNextMonthCallback :: Maybe CalendarNextMonthCallback
- onCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> CalendarNextMonthCallback -> m SignalHandlerId
- wrap_CalendarNextMonthCallback :: CalendarNextMonthCallback -> C_CalendarNextMonthCallback
- type C_CalendarNextYearCallback = Ptr () -> Ptr () -> IO ()
- type CalendarNextYearCallback = IO ()
- afterCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> CalendarNextYearCallback -> m SignalHandlerId
- genClosure_CalendarNextYear :: MonadIO m => CalendarNextYearCallback -> m (GClosure C_CalendarNextYearCallback)
- mk_CalendarNextYearCallback :: C_CalendarNextYearCallback -> IO (FunPtr C_CalendarNextYearCallback)
- noCalendarNextYearCallback :: Maybe CalendarNextYearCallback
- onCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> CalendarNextYearCallback -> m SignalHandlerId
- wrap_CalendarNextYearCallback :: CalendarNextYearCallback -> C_CalendarNextYearCallback
- type C_CalendarPrevMonthCallback = Ptr () -> Ptr () -> IO ()
- type CalendarPrevMonthCallback = IO ()
- afterCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> CalendarPrevMonthCallback -> m SignalHandlerId
- genClosure_CalendarPrevMonth :: MonadIO m => CalendarPrevMonthCallback -> m (GClosure C_CalendarPrevMonthCallback)
- mk_CalendarPrevMonthCallback :: C_CalendarPrevMonthCallback -> IO (FunPtr C_CalendarPrevMonthCallback)
- noCalendarPrevMonthCallback :: Maybe CalendarPrevMonthCallback
- onCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> CalendarPrevMonthCallback -> m SignalHandlerId
- wrap_CalendarPrevMonthCallback :: CalendarPrevMonthCallback -> C_CalendarPrevMonthCallback
- type C_CalendarPrevYearCallback = Ptr () -> Ptr () -> IO ()
- type CalendarPrevYearCallback = IO ()
- afterCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> CalendarPrevYearCallback -> m SignalHandlerId
- genClosure_CalendarPrevYear :: MonadIO m => CalendarPrevYearCallback -> m (GClosure C_CalendarPrevYearCallback)
- mk_CalendarPrevYearCallback :: C_CalendarPrevYearCallback -> IO (FunPtr C_CalendarPrevYearCallback)
- noCalendarPrevYearCallback :: Maybe CalendarPrevYearCallback
- onCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> CalendarPrevYearCallback -> m SignalHandlerId
- wrap_CalendarPrevYearCallback :: CalendarPrevYearCallback -> C_CalendarPrevYearCallback
Exported types
Memory-managed wrapper type.
Instances
GObject Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar gobjectType :: IO GType # | |
HasParentTypes Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar | |
type ParentTypes Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar type ParentTypes Calendar = Widget ': (Object ': (ImplementorIface ': (Buildable ': ([] :: [Type])))) |
class (GObject o, IsDescendantOf Calendar o) => IsCalendar o Source #
Type class for types which can be safely cast to Calendar
, for instance with toCalendar
.
Instances
(GObject o, IsDescendantOf Calendar o) => IsCalendar o Source # | |
Defined in GI.Gtk.Objects.Calendar |
toCalendar :: (MonadIO m, IsCalendar o) => o -> m Calendar Source #
Methods
clearMarks
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> m () |
Remove all visual markers.
getDate
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> m (Word32, Word32, Word32) |
Obtains the selected date from a Calendar
.
getDayIsMarked
calendarGetDayIsMarked Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Word32 |
|
-> m Bool | Returns: whether the day is marked. |
Returns if the day
of the calendar
is already marked.
Since: 3.0
getDetailHeightRows
calendarGetDetailHeightRows Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> m Int32 | Returns: The height of detail cells, in rows. |
Queries the height of detail cells, in rows.
See Calendar
:detail-width-chars
.
Since: 2.14
getDetailWidthChars
calendarGetDetailWidthChars Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> m Int32 | Returns: The width of detail cells, in characters. |
Queries the width of detail cells, in characters.
See Calendar
:detail-width-chars
.
Since: 2.14
getDisplayOptions
calendarGetDisplayOptions Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> m [CalendarDisplayOptions] | Returns: the display options. |
Returns the current display options of calendar
.
Since: 2.4
markDay
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Word32 |
|
-> m () |
Places a visual marker on a particular day.
new
:: (HasCallStack, MonadIO m) | |
=> m Calendar | Returns: a newly |
Creates a new calendar, with the current date being selected.
selectDay
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Word32 |
|
-> m () |
Selects a day from the current month.
selectMonth
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Shifts the calendar to a different month.
setDetailFunc
calendarSetDetailFunc Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> CalendarDetailFunc |
|
-> m () |
Installs a function which provides Pango markup with detail information
for each day. Examples for such details are holidays or appointments. That
information is shown below each day when Calendar
:show-details
is set.
A tooltip containing with full detail information is provided, if the entire
text should not fit into the details area, or if Calendar
:show-details
is not set.
The size of the details area can be restricted by setting the
Calendar
:detail-width-chars
and Calendar
:detail-height-rows
properties.
Since: 2.14
setDetailHeightRows
calendarSetDetailHeightRows Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Int32 |
|
-> m () |
Updates the height of detail cells.
See Calendar
:detail-height-rows
.
Since: 2.14
setDetailWidthChars
calendarSetDetailWidthChars Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Int32 |
|
-> m () |
Updates the width of detail cells.
See Calendar
:detail-width-chars
.
Since: 2.14
setDisplayOptions
calendarSetDisplayOptions Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> [CalendarDisplayOptions] |
|
-> m () |
Sets display options (whether to display the heading and the month headings).
Since: 2.4
unmarkDay
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the visual marker from a particular day.
Properties
day
The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day). This property gets initially set to the current day.
constructCalendarDay :: IsCalendar o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “day
” property. This is rarely needed directly, but it is used by new
.
getCalendarDay :: (MonadIO m, IsCalendar o) => o -> m Int32 Source #
Get the value of the “day
” property.
When overloading is enabled, this is equivalent to
get
calendar #day
setCalendarDay :: (MonadIO m, IsCalendar o) => o -> Int32 -> m () Source #
Set the value of the “day
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #day:=
value ]
detailHeightRows
Height of a detail cell, in rows.
A value of 0 allows any width. See calendarSetDetailFunc
.
Since: 2.14
constructCalendarDetailHeightRows :: IsCalendar o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “detail-height-rows
” property. This is rarely needed directly, but it is used by new
.
getCalendarDetailHeightRows :: (MonadIO m, IsCalendar o) => o -> m Int32 Source #
Get the value of the “detail-height-rows
” property.
When overloading is enabled, this is equivalent to
get
calendar #detailHeightRows
setCalendarDetailHeightRows :: (MonadIO m, IsCalendar o) => o -> Int32 -> m () Source #
Set the value of the “detail-height-rows
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #detailHeightRows:=
value ]
detailWidthChars
Width of a detail cell, in characters.
A value of 0 allows any width. See calendarSetDetailFunc
.
Since: 2.14
constructCalendarDetailWidthChars :: IsCalendar o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “detail-width-chars
” property. This is rarely needed directly, but it is used by new
.
getCalendarDetailWidthChars :: (MonadIO m, IsCalendar o) => o -> m Int32 Source #
Get the value of the “detail-width-chars
” property.
When overloading is enabled, this is equivalent to
get
calendar #detailWidthChars
setCalendarDetailWidthChars :: (MonadIO m, IsCalendar o) => o -> Int32 -> m () Source #
Set the value of the “detail-width-chars
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #detailWidthChars:=
value ]
month
The selected month (as a number between 0 and 11). This property gets initially set to the current month.
constructCalendarMonth :: IsCalendar o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “month
” property. This is rarely needed directly, but it is used by new
.
getCalendarMonth :: (MonadIO m, IsCalendar o) => o -> m Int32 Source #
Get the value of the “month
” property.
When overloading is enabled, this is equivalent to
get
calendar #month
setCalendarMonth :: (MonadIO m, IsCalendar o) => o -> Int32 -> m () Source #
Set the value of the “month
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #month:=
value ]
noMonthChange
Determines whether the selected month can be changed.
Since: 2.4
constructCalendarNoMonthChange :: IsCalendar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “no-month-change
” property. This is rarely needed directly, but it is used by new
.
getCalendarNoMonthChange :: (MonadIO m, IsCalendar o) => o -> m Bool Source #
Get the value of the “no-month-change
” property.
When overloading is enabled, this is equivalent to
get
calendar #noMonthChange
setCalendarNoMonthChange :: (MonadIO m, IsCalendar o) => o -> Bool -> m () Source #
Set the value of the “no-month-change
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #noMonthChange:=
value ]
showDayNames
Determines whether day names are displayed.
Since: 2.4
constructCalendarShowDayNames :: IsCalendar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-day-names
” property. This is rarely needed directly, but it is used by new
.
getCalendarShowDayNames :: (MonadIO m, IsCalendar o) => o -> m Bool Source #
Get the value of the “show-day-names
” property.
When overloading is enabled, this is equivalent to
get
calendar #showDayNames
setCalendarShowDayNames :: (MonadIO m, IsCalendar o) => o -> Bool -> m () Source #
Set the value of the “show-day-names
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #showDayNames:=
value ]
showDetails
Determines whether details are shown directly in the widget, or if they are available only as tooltip. When this property is set days with details are marked.
Since: 2.14
constructCalendarShowDetails :: IsCalendar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-details
” property. This is rarely needed directly, but it is used by new
.
getCalendarShowDetails :: (MonadIO m, IsCalendar o) => o -> m Bool Source #
Get the value of the “show-details
” property.
When overloading is enabled, this is equivalent to
get
calendar #showDetails
setCalendarShowDetails :: (MonadIO m, IsCalendar o) => o -> Bool -> m () Source #
Set the value of the “show-details
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #showDetails:=
value ]
showHeading
Determines whether a heading is displayed.
Since: 2.4
constructCalendarShowHeading :: IsCalendar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-heading
” property. This is rarely needed directly, but it is used by new
.
getCalendarShowHeading :: (MonadIO m, IsCalendar o) => o -> m Bool Source #
Get the value of the “show-heading
” property.
When overloading is enabled, this is equivalent to
get
calendar #showHeading
setCalendarShowHeading :: (MonadIO m, IsCalendar o) => o -> Bool -> m () Source #
Set the value of the “show-heading
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #showHeading:=
value ]
showWeekNumbers
Determines whether week numbers are displayed.
Since: 2.4
constructCalendarShowWeekNumbers :: IsCalendar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-week-numbers
” property. This is rarely needed directly, but it is used by new
.
getCalendarShowWeekNumbers :: (MonadIO m, IsCalendar o) => o -> m Bool Source #
Get the value of the “show-week-numbers
” property.
When overloading is enabled, this is equivalent to
get
calendar #showWeekNumbers
setCalendarShowWeekNumbers :: (MonadIO m, IsCalendar o) => o -> Bool -> m () Source #
Set the value of the “show-week-numbers
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #showWeekNumbers:=
value ]
year
The selected year. This property gets initially set to the current year.
constructCalendarYear :: IsCalendar o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “year
” property. This is rarely needed directly, but it is used by new
.
getCalendarYear :: (MonadIO m, IsCalendar o) => o -> m Int32 Source #
Get the value of the “year
” property.
When overloading is enabled, this is equivalent to
get
calendar #year
setCalendarYear :: (MonadIO m, IsCalendar o) => o -> Int32 -> m () Source #
Set the value of the “year
” property.
When overloading is enabled, this is equivalent to
set
calendar [ #year:=
value ]
Signals
daySelected
type C_CalendarDaySelectedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarDaySelectedCallback = IO () Source #
Emitted when the user selects a day.
afterCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “day-selected
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #daySelected callback
genClosure_CalendarDaySelected :: MonadIO m => CalendarDaySelectedCallback -> m (GClosure C_CalendarDaySelectedCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarDaySelectedCallback :: C_CalendarDaySelectedCallback -> IO (FunPtr C_CalendarDaySelectedCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarDaySelectedCallback
.
noCalendarDaySelectedCallback :: Maybe CalendarDaySelectedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarDaySelectedCallback
onCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “day-selected
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #daySelected callback
wrap_CalendarDaySelectedCallback :: CalendarDaySelectedCallback -> C_CalendarDaySelectedCallback Source #
Wrap a CalendarDaySelectedCallback
into a C_CalendarDaySelectedCallback
.
daySelectedDoubleClick
type C_CalendarDaySelectedDoubleClickCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarDaySelectedDoubleClickCallback = IO () Source #
Emitted when the user double-clicks a day.
afterCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedDoubleClickCallback -> m SignalHandlerId Source #
Connect a signal handler for the “day-selected-double-click
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #daySelectedDoubleClick callback
genClosure_CalendarDaySelectedDoubleClick :: MonadIO m => CalendarDaySelectedDoubleClickCallback -> m (GClosure C_CalendarDaySelectedDoubleClickCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarDaySelectedDoubleClickCallback :: C_CalendarDaySelectedDoubleClickCallback -> IO (FunPtr C_CalendarDaySelectedDoubleClickCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarDaySelectedDoubleClickCallback
.
noCalendarDaySelectedDoubleClickCallback :: Maybe CalendarDaySelectedDoubleClickCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarDaySelectedDoubleClickCallback
onCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> CalendarDaySelectedDoubleClickCallback -> m SignalHandlerId Source #
Connect a signal handler for the “day-selected-double-click
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #daySelectedDoubleClick callback
wrap_CalendarDaySelectedDoubleClickCallback :: CalendarDaySelectedDoubleClickCallback -> C_CalendarDaySelectedDoubleClickCallback Source #
monthChanged
type C_CalendarMonthChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarMonthChangedCallback = IO () Source #
Emitted when the user clicks a button to change the selected month on a calendar.
afterCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> CalendarMonthChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “month-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #monthChanged callback
genClosure_CalendarMonthChanged :: MonadIO m => CalendarMonthChangedCallback -> m (GClosure C_CalendarMonthChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarMonthChangedCallback :: C_CalendarMonthChangedCallback -> IO (FunPtr C_CalendarMonthChangedCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarMonthChangedCallback
.
noCalendarMonthChangedCallback :: Maybe CalendarMonthChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarMonthChangedCallback
onCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> CalendarMonthChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “month-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #monthChanged callback
wrap_CalendarMonthChangedCallback :: CalendarMonthChangedCallback -> C_CalendarMonthChangedCallback Source #
Wrap a CalendarMonthChangedCallback
into a C_CalendarMonthChangedCallback
.
nextMonth
type C_CalendarNextMonthCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarNextMonthCallback = IO () Source #
Emitted when the user switched to the next month.
afterCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> CalendarNextMonthCallback -> m SignalHandlerId Source #
Connect a signal handler for the “next-month
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #nextMonth callback
genClosure_CalendarNextMonth :: MonadIO m => CalendarNextMonthCallback -> m (GClosure C_CalendarNextMonthCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarNextMonthCallback :: C_CalendarNextMonthCallback -> IO (FunPtr C_CalendarNextMonthCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarNextMonthCallback
.
noCalendarNextMonthCallback :: Maybe CalendarNextMonthCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarNextMonthCallback
onCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> CalendarNextMonthCallback -> m SignalHandlerId Source #
Connect a signal handler for the “next-month
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #nextMonth callback
wrap_CalendarNextMonthCallback :: CalendarNextMonthCallback -> C_CalendarNextMonthCallback Source #
Wrap a CalendarNextMonthCallback
into a C_CalendarNextMonthCallback
.
nextYear
type C_CalendarNextYearCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarNextYearCallback = IO () Source #
Emitted when user switched to the next year.
afterCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> CalendarNextYearCallback -> m SignalHandlerId Source #
Connect a signal handler for the “next-year
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #nextYear callback
genClosure_CalendarNextYear :: MonadIO m => CalendarNextYearCallback -> m (GClosure C_CalendarNextYearCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarNextYearCallback :: C_CalendarNextYearCallback -> IO (FunPtr C_CalendarNextYearCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarNextYearCallback
.
noCalendarNextYearCallback :: Maybe CalendarNextYearCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarNextYearCallback
onCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> CalendarNextYearCallback -> m SignalHandlerId Source #
Connect a signal handler for the “next-year
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #nextYear callback
wrap_CalendarNextYearCallback :: CalendarNextYearCallback -> C_CalendarNextYearCallback Source #
Wrap a CalendarNextYearCallback
into a C_CalendarNextYearCallback
.
prevMonth
type C_CalendarPrevMonthCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarPrevMonthCallback = IO () Source #
Emitted when the user switched to the previous month.
afterCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> CalendarPrevMonthCallback -> m SignalHandlerId Source #
Connect a signal handler for the “prev-month
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #prevMonth callback
genClosure_CalendarPrevMonth :: MonadIO m => CalendarPrevMonthCallback -> m (GClosure C_CalendarPrevMonthCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarPrevMonthCallback :: C_CalendarPrevMonthCallback -> IO (FunPtr C_CalendarPrevMonthCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarPrevMonthCallback
.
noCalendarPrevMonthCallback :: Maybe CalendarPrevMonthCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarPrevMonthCallback
onCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> CalendarPrevMonthCallback -> m SignalHandlerId Source #
Connect a signal handler for the “prev-month
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #prevMonth callback
wrap_CalendarPrevMonthCallback :: CalendarPrevMonthCallback -> C_CalendarPrevMonthCallback Source #
Wrap a CalendarPrevMonthCallback
into a C_CalendarPrevMonthCallback
.
prevYear
type C_CalendarPrevYearCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CalendarPrevYearCallback = IO () Source #
Emitted when user switched to the previous year.
afterCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> CalendarPrevYearCallback -> m SignalHandlerId Source #
Connect a signal handler for the “prev-year
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
calendar #prevYear callback
genClosure_CalendarPrevYear :: MonadIO m => CalendarPrevYearCallback -> m (GClosure C_CalendarPrevYearCallback) Source #
Wrap the callback into a GClosure
.
mk_CalendarPrevYearCallback :: C_CalendarPrevYearCallback -> IO (FunPtr C_CalendarPrevYearCallback) Source #
Generate a function pointer callable from C code, from a C_CalendarPrevYearCallback
.
noCalendarPrevYearCallback :: Maybe CalendarPrevYearCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CalendarPrevYearCallback
onCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> CalendarPrevYearCallback -> m SignalHandlerId Source #
Connect a signal handler for the “prev-year
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
calendar #prevYear callback