Gnm.ItemCursor

g GObject.Object GObject.Object GOffice.CanvasItem GOffice.CanvasItem GObject.Object->GOffice.CanvasItem Gnm.ItemCursor Gnm.ItemCursor GOffice.CanvasItem->Gnm.ItemCursor

Subclasses:

None

Methods

Inherited:

GOffice.CanvasItem (22), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

bound_set (bound)

reposition ()

set_visibility (visible)

Virtual Methods

Inherited:

GOffice.CanvasItem (17), GObject.Object (7)

Properties

Inherited:

GOffice.CanvasItem (2)

Name

Type

Flags

Short Description

SheetControlGUI

Gnm.SheetControlGUI

w

The sheet control gui controlling the item

button

int

w

What button initiated the Gnm.drag

color

int

w

Name of the Gnm.cursor's color

style

int

w

What type of Gnm.cursor

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gnm.ItemCursor(**kwargs)
Bases:

GOffice.CanvasItem

Abstract:

No

bound_set(bound)
Parameters:

bound (Gnm.Range) –

Return type:

bool

reposition()

Re-compute the pixel position of the Gnm.cursor.

When a sheet is zoomed. The pixel GOffice.coords shift slightly. The item Gnm.cursor must regenerate to stay in sync.

set_visibility(visible)
Parameters:

visible (bool) –

Property Details

Gnm.ItemCursor.props.SheetControlGUI
Name:

SheetControlGUI

Type:

Gnm.SheetControlGUI

Default Value:

None

Flags:

WRITABLE

The sheet control gui controlling the item

Gnm.ItemCursor.props.button
Name:

button

Type:

int

Default Value:

0

Flags:

WRITABLE

What button initiated the Gnm.drag

Gnm.ItemCursor.props.color
Name:

color

Type:

int

Default Value:

255

Flags:

WRITABLE

Name of the Gnm.cursor's color

Gnm.ItemCursor.props.style
Name:

style

Type:

int

Default Value:

0

Flags:

WRITABLE

What type of Gnm.cursor