Trait components::ListViewExt [−][src]
pub trait ListViewExt: 'static { fn add_attribute(&self, attribute: &str, column: u32); fn freeze(&self); fn get_factory(&self) -> Option<ItemFactory>; fn get_item_type(&self) -> Type; fn get_model(&self) -> Option<Model>; fn set_factory(&self, factory: Option<&ItemFactory>); fn set_item_type(&self, item_type: Type); fn set_model<P: Is<Model>>(&self, model: &P); fn thaw(&self); fn connect_property_factory_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_item_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required methods
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.
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.
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.
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
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
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
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
fn set_model<P: Is<Model>>(&self, model: &P)
[src]
set_model: @listview: An #ListView @model: A #Model
Set the model used by the #ListView
fn thaw(&self)
[src]
thaw: @listview: An #ListView
Thaw the view. This means that the view will now act on changes to the model.
fn connect_property_factory_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_item_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<ListView>> ListViewExt for O
[src]
impl<O: Is<ListView>> ListViewExt for O
[src]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.
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.
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.
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
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
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
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
fn set_model<P: Is<Model>>(&self, model: &P)
[src]
set_model: @listview: An #ListView @model: A #Model
Set the model used by the #ListView
fn thaw(&self)
[src]
thaw: @listview: An #ListView
Thaw the view. This means that the view will now act on changes to the model.
fn connect_property_factory_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_item_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId