Trait components::DialogExt [−][src]
pub trait DialogExt: 'static { fn add_action<P: Is<PushAction>>(&self, action: &P); fn get_actions(&self) -> Vec<PushAction>ⓘ; fn remove_action<P: Is<PushAction>>(&self, action: &P); fn set_transient_parent<P: Is<Actor>>(&self, actor: &P); }
Required methods
fn add_action<P: Is<PushAction>>(&self, action: &P)
[src]
add_action: @dialog: A #Dialog @action: A #PushAction
Adds an #Button that represents @action to the button area of @dialog
fn get_actions(&self) -> Vec<PushAction>ⓘ
[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.
fn remove_action<P: Is<PushAction>>(&self, action: &P)
[src]
remove_action: @dialog: A #Dialog @action: A #PushAction
Removes the button associated with @action from the button area of @dialog
fn set_transient_parent<P: Is<Actor>>(&self, actor: &P)
[src]
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: Is<Dialog>> DialogExt for O
[src]
impl<O: Is<Dialog>> DialogExt for O
[src]fn add_action<P: Is<PushAction>>(&self, action: &P)
[src]
add_action: @dialog: A #Dialog @action: A #PushAction
Adds an #Button that represents @action to the button area of @dialog
fn get_actions(&self) -> Vec<PushAction>ⓘ
[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.
fn remove_action<P: Is<PushAction>>(&self, action: &P)
[src]
remove_action: @dialog: A #Dialog @action: A #PushAction
Removes the button associated with @action from the button area of @dialog
fn set_transient_parent<P: Is<Actor>>(&self, actor: &P)
[src]
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.