Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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
- 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, MonadIO m) => Int32 -> m (GValueConstruct o)
- getCalendarDay :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarDay :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarDetailHeightRows :: (IsCalendar o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getCalendarDetailHeightRows :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarDetailHeightRows :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarDetailWidthChars :: (IsCalendar o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getCalendarDetailWidthChars :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarDetailWidthChars :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarMonth :: (IsCalendar o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getCalendarMonth :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarMonth :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- constructCalendarNoMonthChange :: (IsCalendar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCalendarNoMonthChange :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarNoMonthChange :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowDayNames :: (IsCalendar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCalendarShowDayNames :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowDayNames :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowDetails :: (IsCalendar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCalendarShowDetails :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowDetails :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowHeading :: (IsCalendar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCalendarShowHeading :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowHeading :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarShowWeekNumbers :: (IsCalendar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCalendarShowWeekNumbers :: (MonadIO m, IsCalendar o) => o -> m Bool
- setCalendarShowWeekNumbers :: (MonadIO m, IsCalendar o) => o -> Bool -> m ()
- constructCalendarYear :: (IsCalendar o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getCalendarYear :: (MonadIO m, IsCalendar o) => o -> m Int32
- setCalendarYear :: (MonadIO m, IsCalendar o) => o -> Int32 -> m ()
- type CalendarDaySelectedCallback = IO ()
- afterCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedCallback) -> m SignalHandlerId
- onCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedCallback) -> m SignalHandlerId
- type CalendarDaySelectedDoubleClickCallback = IO ()
- afterCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedDoubleClickCallback) -> m SignalHandlerId
- onCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedDoubleClickCallback) -> m SignalHandlerId
- type CalendarMonthChangedCallback = IO ()
- afterCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarMonthChangedCallback) -> m SignalHandlerId
- onCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarMonthChangedCallback) -> m SignalHandlerId
- type CalendarNextMonthCallback = IO ()
- afterCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextMonthCallback) -> m SignalHandlerId
- onCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextMonthCallback) -> m SignalHandlerId
- type CalendarNextYearCallback = IO ()
- afterCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextYearCallback) -> m SignalHandlerId
- onCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextYearCallback) -> m SignalHandlerId
- type CalendarPrevMonthCallback = IO ()
- afterCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevMonthCallback) -> m SignalHandlerId
- onCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevMonthCallback) -> m SignalHandlerId
- type CalendarPrevYearCallback = IO ()
- afterCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevYearCallback) -> m SignalHandlerId
- onCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevYearCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Calendar Source # | |
GObject Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar | |
ManagedPtrNewtype Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar toManagedPtr :: Calendar -> ManagedPtr Calendar | |
TypedObject Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar | |
HasParentTypes Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar | |
IsGValue (Maybe Calendar) Source # | Convert |
Defined in GI.Gtk.Objects.Calendar gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Calendar -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Calendar) | |
type ParentTypes Calendar Source # | |
Defined in GI.Gtk.Objects.Calendar |
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
Click to display all available methods, including inherited ones
Methods
activate, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, childFocus, childNotify, classPath, clearMarks, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forceFloating, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, markDay, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, runDispose, selectDay, selectMonth, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unmarkDay, unparent, unrealize, unref, unregisterWindow, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getCanDefault, getCanFocus, getChildRequisition, getChildVisible, getClip, getClipboard, getCompositeName, getData, getDate, getDayIsMarked, getDetailHeightRows, getDetailWidthChars, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDisplayOptions, getDoubleBuffered, getEvents, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDetailFunc, setDetailHeightRows, setDetailWidthChars, setDeviceEnabled, setDeviceEvents, setDirection, setDisplayOptions, setDoubleBuffered, setEvents, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReceivesDefault, setRedrawOnAllocate, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
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:detailWidthChars.
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:detailWidthChars.
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:showDetails 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:showDetails is not set.
The size of the details area can be restricted by setting the Calendar:detailWidthChars and Calendar:detailHeightRows properties.
Since: 2.14
setDetailHeightRows
calendarSetDetailHeightRows Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Int32 |
|
-> m () |
Updates the height of detail cells. See Calendar:detailHeightRows.
Since: 2.14
setDetailWidthChars
calendarSetDetailWidthChars Source #
:: (HasCallStack, MonadIO m, IsCalendar a) | |
=> a |
|
-> Int32 |
|
-> m () |
Updates the width of detail cells. See Calendar:detailWidthChars.
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, MonadIO m) => Int32 -> m (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, MonadIO m) => Int32 -> m (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, MonadIO m) => Int32 -> m (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, MonadIO m) => Int32 -> m (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, MonadIO m) => Bool -> m (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, MonadIO m) => Bool -> m (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, MonadIO m) => Bool -> m (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, MonadIO m) => Bool -> m (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, MonadIO m) => Bool -> m (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, MonadIO m) => Int32 -> m (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 CalendarDaySelectedCallback = IO () Source #
Emitted when the user selects a day.
afterCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the daySelected signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #daySelected callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarDaySelected :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the daySelected signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #daySelected callback
daySelectedDoubleClick
type CalendarDaySelectedDoubleClickCallback = IO () Source #
Emitted when the user double-clicks a day.
afterCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedDoubleClickCallback) -> m SignalHandlerId Source #
Connect a signal handler for the daySelectedDoubleClick signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #daySelectedDoubleClick callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarDaySelectedDoubleClick :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarDaySelectedDoubleClickCallback) -> m SignalHandlerId Source #
Connect a signal handler for the daySelectedDoubleClick signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #daySelectedDoubleClick callback
monthChanged
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 -> ((?self :: a) => CalendarMonthChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the monthChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #monthChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarMonthChanged :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarMonthChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the monthChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #monthChanged callback
nextMonth
type CalendarNextMonthCallback = IO () Source #
Emitted when the user switched to the next month.
afterCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextMonthCallback) -> m SignalHandlerId Source #
Connect a signal handler for the nextMonth signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #nextMonth callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarNextMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextMonthCallback) -> m SignalHandlerId Source #
Connect a signal handler for the nextMonth signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #nextMonth callback
nextYear
type CalendarNextYearCallback = IO () Source #
Emitted when user switched to the next year.
afterCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextYearCallback) -> m SignalHandlerId Source #
Connect a signal handler for the nextYear signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #nextYear callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarNextYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarNextYearCallback) -> m SignalHandlerId Source #
Connect a signal handler for the nextYear signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #nextYear callback
prevMonth
type CalendarPrevMonthCallback = IO () Source #
Emitted when the user switched to the previous month.
afterCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevMonthCallback) -> m SignalHandlerId Source #
Connect a signal handler for the prevMonth signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #prevMonth callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarPrevMonth :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevMonthCallback) -> m SignalHandlerId Source #
Connect a signal handler for the prevMonth signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #prevMonth callback
prevYear
type CalendarPrevYearCallback = IO () Source #
Emitted when user switched to the previous year.
afterCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevYearCallback) -> m SignalHandlerId Source #
Connect a signal handler for the prevYear signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
calendar #prevYear callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onCalendarPrevYear :: (IsCalendar a, MonadIO m) => a -> ((?self :: a) => CalendarPrevYearCallback) -> m SignalHandlerId Source #
Connect a signal handler for the prevYear signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
calendar #prevYear callback