Struct ux::PushAction [−][src]
pub struct PushAction { /* fields omitted */ }
Implementations
impl PushAction
[src]
pub fn new() -> PushAction
[src]
pub fn new_full(
name: &str,
display_name: &str,
activated_cb: Option<Box<dyn FnOnce(&PushAction) + 'static, Global>>
) -> PushAction
[src]
name: &str,
display_name: &str,
activated_cb: Option<Box<dyn FnOnce(&PushAction) + 'static, Global>>
) -> PushAction
pub fn new_stateful(
name: &str,
parameter_type: Option<&VariantTy>,
state: &Variant
) -> PushAction
[src]
name: &str,
parameter_type: Option<&VariantTy>,
state: &Variant
) -> PushAction
pub fn with_parameter(
name: &str,
parameter_type: Option<&VariantTy>
) -> PushAction
[src]
name: &str,
parameter_type: Option<&VariantTy>
) -> PushAction
Trait Implementations
impl AsRef<PushAction> for PushAction
[src]
pub fn as_ref(&self) -> &PushAction
[src]
impl Clone for PushAction
[src]
pub fn clone(&self) -> PushAction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PushAction
[src]
impl Default for PushAction
[src]
pub fn default() -> PushAction
[src]
impl Display for PushAction
[src]
impl Is<PushAction> for PushAction
[src]
impl Object for PushAction
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PushAction
impl Send for PushAction
impl !Sync for PushAction
impl Unpin for PushAction
impl UnwindSafe for PushAction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<O> PushActionExt for O where
O: Is<PushAction>,
[src]
O: Is<PushAction>,
pub fn get_active(&self) -> bool
[src]
get_active: @action: A #PushAction
Get the value of the active property
Returns: #true if the action is active
pub fn get_display_name(&self) -> Option<String>
[src]
get_display_name: @action: A #PushAction
Get the display name of the action
Returns: display-name of the action, owned by PushAction
pub fn get_icon(&self) -> Option<String>
[src]
get_icon: @action: A #PushAction
Get the icon of the action
Returns: icon of the action, owned by PushAction
pub fn get_name(&self) -> Option<String>
[src]
get_name: @action: A #PushAction
Get the name of the action
Returns: name of the action, owned by PushAction
pub fn set_active(&self, active: bool)
[src]
set_active: @action: A #PushAction @active: the value to set
Set the value of the active property
pub fn set_display_name(&self, name: &str)
[src]
set_display_name: @action: A #PushAction @name: new display name to set
Set the name of the action to display to the user
pub fn set_icon(&self, name: &str)
[src]
set_icon: @action: A #PushAction @name: new icon to set
The icon to be used in a visual representation of an action.
pub fn set_name(&self, name: &str)
[src]
set_name: @action: A #PushAction @name: new name to set
Set the name of the action
pub fn connect_activate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, Option<&Variant>),
[src]
F: 'static + Fn(&O, Option<&Variant>),
pub fn connect_property_display_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_icon_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,