Trait ux::DialogExt [−][src]
pub trait DialogExt: 'static { pub fn add_action<P>(&self, action: &P)
where
P: Is<PushAction>; pub fn get_actions(&self) -> Vec<PushAction, Global>ⓘ; pub fn remove_action<P>(&self, action: &P)
where
P: Is<PushAction>; pub fn set_transient_parent<P>(&self, actor: &P)
where
P: Is<Actor>; }
Required methods
pub fn add_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
add_action: @dialog: A #Dialog @action: A #PushAction
Adds an #Button that represents @action to the button area of @dialog
pub fn get_actions(&self) -> Vec<PushAction, Global>ⓘ
[src]
get_actions: @dialog: A #Dialog
Retrieves a list of actions added to @dialog.
Returns: (transfer container) (element-type PushAction): A newly allocated #GList of #PushAction objects. The actions in the list are owned by the dialog.
pub fn remove_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
remove_action: @dialog: A #Dialog @action: A #PushAction
Removes the button associated with @action from the button area of @dialog
pub fn set_transient_parent<P>(&self, actor: &P) where
P: Is<Actor>,
[src]
P: Is<Actor>,
set_transient_parent: @dialog: A #Dialog @actor: A #Actor
Sets the parent of the #Dialog. This is the actor over which the modal frame will appear when actor_show() is called.
Implementors
impl<O> DialogExt for O where
O: Is<Dialog>,
[src]
impl<O> DialogExt for O where
O: Is<Dialog>,
[src]pub fn add_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
add_action: @dialog: A #Dialog @action: A #PushAction
Adds an #Button that represents @action to the button area of @dialog
pub fn get_actions(&self) -> Vec<PushAction, Global>ⓘ
[src]
get_actions: @dialog: A #Dialog
Retrieves a list of actions added to @dialog.
Returns: (transfer container) (element-type PushAction): A newly allocated #GList of #PushAction objects. The actions in the list are owned by the dialog.
pub fn remove_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
remove_action: @dialog: A #Dialog @action: A #PushAction
Removes the button associated with @action from the button area of @dialog
pub fn set_transient_parent<P>(&self, actor: &P) where
P: Is<Actor>,
[src]
P: Is<Actor>,
set_transient_parent: @dialog: A #Dialog @actor: A #Actor
Sets the parent of the #Dialog. This is the actor over which the modal frame will appear when actor_show() is called.