Name

Calendar —

This widget shows a calendar.

Synopsis

calendarNew:: IO Calendar
calendarClearMarks:: CalendarClass c => c -> IO ()
calendarDisplayOptions:: CalendarClass c => c -> [CalendarDisplayOptions] -> IO ()
calendarFreeze:: CalendarClass c => c -> IO a -> IO a
calendarGetDate:: CalendarClass c => c -> IO (Int,Int,Int)
calendarMarkDay:: CalendarClass c => c -> Int -> IO Bool
calendarSelectDay:: CalendarClass c => c -> Int -> IO ()
calendarSelectMonth:: CalendarClass c => c -> Int -> Int -> IO Bool
calendarUnmarkDay:: CalendarClass c => c -> Int -> IO Bool
onDaySelected:: CalendarClass c => c -> IO () -> IO (ConnectId c)
onDaySelectedDoubleClick:: CalendarClass c => c -> IO () -> IO (ConnectId c)
onMonthChanged:: CalendarClass c => c -> IO () -> IO (ConnectId c)
onNextMonth:: CalendarClass c => c -> IO () -> IO (ConnectId c)
onNextYear:: CalendarClass c => c -> IO () -> IO (ConnectId c)
onPrevMonth:: CalendarClass c => c -> IO () -> IO (ConnectId c)
onPrevYear:: CalendarClass c => c -> IO () -> IO (ConnectId c)

Constructors

calendarNew

Create a new calendar widget.

calendarNew

No sensible date will be set.

Methods

calendarClearMarks

Unmark every day in the current page.

calendarClearMarks:: c:: IO ()
cal

calendarDisplayOptions

Specifies how the calendar should be displayed.

calendarDisplayOptions:: c:: [CalendarDisplayOptions]:: IO ()
calopts

calendarFreeze

Freeze the calender for several update operations.

calendarFreeze:: c:: IO a:: IO a
calupdate

calendarGetDate

Retrieve the currently selected date.

calendarGetDate:: c:: IO (Int,Int,Int)
cal

Returns (year, month, day) of the selection.

calendarMarkDay

Mark (select) a day in the current month.

calendarMarkDay:: c:: Int:: IO Bool
calday

Returns True if the argument was within bounds and the day was previously deselected.

calendarSelectDay

Shift to a day, counted form 1 to 31 (depending on the month of course).

calendarSelectDay:: c:: Int:: IO ()
calday

calendarSelectMonth

Flip the page to a month , 0 is January,.., 11 is December.

calendarSelectMonth:: c:: Int:: Int:: IO Bool
calmonthyear

Returns True if the operation succeeded.

calendarUnmarkDay

Unmark (deselect) a day in the current month.

calendarUnmarkDay:: c:: Int:: IO Bool
calday

Returns True if the argument was within bounds and the day was previously selected.

Signals

onDaySelected

Emitted when a day was selected.

onDaySelected:: c:: IO ():: IO (ConnectId c)

onDaySelectedDoubleClick

Emitted when a day received a double click.

onDaySelectedDoubleClick:: c:: IO ():: IO (ConnectId c)

onMonthChanged

The month changed.

onMonthChanged:: c:: IO ():: IO (ConnectId c)

onNextMonth

The next month was selected.

onNextMonth:: c:: IO ():: IO (ConnectId c)

onNextYear

The next year was selected.

onNextYear:: c:: IO ():: IO (ConnectId c)

onPrevMonth

The previous month was selected.

onPrevMonth:: c:: IO ():: IO (ConnectId c)

onPrevYear

The previous year was selected.

onPrevYear:: c:: IO ():: IO (ConnectId c)