Trait components::ItemViewExt[][src]

pub trait ItemViewExt: 'static {
    fn add_attribute(&self, attribute: &str, column: usize);
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: 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.

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

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.

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

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

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

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

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

set_model: @item_view: An #ItemView @model: A #Model

Set the model used by the #ItemView

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.

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

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

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

Loading content...

Implementors

impl<O: Is<ItemView>> ItemViewExt for O[src]

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.

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

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.

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

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

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

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

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

set_model: @item_view: An #ItemView @model: A #Model

Set the model used by the #ItemView

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.

Loading content...