OsmGpsMap.MapImage

g GObject.Object GObject.Object OsmGpsMap.MapImage OsmGpsMap.MapImage GObject.Object->OsmGpsMap.MapImage

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

draw (cr, rect)

get_point ()

get_rotation ()

get_zorder ()

set_rotation (rot)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

pixbuf

GdkPixbuf.Pixbuf

r/w/c

the pixbuf for this image

point

OsmGpsMap.MapPoint

r/w/c

location point

rotation

float

r/w/c

image rotation

x-align

float

r/w/c

image x-alignment

y-align

float

r/w/c

image y-alignment

z-order

int

r/w/c

image z-order

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class OsmGpsMap.MapImage(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

OsmGpsMap.MapImageClass

classmethod new()
Returns:

New image

Return type:

OsmGpsMap.MapImage

Create new image

New in version 0.7.0.

draw(cr, rect)
Parameters:
Returns:

bounding rectangle

Return type:

rect: Gdk.Rectangle

Draw image to given cairo context

New in version 0.7.0.

get_point()
Returns:

location point

Return type:

OsmGpsMap.MapPoint

Get image location point

New in version 0.7.0.

get_rotation()
Returns:

rotation

Return type:

float

Get image rotation

New in version 1.1.0.

get_zorder()
Returns:

z-order

Return type:

int

Get image z-order

New in version 1.0.0.

set_rotation(rot)
Parameters:

rot (float) – image rotation in degrees

Set image rotation

New in version 1.1.0.

Property Details

OsmGpsMap.MapImage.props.pixbuf
Name:

pixbuf

Type:

GdkPixbuf.Pixbuf

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

the pixbuf for this image

OsmGpsMap.MapImage.props.point
Name:

point

Type:

OsmGpsMap.MapPoint

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

location point

OsmGpsMap.MapImage.props.rotation
Name:

rotation

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT

image rotation

OsmGpsMap.MapImage.props.x_align
Name:

x-align

Type:

float

Default Value:

0.5

Flags:

READABLE, WRITABLE, CONSTRUCT

image x-alignment

OsmGpsMap.MapImage.props.y_align
Name:

y-align

Type:

float

Default Value:

0.5

Flags:

READABLE, WRITABLE, CONSTRUCT

image y-alignment

OsmGpsMap.MapImage.props.z_order
Name:

z-order

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

image z-order