![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
MxListView; ClutterActor * mx_list_view_new (void
); void mx_list_view_set_model (MxListView *list_view
,ClutterModel *model
); ClutterModel * mx_list_view_get_model (MxListView *list_view
); void mx_list_view_set_item_type (MxListView *list_view
,GType item_type
); GType mx_list_view_get_item_type (MxListView *list_view
); void mx_list_view_add_attribute (MxListView *list_view
,const gchar *attribute
,gint column
); void mx_list_view_freeze (MxListView *list_view
); void mx_list_view_thaw (MxListView *list_view
); void mx_list_view_set_factory (MxListView *list_view
,MxItemFactory *factory
); MxItemFactory * mx_list_view_get_factory (MxListView *list_view
);
GObject +----GInitiallyUnowned +----ClutterActor +----MxWidget +----MxBoxLayout +----MxListView
MxListView implements ClutterScriptable, MxStylable, ClutterContainer, MxScrollable and MxFocusable.
"factory" GObject* : Read / Write "item-type" GType* : Read / Write "model" ClutterModel* : Read / Write
MxListView is a box layout container driven by a ClutterModel. Children are created for each row in the model, either by creating actors from the supplied ClutterActor derived type, or from a MxItemFactory.
Data is set on the children by mapping columns in the model to object properties on the children.
typedef struct _MxListView MxListView;
The contents of the this structure are private and should only be accessed through the public API.
ClutterActor * mx_list_view_new (void
);
Create a new MxListView
Returns : |
a newly allocated MxListView |
void mx_list_view_set_model (MxListView *list_view
,ClutterModel *model
);
Set the model used by the MxListView
|
An MxListView |
|
A ClutterModel |
ClutterModel * mx_list_view_get_model (MxListView *list_view
);
Get the model currently used by the MxListView
|
An MxListView |
Returns : |
the current ClutterModel |
void mx_list_view_set_item_type (MxListView *list_view
,GType item_type
);
Set the item type used to create items representing each row in the model
|
An MxListView |
|
A GType |
GType mx_list_view_get_item_type (MxListView *list_view
);
Get the item type currently being used to create items
|
An MxListView |
Returns : |
a GType |
void mx_list_view_add_attribute (MxListView *list_view
,const gchar *attribute
,gint column
);
Adds an attribute mapping between the current model and the objects from the cell renderer.
|
An MxListView |
|
Name of the attribute |
|
Column number |
void mx_list_view_freeze (MxListView *list_view
);
Freeze the view. This means that the view will not act on changes to the
model until it is thawed. Call mx_list_view_thaw()
to thaw the view
|
An MxListView |
void mx_list_view_thaw (MxListView *list_view
);
Thaw the view. This means that the view will now act on changes to the model.
|
An MxListView |
void mx_list_view_set_factory (MxListView *list_view
,MxItemFactory *factory
);
Sets factory
to be the factory used for creating new list items
|
A MxListView |
|
A MxItemFactory. [allow-none] |
MxItemFactory * mx_list_view_get_factory (MxListView *list_view
);
Gets the MxItemFactory used for creating new list items.
|
A MxListView |
Returns : |
A MxItemFactory. |