Top | ![]() |
![]() |
![]() |
![]() |
VisuUiPlaneListVisuUiPlaneList — Defines a GtkListStore specialised to store VisuPlanes. |
VisuUiPlaneList implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.
It provides a Gtk wrapper around VisuPlaneSet object to store VisuPlanes.
It also can creates GtkTreeView and control widgets to display itself.
VisuUiPlaneList * visu_ui_plane_list_new ();
Create a new GtkListStore to store planes.
Since: 3.8
VisuPlaneSet *
visu_ui_plane_list_getModel (const VisuUiPlaneList *list
);
Retrieve the VisuPlaneSet object that list
is built upon.
Since: 3.8
gboolean visu_ui_plane_list_setModel (VisuUiPlaneList *list
,VisuPlaneSet *set
);
Bind the set
object to list
.
GtkWidget *
visu_ui_plane_list_getView (VisuUiPlaneList *list
);
Retrieve a treeview and a side toolbar that displays the list of planes of the model.
Since: 3.8
GtkBox *
visu_ui_plane_list_getControls (VisuUiPlaneList *list
);
Retrieve the GtkBox object with the GtkWidget to control the
selected plane in the treeview of list
.
Since: 3.8
VisuPlane *
visu_ui_plane_list_getSelection (const VisuUiPlaneList *list
);
Retrieve the selected VisuPlane, or NULL if no selection.
Since: 3.8
VisuPlane * visu_ui_plane_list_getAt (VisuUiPlaneList *list
,guint i
);
Retrieve the VisuPlane object, stored at the place i
in list
.
Since: 3.8
struct VisuUiPlaneListClass { GtkListStoreClass parent; };
Common name to refer to a _VisuUiPlaneListClass.
Thesse are the description of the columns stored in the object.
the pointer to the VisuPlane object. |
||
a handler of the VisuPlane::notify signal. |
||
cache the hidding side of the plane when plane is not hiding. |
||
the number of columns. |
“align”
signalvoid user_function (VisuUiPlaneList *list, VisuPlane *plane, gpointer user_data)
This signal is emitted each time the user request to align with a plane.
list |
the object emitting the signal. |
|
plane |
the requested VisuPlane object for alignment. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8