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

Methods

Inherited:

Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)

Structs:

GObject.ObjectClass (5)

get_bounding_box ()

set_view (view)

Virtual Methods

Inherited:

Clutter.Actor (35), GObject.Object (7), Clutter.Animatable (5), Clutter.Container (13), Clutter.Scriptable (4)

do_get_bounding_box ()

do_set_view (view)

Properties

Inherited:

Clutter.Actor (82)

Signals

Inherited:

Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)

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 or None) – 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 or None) – 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.