![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
ChamplainLayerChamplainLayer — A container for ChamplainMarker |
ChamplainLayer; ChamplainLayer * champlain_layer_new (void
); void champlain_layer_add_marker (ChamplainLayer *layer
,ChamplainBaseMarker *marker
); void champlain_layer_remove_marker (ChamplainLayer *layer
,ChamplainBaseMarker *marker
); void champlain_layer_animate_in_all_markers (ChamplainLayer *layer
); void champlain_layer_animate_out_all_markers (ChamplainLayer *layer
); void champlain_layer_show (ChamplainLayer *layer
); void champlain_layer_hide (ChamplainLayer *layer
); void champlain_layer_show_all_markers (ChamplainLayer *layer
); void champlain_layer_hide_all_markers (ChamplainLayer *layer
);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterGroup +----ChamplainLayer +----ChamplainSelectionLayer
ChamplainLayer implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and ClutterContainer.
A ChamplainLayer is little more than a ClutterContainer. It keeps the markers ordered so that they display correctly.
Use clutter_container_add to add markers to the layer and clutter_container_remove to remove them.
ChamplainLayer * champlain_layer_new (void
);
Creates a new instance of ChamplainLayer.
Returns : |
a new ChamplainLayer ready to be used as a ClutterContainer for the markers. |
Since 0.2.2
void champlain_layer_add_marker (ChamplainLayer *layer
,ChamplainBaseMarker *marker
);
Adds the marker to the layer.
|
a ChamplainLayer |
|
a ChamplainBaseMarker |
Since 0.4
void champlain_layer_remove_marker (ChamplainLayer *layer
,ChamplainBaseMarker *marker
);
Removes the marker from the layer.
|
a ChamplainLayer |
|
a ChamplainBaseMarker |
Since 0.4
void champlain_layer_animate_in_all_markers
(ChamplainLayer *layer
);
Fade in all markers with an animation
|
a ChamplainLayer |
Since 0.4
void champlain_layer_animate_out_all_markers
(ChamplainLayer *layer
);
Fade out all markers with an animation
|
a ChamplainLayer |
Since 0.4
void champlain_layer_show (ChamplainLayer *layer
);
Makes the layer and its markers visible.
|
a ChamplainLayer |
Since 0.4
void champlain_layer_hide (ChamplainLayer *layer
);
Makes the layer and its markers invisible.
|
a ChamplainLayer |
Since 0.4
void champlain_layer_show_all_markers (ChamplainLayer *layer
);
Calls clutter_actor_show on all markers
|
a ChamplainLayer |
Since 0.4
void champlain_layer_hide_all_markers (ChamplainLayer *layer
);
Calls clutter_actor_hide on all markers
|
a ChamplainLayer |
Since 0.4