GVnc.Cursor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Cursor pixel data in RGBA24 format |
||
r/w/c |
Cursor pixel data height |
||
r/w/c |
Cursor x axis hotspot |
||
r/w/c |
Cursor y axis hotspot |
||
r/w/c |
Cursor pixel data width |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GVnc.Cursor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(data, hotx, hoty, width, height)¶
- Parameters:
- Returns:
the new cursor
- Return type:
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_height()¶
- Returns:
the height of the bitmap
- Return type:
Get the height of the cursor bitmap
- get_hotx()¶
- Returns:
the horizontal position of the hot point
- Return type:
Get the horizontal position of the cursor hot point
- get_hoty()¶
- Returns:
the vertical position of the hot point
- Return type:
Get the vertical position of the cursor hot point
Property Details¶
- GVnc.Cursor.props.data¶
-
Cursor pixel data in RGBA24 format
- GVnc.Cursor.props.height¶
-
Cursor pixel data height
- GVnc.Cursor.props.hotx¶
-
Cursor x axis hotspot
- GVnc.Cursor.props.hoty¶
-
Cursor y axis hotspot