Struct ux::native::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]

pub fn new_stateful(
    name: &str,
    parameter_type: Option<&VariantTy>,
    state: &Variant
) -> PushAction
[src]

pub fn with_parameter(
    name: &str,
    parameter_type: Option<&VariantTy>
) -> PushAction
[src]

Trait Implementations

impl AsRef<PushAction> for PushAction[src]

impl Clone for PushAction[src]

impl Debug for PushAction[src]

impl Default for PushAction[src]

impl Display for PushAction[src]

impl Is<PushAction> for PushAction[src]

impl Object for PushAction[src]

Auto Trait Implementations

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> Construction<T> for T where
    T: Default + Clone
[src]

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

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

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<O> PushActionExt for O where
    O: Is<PushAction>, 
[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,