![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct ChamplainLayer; void champlain_layer_set_view (ChamplainLayer *layer
,ChamplainView *view
); ChamplainBoundingBox * champlain_layer_get_bounding_box (ChamplainLayer *layer
);
GObject +----GInitiallyUnowned +----ClutterActor +----ChamplainLayer +----ChamplainMarkerLayer +----ChamplainPathLayer
ChamplainLayer implements ClutterScriptable, ClutterAnimatable and AtkImplementorIface.
Every layer (overlay that moves together with the map) has to inherit this class and implement its virtual methods.
struct ChamplainLayer;
The ChamplainLayer structure contains only private data and should be accessed using the provided API
Since 0.10
void champlain_layer_set_view (ChamplainLayer *layer
,ChamplainView *view
);
ChamplainView calls this method to pass a reference to itself to the layer when the layer is added to the view. When the layer is removed from the view, it passes NULL to the layer. Custom layers can implement this method and perform the necessary initialization. This method schould not be called by user code.
|
a ChamplainLayer |
|
a ChamplainView |
Since 0.10
ChamplainBoundingBox * champlain_layer_get_bounding_box (ChamplainLayer *layer
);
Gets the bounding box occupied by the elements inside the layer.
|
a ChamplainLayer |
Returns : |
The bounding box. |
Since 0.10