Shumate.Compass¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The viewport |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Shumate.Compass(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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
orNone
) – aShumate.Viewport
- Returns:
a new
Shumate.Compass
.- Return type:
Creates an instance of
Shumate.Compass
.
- get_viewport()¶
- Returns:
The
Shumate.Viewport
used by the compass- Return type:
Gets the viewport used by the compass.
- set_viewport(viewport)¶
- Parameters:
viewport (
Shumate.Viewport
orNone
) – a [class`Viewport`]
Sets the compass viewport.
Property Details¶
- Shumate.Compass.props.viewport¶
- Name:
viewport
- Type:
- Default Value:
- Flags:
The viewport to use.