Shumate.Compass

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Shumate.Compass Shumate.Compass Gtk.Widget->Shumate.Compass

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (viewport)

get_viewport ()

set_viewport (viewport)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

viewport

Shumate.Viewport

r/w

The viewport

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Shumate.Compass(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

Shumate.CompassClass

A widget displaying a compass.

CSS nodes

`` map-compass ├── revealer ├──── image ``

ShumateCompass uses a single CSS node with name map-compass. It also uses an image named “map-compass”.

classmethod new(viewport)
Parameters:

viewport (Shumate.Viewport or None) – a Shumate.Viewport

Returns:

a new Shumate.Compass.

Return type:

Shumate.Compass

Creates an instance of Shumate.Compass.

get_viewport()
Returns:

The Shumate.Viewport used by the compass

Return type:

Shumate.Viewport or None

Gets the viewport used by the compass.

set_viewport(viewport)
Parameters:

viewport (Shumate.Viewport or None) – a [class`Viewport`]

Sets the compass viewport.

Property Details

Shumate.Compass.props.viewport
Name:

viewport

Type:

Shumate.Viewport

Default Value:

None

Flags:

READABLE, WRITABLE

The viewport to use.