Top | ![]() |
![]() |
![]() |
![]() |
VisuPairSetVisuPairSet — a base class for all loadable representation of VisuData objects. |
VisuPairSet * | visu_pair_set_new () |
gboolean | visu_pair_set_setModel () |
VisuPair * | visu_pair_set_getNthPair () |
VisuPair * | visu_pair_set_get () |
VisuPair * | visu_pair_set_getFromLink () |
void | visu_pair_set_iter_new () |
void | visu_pair_set_iter_next () |
void | (*VisuPairPoolForeachFunc) () |
void | visu_pair_pool_foreach () |
void | visu_pair_pool_finalize () |
gboolean | visu_pair_pool_readLinkFromLabel () |
This object is storing dynamically all the VisuPair objects that exist for a given VisuData object.
VisuPairSet * visu_pair_set_new ();
Define an object to handle all possible VisuPair for a given VisuNodeArray.
Since: 3.8
gboolean visu_pair_set_setModel (VisuPairSet *set
,VisuData *nodes
);
Binds nodes
population and unit to set
.
Since: 3.8
VisuPair * visu_pair_set_getNthPair (VisuPairSet *set
,guint pos
);
Retrieve the nth VisuPair stored in set
.
Since: 3.8
VisuPair * visu_pair_set_get (VisuPairSet *set
,const VisuElement *ele1
,const VisuElement *ele2
);
Retrieve the VisuPair linking ele1
and ele2
as stroed in set
if
it exists, or NULL
if not.
Since: 3.8
VisuPair * visu_pair_set_getFromLink (VisuPairSet *set
,const VisuPairLink *link
);
Retrieve the VisuPair stored in set
that contains link
, or NULL
if none.
Since: 3.8
void visu_pair_set_iter_new (VisuPairSet *set
,VisuPairSetIter *iter
,gboolean all
);
Creates an iterator over all the VisuPairLink of a set of
VisuPair. If all
is FALSE
, only visible VisuPairLink, see
visu_pair_link_setDrawn()
, are iterated on.
set |
a VisuPairSet object. |
|
iter |
a VisuPairSetIter location. |
[out caller-allocates] |
all |
a boolean. |
Since: 3.8
void
visu_pair_set_iter_next (VisuPairSetIter *iter
);
Iterates to the next VisuPairLink.
Since: 3.8
void (*VisuPairPoolForeachFunc) (VisuPair *pair
,gpointer user_data
);
Prototype of functions called with the foreach method apply to each pairs.
void visu_pair_pool_foreach (VisuPairPoolForeachFunc whatToDo
,gpointer user_data
);
The way VisuPair are stored in V_Sim is private and could changed between version. This method is used to apply some method each pairs.
void
visu_pair_pool_finalize ();
Free all associated memory.
[skip]
Since: 3.8
gboolean visu_pair_pool_readLinkFromLabel (const gchar *label
,VisuPairLink **data
,gchar **errorMessage
);
Reads label
and parses it to detect the definition of a
VisuPairLink. This pair link is added to the VisuPair from the pool.
label |
a string. |
|
data |
a VisuPairLink location. |
[out callee-allocates] |
errorMessage |
a string location. |
[out callee-allocates] |
Since: 3.8
struct VisuPairSetIter { VisuPairSet *set; VisuPair *pair; VisuPairLink *link; };
Iterator structure to run over all VisuPairLink of a given set of VisuPair.
VisuPairSet * |
the VisuPairSet this iterator is based on. |
|
VisuPair * |
the current VisuPair. |
|
VisuPairLink * |
the current VisuPairLink. |
“links-changed”
signalvoid user_function (VisuPairSet *set, VisuPair *pair, gpointer user_data)
Gets emitted when any of the VisuPair of set
has a change
(addition or removal) in its list of VisuPairLink.
set |
the object which emits the signal ; |
|
pair |
the VisuPair that has changing links. |
[type VisuPair] |
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8