Champlain.Marker¶
- Subclasses:
Methods¶
- Inherited:
Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4), Champlain.Location (3)
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The draggable state of the marker |
||
r/w |
The draggable state of the marker |
||
r/w |
The sighlighted state of the marker |
Signals¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name |
Short Description |
---|---|
Emitted when button is pressed. |
|
Emitted when button is released. |
|
Emitted when marker dragging ends (i.e. |
|
Emmitted when the marker is dragged by mouse. |
Fields¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Champlain.Marker(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.Marker
structure contains only private data and should be accessed using the provided APINew in version 0.10.
- classmethod get_selection_color()¶
- Returns:
the selection color. Should not be freed.
- Return type:
Gets the selection color.
New in version 0.10.
- classmethod get_selection_text_color()¶
- Returns:
the selection text color. Should not be freed.
- Return type:
Gets the selection text color.
New in version 0.10.
- classmethod new()¶
- Returns:
a new
Champlain.Marker
.- Return type:
Creates an instance of
Champlain.Marker
.New in version 0.12.4.
- classmethod set_selection_color(color)¶
- Parameters:
color (
Clutter.Color
) – aClutter.Color
Changes the selection color, this is to ensure a better integration with the desktop, this is automatically done by GtkChamplainEmbed.
New in version 0.10.
- classmethod set_selection_text_color(color)¶
- Parameters:
color (
Clutter.Color
) – aClutter.Color
Changes the selection text color, this is to ensure a better integration with the desktop, this is automatically done by GtkChamplainEmbed.
New in version 0.10.
- animate_in()¶
Animates the marker as if it were falling from the sky onto the map.
New in version 0.10.
- animate_in_with_delay(delay)¶
- Parameters:
delay (
int
) – The delay in milliseconds
Animates the marker as if it were falling from the sky onto the map after delay.
New in version 0.10.
- animate_out()¶
Animates the marker as if it were drawn through the sky.
New in version 0.10.
- animate_out_with_delay(delay)¶
- Parameters:
delay (
int
) – The delay in milliseconds
Animates the marker as if it were drawn through the sky after delay.
New in version 0.10.
- get_draggable()¶
- Returns:
the draggable or not state of the marker.
- Return type:
Checks whether the marker is draggable.
New in version 0.10.
- get_selectable()¶
- Returns:
the selectable or not state of the marker.
- Return type:
Checks whether the marker is selectable.
New in version 0.10.
- get_selected()¶
- Returns:
the selected or not state of the marker.
- Return type:
Checks whether the marker is selected.
New in version 0.10.
- set_draggable(value)¶
- Parameters:
value (
bool
) – the draggable state
Sets the marker as draggable or not.
New in version 0.10.
Signal Details¶
- Champlain.Marker.signals.button_press(marker, event)¶
- Signal Name:
button-press
- Flags:
- Parameters:
marker (
Champlain.Marker
) – The object which received the signalevent (
Clutter.Event
) – the underlyingClutter.Event
Emitted when button is pressed.
New in version 0.10.
- Champlain.Marker.signals.button_release(marker, event)¶
- Signal Name:
button-release
- Flags:
- Parameters:
marker (
Champlain.Marker
) – The object which received the signalevent (
Clutter.Event
) – the underlyingClutter.Event
Emitted when button is released. This signal is not emmitted at the end of dragging.
New in version 0.10.
- Champlain.Marker.signals.drag_finish(marker, event)¶
- Signal Name:
drag-finish
- Flags:
- Parameters:
marker (
Champlain.Marker
) – The object which received the signalevent (
Clutter.Event
) – the underlyingClutter.Event
Emitted when marker dragging ends (i.e. the button is released at the end of dragging).
New in version 0.10.
- Champlain.Marker.signals.drag_motion(marker, dx, dy, event)¶
- Signal Name:
drag-motion
- Flags:
- Parameters:
marker (
Champlain.Marker
) – The object which received the signaldx (
float
) – by how much the marker has been moved in the x directiondy (
float
) – by how much the marker has been moved in the y directionevent (
Clutter.Event
) – the underlyingClutter.Event
Emmitted when the marker is dragged by mouse. dx and dy specify by how much the marker has been dragged since last time.
New in version 0.10.
Property Details¶
- Champlain.Marker.props.draggable¶
-
The draggable state of the marker
New in version 0.10.
- Champlain.Marker.props.selectable¶
-
The selectable state of the marker
New in version 0.10.