Champlain.Layer

g Atk.ImplementorIface Atk.ImplementorIface Clutter.Actor Clutter.Actor Atk.ImplementorIface->Clutter.Actor Champlain.Layer Champlain.Layer Clutter.Actor->Champlain.Layer Clutter.Animatable Clutter.Animatable Clutter.Animatable->Clutter.Actor Clutter.Container Clutter.Container Clutter.Container->Clutter.Actor Clutter.Scriptable Clutter.Scriptable Clutter.Scriptable->Clutter.Actor GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface GObject.GInterface->Clutter.Animatable GObject.GInterface->Clutter.Container GObject.GInterface->Clutter.Scriptable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Clutter.Actor GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:Champlain.MarkerLayer, Champlain.PathLayer

Properties

Inherited:Clutter.Actor (82)

Fields

Inherited:Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name Type Access Description
parent Clutter.Actor r  

Class Details

class Champlain.Layer(**kwargs)
Bases:Clutter.Actor
Abstract:Yes
Structure:Champlain.LayerClass

The Champlain.Layer structure contains only private data and should be accessed using the provided API

New in version 0.10.

get_bounding_box()
Returns:The bounding box.
Return type:Champlain.BoundingBox

Gets the bounding box occupied by the elements inside the layer.

New in version 0.10.

set_view(view)
Parameters:view (Champlain.View) – a Champlain.View

Champlain.View 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 None to the layer. Custom layers can implement this method and perform the necessary initialization. This method should not be called by user code.

New in version 0.10.

do_get_bounding_box() virtual
Returns:The bounding box.
Return type:Champlain.BoundingBox

Gets the bounding box occupied by the elements inside the layer.

New in version 0.10.

do_set_view(view) virtual
Parameters:view (Champlain.View) – a Champlain.View

Champlain.View 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 None to the layer. Custom layers can implement this method and perform the necessary initialization. This method should not be called by user code.

New in version 0.10.