[][src]Struct gtk::CalendarDisplayOptions

pub struct CalendarDisplayOptions { /* fields omitted */ }

These options can be used to influence the display and behaviour of a Calendar.

Implementations

impl CalendarDisplayOptions[src]

pub const SHOW_HEADING: CalendarDisplayOptions[src]

Specifies that the month and year should be displayed.

pub const SHOW_DAY_NAMES: CalendarDisplayOptions[src]

Specifies that three letter day descriptions should be present.

pub const NO_MONTH_CHANGE: CalendarDisplayOptions[src]

Prevents the user from switching months with the calendar.

pub const SHOW_WEEK_NUMBERS: CalendarDisplayOptions[src]

Displays each week numbers of the current year, down the left side of the calendar.

pub const SHOW_DETAILS: CalendarDisplayOptions[src]

Just show an indicator, not the full details text when details are provided. See CalendarExt::set_detail_func.

pub const fn empty() -> CalendarDisplayOptions[src]

Returns an empty set of flags

pub const fn all() -> CalendarDisplayOptions[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<CalendarDisplayOptions>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> CalendarDisplayOptions[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> CalendarDisplayOptions[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: CalendarDisplayOptions) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: CalendarDisplayOptions) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: CalendarDisplayOptions)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: CalendarDisplayOptions)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: CalendarDisplayOptions)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: CalendarDisplayOptions, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for CalendarDisplayOptions[src]

impl BitAnd<CalendarDisplayOptions> for CalendarDisplayOptions[src]

type Output = CalendarDisplayOptions

The resulting type after applying the & operator.

fn bitand(self, other: CalendarDisplayOptions) -> CalendarDisplayOptions[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<CalendarDisplayOptions> for CalendarDisplayOptions[src]

fn bitand_assign(&mut self, other: CalendarDisplayOptions)[src]

Disables all flags disabled in the set.

impl BitOr<CalendarDisplayOptions> for CalendarDisplayOptions[src]

type Output = CalendarDisplayOptions

The resulting type after applying the | operator.

fn bitor(self, other: CalendarDisplayOptions) -> CalendarDisplayOptions[src]

Returns the union of the two sets of flags.

impl BitOrAssign<CalendarDisplayOptions> for CalendarDisplayOptions[src]

fn bitor_assign(&mut self, other: CalendarDisplayOptions)[src]

Adds the set of flags.

impl BitXor<CalendarDisplayOptions> for CalendarDisplayOptions[src]

type Output = CalendarDisplayOptions

The resulting type after applying the ^ operator.

fn bitxor(self, other: CalendarDisplayOptions) -> CalendarDisplayOptions[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<CalendarDisplayOptions> for CalendarDisplayOptions[src]

fn bitxor_assign(&mut self, other: CalendarDisplayOptions)[src]

Toggles the set of flags.

impl Clone for CalendarDisplayOptions[src]

impl Copy for CalendarDisplayOptions[src]

impl Debug for CalendarDisplayOptions[src]

impl Eq for CalendarDisplayOptions[src]

impl Extend<CalendarDisplayOptions> for CalendarDisplayOptions[src]

impl FromIterator<CalendarDisplayOptions> for CalendarDisplayOptions[src]

impl<'a> FromValue<'a> for CalendarDisplayOptions[src]

impl<'a> FromValueOptional<'a> for CalendarDisplayOptions[src]

impl Hash for CalendarDisplayOptions[src]

impl LowerHex for CalendarDisplayOptions[src]

impl Not for CalendarDisplayOptions[src]

type Output = CalendarDisplayOptions

The resulting type after applying the ! operator.

fn not(self) -> CalendarDisplayOptions[src]

Returns the complement of this set of flags.

impl Octal for CalendarDisplayOptions[src]

impl Ord for CalendarDisplayOptions[src]

impl PartialEq<CalendarDisplayOptions> for CalendarDisplayOptions[src]

impl PartialOrd<CalendarDisplayOptions> for CalendarDisplayOptions[src]

impl SetValue for CalendarDisplayOptions[src]

impl StaticType for CalendarDisplayOptions[src]

impl StructuralEq for CalendarDisplayOptions[src]

impl StructuralPartialEq for CalendarDisplayOptions[src]

impl Sub<CalendarDisplayOptions> for CalendarDisplayOptions[src]

type Output = CalendarDisplayOptions

The resulting type after applying the - operator.

fn sub(self, other: CalendarDisplayOptions) -> CalendarDisplayOptions[src]

Returns the set difference of the two sets of flags.

impl SubAssign<CalendarDisplayOptions> for CalendarDisplayOptions[src]

fn sub_assign(&mut self, other: CalendarDisplayOptions)[src]

Disables all flags enabled in the set.

impl UpperHex for CalendarDisplayOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for CalendarDisplayOptions

impl Send for CalendarDisplayOptions

impl Sync for CalendarDisplayOptions

impl Unpin for CalendarDisplayOptions

impl UnwindSafe for CalendarDisplayOptions

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.