Trait ux::ListViewExt[][src]

pub trait ListViewExt: 'static {
    pub fn add_attribute(&self, attribute: &str, column: u32);
pub fn freeze(&self);
pub fn get_factory(&self) -> Option<ItemFactory>;
pub fn get_item_type(&self) -> Type;
pub fn get_model(&self) -> Option<Model>;
pub fn set_factory(&self, factory: Option<&ItemFactory>);
pub fn set_item_type(&self, item_type: Type);
pub fn set_model<P>(&self, model: &P)
    where
        P: Is<Model>
;
pub fn thaw(&self);
pub fn connect_property_factory_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_item_type_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_model_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Required methods

pub fn add_attribute(&self, attribute: &str, column: u32)[src]

add_attribute: @listview: An #ListView @attribute: Name of the attribute @column: Column number

Adds an attribute mapping between the current model and the objects from the cell renderer.

pub fn freeze(&self)[src]

freeze: @listview: An #ListView

Freeze the view. This means that the view will not act on changes to the model until it is thawed. Call #thaw to thaw the view.

pub fn get_factory(&self) -> Option<ItemFactory>[src]

get_factory: @listview: A #ListView

Gets the #ItemFactory used for creating new list items.

Returns: (transfer none): A #ItemFactory.

pub fn get_item_type(&self) -> Type[src]

get_item_type: @listview: An #ListView

Get the item type currently being used to create items

Returns: a #GType

pub fn get_model(&self) -> Option<Model>[src]

get_model: @listview: An #ListView

Get the model currently used by the #ListView

Returns: (transfer none): the current #Model

pub fn set_factory(&self, factory: Option<&ItemFactory>)[src]

set_factory: @listview: A #ListView @factory: (allow-none): A #ItemFactory

Sets @factory to be the factory used for creating new list items

pub fn set_item_type(&self, item_type: Type)[src]

set_item_type: @listview: An #ListView @item_type: A #GType

Set the item type used to create items representing each row in the model

pub fn set_model<P>(&self, model: &P) where
    P: Is<Model>, 
[src]

set_model: @listview: An #ListView @model: A #Model

Set the model used by the #ListView

pub fn thaw(&self)[src]

thaw: @listview: An #ListView

Thaw the view. This means that the view will now act on changes to the model.

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

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

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

Loading content...

Implementors

impl<O> ListViewExt for O where
    O: Is<ListView>, 
[src]

pub fn add_attribute(&self, attribute: &str, column: u32)[src]

add_attribute: @listview: An #ListView @attribute: Name of the attribute @column: Column number

Adds an attribute mapping between the current model and the objects from the cell renderer.

pub fn freeze(&self)[src]

freeze: @listview: An #ListView

Freeze the view. This means that the view will not act on changes to the model until it is thawed. Call #thaw to thaw the view.

pub fn get_factory(&self) -> Option<ItemFactory>[src]

get_factory: @listview: A #ListView

Gets the #ItemFactory used for creating new list items.

Returns: (transfer none): A #ItemFactory.

pub fn get_item_type(&self) -> Type[src]

get_item_type: @listview: An #ListView

Get the item type currently being used to create items

Returns: a #GType

pub fn get_model(&self) -> Option<Model>[src]

get_model: @listview: An #ListView

Get the model currently used by the #ListView

Returns: (transfer none): the current #Model

pub fn set_factory(&self, factory: Option<&ItemFactory>)[src]

set_factory: @listview: A #ListView @factory: (allow-none): A #ItemFactory

Sets @factory to be the factory used for creating new list items

pub fn set_item_type(&self, item_type: Type)[src]

set_item_type: @listview: An #ListView @item_type: A #GType

Set the item type used to create items representing each row in the model

pub fn set_model<P>(&self, model: &P) where
    P: Is<Model>, 
[src]

set_model: @listview: An #ListView @model: A #Model

Set the model used by the #ListView

pub fn thaw(&self)[src]

thaw: @listview: An #ListView

Thaw the view. This means that the view will now act on changes to the model.

Loading content...