Gtk2HsContentsIndex
Graphics.UI.Gtk.Misc.Calendar
Description
This widget shows a calendar.
Synopsis
data Calendar
class WidgetClass o => CalendarClass o
castToCalendar :: GObjectClass obj => obj -> Calendar
calendarNew :: IO Calendar
calendarSelectMonth :: CalendarClass c => c -> Int -> Int -> IO Bool
calendarSelectDay :: CalendarClass c => c -> Int -> IO ()
calendarMarkDay :: CalendarClass c => c -> Int -> IO Bool
calendarUnmarkDay :: CalendarClass c => c -> Int -> IO Bool
calendarClearMarks :: CalendarClass c => c -> IO ()
calendarDisplayOptions :: CalendarClass c => c -> [CalendarDisplayOptions] -> IO ()
calendarSetDisplayOptions :: CalendarClass c => c -> [CalendarDisplayOptions] -> IO ()
calendarGetDisplayOptions :: CalendarClass c => c -> IO [CalendarDisplayOptions]
calendarGetDate :: CalendarClass c => c -> IO (Int, Int, Int)
onDaySelected :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterDaySelected :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onDaySelectedDoubleClick :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterDaySelectedDoubleClick :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onMonthChanged :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterMonthChanged :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onNextMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterNextMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onNextYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterNextYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onPrevMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterPrevMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onPrevYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
afterPrevYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
Documentation
data Calendar
Instances
CalendarClass Calendar
WidgetClass Calendar
ObjectClass Calendar
GObjectClass Calendar
class WidgetClass o => CalendarClass o
Instances
CalendarClass Calendar
castToCalendar :: GObjectClass obj => obj -> Calendar
calendarNew :: IO Calendar

Create a new calendar widget.

  • No sensible date will be set.
calendarSelectMonth :: CalendarClass c => c -> Int -> Int -> IO Bool

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

  • Returns True if the operation succeeded.
calendarSelectDay :: CalendarClass c => c -> Int -> IO ()
Shift to a day, counted form 1 to 31 (depending on the month of course).
calendarMarkDay :: CalendarClass c => c -> Int -> IO Bool

Mark (select) a day in the current month.

  • Returns True if the argument was within bounds and the day was previously deselected.
calendarUnmarkDay :: CalendarClass c => c -> Int -> IO Bool

Unmark (deselect) a day in the current month.

  • Returns True if the argument was within bounds and the day was previously selected.
calendarClearMarks :: CalendarClass c => c -> IO ()
Unmark every day in the current page.
calendarDisplayOptions :: CalendarClass c => c -> [CalendarDisplayOptions] -> IO ()
Depreciaded, use calendarSetDisplayOptions.
calendarSetDisplayOptions :: CalendarClass c => c -> [CalendarDisplayOptions] -> IO ()
Specifies how the calendar should be displayed.
calendarGetDisplayOptions :: CalendarClass c => c -> IO [CalendarDisplayOptions]
Returns the current display options for the calendar.
calendarGetDate :: CalendarClass c => c -> IO (Int, Int, Int)

Retrieve the currently selected date.

  • Returns (year, month, day) of the selection.
onDaySelected :: CalendarClass c => c -> IO () -> IO (ConnectId c)
Emitted when a day was selected.
afterDaySelected :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onDaySelectedDoubleClick :: CalendarClass c => c -> IO () -> IO (ConnectId c)
Emitted when a day received a double click.
afterDaySelectedDoubleClick :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onMonthChanged :: CalendarClass c => c -> IO () -> IO (ConnectId c)
The month changed.
afterMonthChanged :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onNextMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
The next month was selected.
afterNextMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onNextYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
The next year was selected.
afterNextYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onPrevMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
The previous month was selected.
afterPrevMonth :: CalendarClass c => c -> IO () -> IO (ConnectId c)
onPrevYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
The previous year was selected.
afterPrevYear :: CalendarClass c => c -> IO () -> IO (ConnectId c)
Produced by Haddock version 0.6