GeocodeGlib.BoundingBox

g GObject.Object GObject.Object GeocodeGlib.BoundingBox GeocodeGlib.BoundingBox GObject.Object->GeocodeGlib.BoundingBox

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (top, bottom, left, right)

equal (b)

get_bottom ()

get_left ()

get_right ()

get_top ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

bottom

float

r/w/co

Bottom coordinate

left

float

r/w/co

Left coordinate

right

float

r/w/co

Right coordinate

top

float

r/w/co

Top coordinate

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class GeocodeGlib.BoundingBox(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GeocodeGlib.BoundingBoxClass

All the fields in the GeocodeGlib.Location structure are private and should never be accessed directly.

classmethod new(top, bottom, left, right)
Parameters:
  • top (float) – The left coordinate

  • bottom (float) – The bottom coordinate

  • left (float) – The left coordinate

  • right (float) – The right coordinate

Returns:

a new GeocodeGlib.BoundingBox object. Use GObject.Object.unref() when done.

Return type:

GeocodeGlib.BoundingBox

Creates a new GeocodeGlib.BoundingBox object.

equal(b)
Parameters:

b (GeocodeGlib.BoundingBox) – another bounding box

Returns:

True if the instances are equal, False otherwise

Return type:

bool

Compare two GeocodeGlib.BoundingBox instances for equality. This compares all fields and only returns True if the instances are exactly equal.

Both instances must be non-None.

New in version 3.23.1.

get_bottom()
Returns:

the bottom coordinate of self.

Return type:

float

Gets the bottom coordinate of self.

get_left()
Returns:

the left coordinate of self.

Return type:

float

Gets the left coordinate of self.

get_right()
Returns:

the right coordinate of self.

Return type:

float

Gets the right coordinate of self.

get_top()
Returns:

the top coordinate of self.

Return type:

float

Gets the top coordinate of self.

Property Details

GeocodeGlib.BoundingBox.props.bottom
Name:

bottom

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Bottom coordinate.

GeocodeGlib.BoundingBox.props.left
Name:

left

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Left coordinate.

GeocodeGlib.BoundingBox.props.right
Name:

right

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Right coordinate.

GeocodeGlib.BoundingBox.props.top
Name:

top

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Top coordinate.