Trait ux::ItemViewExt [−][src]
pub trait ItemViewExt: 'static { pub fn add_attribute(&self, attribute: &str, column: usize); 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: usize)
[src]
add_attribute: @item_view: An #ItemView @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: @item_view: An #ItemView
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: @item_view: A #ItemView
Gets the #ItemFactory used for creating new items.
Returns: (transfer none): A #ItemFactory.
pub fn get_item_type(&self) -> Type
[src]
get_item_type: @item_view: An #ItemView
Get the item type currently being used to create items
Returns: a #GType
pub fn get_model(&self) -> Option<Model>
[src]
get_model: @item_view: An #ItemView
Get the model currently used by the #ItemView
Returns: (transfer none): the current #Model
pub fn set_factory(&self, factory: Option<&ItemFactory>)
[src]
set_factory: @item_view: A #ItemView @factory: (allow-none): A #ItemFactory
Sets @factory to be the factory used for creating new items
pub fn set_item_type(&self, item_type: Type)
[src]
set_item_type: @item_view: An #ItemView @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]
P: Is<Model>,
set_model: @item_view: An #ItemView @model: A #Model
Set the model used by the #ItemView
pub fn thaw(&self)
[src]
thaw: @item_view: An #ItemView
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]
F: 'static + Fn(&Self),
pub fn connect_property_item_type_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_model_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
Implementors
impl<O> ItemViewExt for O where
O: Is<ItemView>,
[src]
impl<O> ItemViewExt for O where
O: Is<ItemView>,
[src]pub fn add_attribute(&self, attribute: &str, column: usize)
[src]
add_attribute: @item_view: An #ItemView @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: @item_view: An #ItemView
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: @item_view: A #ItemView
Gets the #ItemFactory used for creating new items.
Returns: (transfer none): A #ItemFactory.
pub fn get_item_type(&self) -> Type
[src]
get_item_type: @item_view: An #ItemView
Get the item type currently being used to create items
Returns: a #GType
pub fn get_model(&self) -> Option<Model>
[src]
get_model: @item_view: An #ItemView
Get the model currently used by the #ItemView
Returns: (transfer none): the current #Model
pub fn set_factory(&self, factory: Option<&ItemFactory>)
[src]
set_factory: @item_view: A #ItemView @factory: (allow-none): A #ItemFactory
Sets @factory to be the factory used for creating new items
pub fn set_item_type(&self, item_type: Type)
[src]
set_item_type: @item_view: An #ItemView @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]
P: Is<Model>,
set_model: @item_view: An #ItemView @model: A #Model
Set the model used by the #ItemView
pub fn thaw(&self)
[src]
thaw: @item_view: An #ItemView
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(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_item_type_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_model_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),