[]Struct gtk::Calendar

pub struct Calendar(_, _);

Calendar is a widget that displays a Gregorian calendar, one month at a time. It can be created with Calendar::new.

The month and year currently displayed can be altered with CalendarExt::select_month. The exact day can be selected from the displayed month using CalendarExt::select_day.

To place a visual marker on a particular day, use CalendarExt::mark_day and to remove the marker, CalendarExt::unmark_day. Alternative, all marks can be cleared with CalendarExt::clear_marks.

The way in which the calendar itself is displayed can be altered using CalendarExt::set_display_options.

The selected date can be retrieved from a Calendar using CalendarExt::get_date.

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.

Implements

CalendarExt, WidgetExt, glib::object::ObjectExt, BuildableExt, WidgetExtManual, BuildableExtManual

Implementations

impl Calendar[src]

pub fn new() -> Calendar[src]

Creates a new calendar, with the current date being selected.

Returns

a newly Calendar widget

Trait Implementations

impl Clone for Calendar

impl Debug for Calendar

impl Default for Calendar[src]

impl Display for Calendar[src]

impl Eq for Calendar

impl Hash for Calendar

impl IsA<Buildable> for Calendar

impl IsA<Widget> for Calendar

impl Ord for Calendar

impl<T: ObjectType> PartialEq<T> for Calendar

impl<T: ObjectType> PartialOrd<T> for Calendar

impl StaticType for Calendar

Auto Trait Implementations

impl RefUnwindSafe for Calendar

impl !Send for Calendar

impl !Sync for Calendar

impl Unpin for Calendar

impl UnwindSafe for Calendar

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.