GVnc.Cursor

g GObject.Object GObject.Object GVnc.Cursor GVnc.Cursor GObject.Object->GVnc.Cursor

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (data, hotx, hoty, width, height)

get_data ()

get_height ()

get_hotx ()

get_hoty ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

data

int

r/w/c

Cursor pixel data in RGBA24 format

height

int

r/w/c

Cursor pixel data height

hotx

int

r/w/c

Cursor x axis hotspot

hoty

int

r/w/c

Cursor y axis hotspot

width

int

r/w/c

Cursor pixel data width

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GVnc.Cursor(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GVnc.CursorClass

classmethod new(data, hotx, hoty, width, height)
Parameters:
  • data (bytes) – the bitmap data for the cursor

  • hotx (int) – the horizontal position of the hot point

  • hoty (int) – the vertical position of the hot point

  • width (int) – the width of the cursor

  • height (int) – the height of the cursor

Returns:

the new cursor

Return type:

GVnc.Cursor

Creates a new cursor using the bitmap data in data which should be width * height * 4 in size. The data parameter should be in the RGBA format, so each pixel is 32-bits in size.

get_data()
Returns:

the bitmap data

Return type:

bytes

Get the bitmap data representing the cursor

get_height()
Returns:

the height of the bitmap

Return type:

int

Get the height of the cursor bitmap

get_hotx()
Returns:

the horizontal position of the hot point

Return type:

int

Get the horizontal position of the cursor hot point

get_hoty()
Returns:

the vertical position of the hot point

Return type:

int

Get the vertical position of the cursor hot point

get_width()
Returns:

the width of the bitmap

Return type:

int

Get the width of the cursor bitmap

Property Details

GVnc.Cursor.props.data
Name:

data

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

Cursor pixel data in RGBA24 format

GVnc.Cursor.props.height
Name:

height

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

Cursor pixel data height

GVnc.Cursor.props.hotx
Name:

hotx

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

Cursor x axis hotspot

GVnc.Cursor.props.hoty
Name:

hoty

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

Cursor y axis hotspot

GVnc.Cursor.props.width
Name:

width

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

Cursor pixel data width