[]Struct gio::SimpleAction

pub struct SimpleAction(_, _);

Methods

impl SimpleAction[src]

pub fn new<'a, P: Into<Option<&'a VariantTy>>>(
    name: &str,
    parameter_type: P
) -> SimpleAction
[src]

pub fn new_stateful<'a, P: Into<Option<&'a VariantTy>>>(
    name: &str,
    parameter_type: P,
    state: &Variant
) -> SimpleAction
[src]

pub fn set_enabled(&self, enabled: bool)[src]

pub fn set_state(&self, value: &Variant)[src]

pub fn set_state_hint<'a, P: Into<Option<&'a Variant>>>(&self, state_hint: P)[src]

pub fn connect_activate<F: Fn(&SimpleAction, &Option<Variant>) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_change_state<F: Fn(&SimpleAction, &Option<Variant>) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_enabled_notify<F: Fn(&SimpleAction) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_state_type_notify<F: Fn(&SimpleAction) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for SimpleAction

impl Eq for SimpleAction

impl Ord for SimpleAction

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

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

impl Display for SimpleAction[src]

impl Debug for SimpleAction

impl Hash for SimpleAction

impl IsA<Action> for SimpleAction

impl StaticType for SimpleAction

Auto Trait Implementations

impl !Send for SimpleAction

impl !Sync for SimpleAction

impl Unpin for SimpleAction

impl UnwindSafe for SimpleAction

impl RefUnwindSafe for SimpleAction

Blanket Implementations

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

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

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, 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.

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

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

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

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

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

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

impl<T> Cast for T where
    T: ObjectType
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

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