Trait ux::native::ExpanderExt[][src]

pub trait ExpanderExt: 'static {
    pub fn get_expanded(&self) -> bool;
pub fn set_expanded(&self, expanded: bool);
pub fn set_label(&self, label: &str);
pub fn get_property_label(&self) -> Option<String>;
pub fn connect_expand_complete<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_expanded_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_label_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Required methods

pub fn get_expanded(&self) -> bool[src]

get_expanded: @expander: a #Expander

Get the current state of the expander (the value of #Expander:expanded)

Returns: #true if the expander is open, #false if it is closed

pub fn set_expanded(&self, expanded: bool)[src]

set_expanded: @expander: A #Expander @expanded: the state of the expander to set

Set the state (the #Expander:expanded property) of the expander. This will cause the expander to open or close.

pub fn set_label(&self, label: &str)[src]

set_label: @expander: A #Expander @label: string to set as the expander label

Sets the text displayed as the title of the expander

pub fn get_property_label(&self) -> Option<String>[src]

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

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

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

Loading content...

Implementors

impl<O> ExpanderExt for O where
    O: Is<Expander>, 
[src]

pub fn get_expanded(&self) -> bool[src]

get_expanded: @expander: a #Expander

Get the current state of the expander (the value of #Expander:expanded)

Returns: #true if the expander is open, #false if it is closed

pub fn set_expanded(&self, expanded: bool)[src]

set_expanded: @expander: A #Expander @expanded: the state of the expander to set

Set the state (the #Expander:expanded property) of the expander. This will cause the expander to open or close.

pub fn set_label(&self, label: &str)[src]

set_label: @expander: A #Expander @label: string to set as the expander label

Sets the text displayed as the title of the expander

Loading content...