SpiceClientGtk.Display¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.EventBox (5), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Channel ID for this display |
||
r/w/c |
Whether inputs should be disabled |
||
r/w/c |
Whether we should grab the keyboard. |
||
r/w/c |
Whether we should grab the mouse. |
||
r/w/c |
Keypress delay |
||
r/w/c |
Select monitor ID |
||
r/w/c |
If scaling, only scale down, never up |
||
r |
Ready to display |
||
r/w/c |
Try to adapt guest display on window resize. Requires guest cooperation. |
||
r/w/c |
Whether we should use scaling |
||
r/w/co |
|||
r/w/c |
Zoom Level |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Notify when the grab keys have been pressed |
|
Notify when the keyboard grab is active or not. |
|
Notify when the mouse grab is active or not. |
Fields¶
- Inherited:
Class Details¶
- class SpiceClientGtk.Display(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
SpiceClientGtk.Display
struct is opaque and should not be accessed directly.- classmethod new(session, channel_id)¶
- Parameters:
session (
SpiceClientGLib.Session
) – aSpiceClientGLib.Session
channel_id (
int
) – the display channel ID to associate withSpiceClientGtk.Display
- Returns:
a new
SpiceClientGtk.Display
widget.- Return type:
Creates a new
SpiceClientGtk.Display
widget.
- classmethod new_with_monitor(session, channel_id, monitor_id)¶
- Parameters:
session (
SpiceClientGLib.Session
) – aSpiceClientGLib.Session
channel_id (
int
) – the display channel ID to associate withSpiceClientGtk.Display
monitor_id (
int
) – the monitor id within the display channel
- Returns:
a new
SpiceClientGtk.Display
widget.- Return type:
Creates a new
SpiceClientGtk.Display
widget associated with the monitor id.New in version 0.13.
- get_grab_keys()¶
- Returns:
the current grab key combination.
- Return type:
Finds the current grab key combination for the self.
- get_pixbuf()¶
- Returns:
a
GdkPixbuf.Pixbuf
with the screenshot image buffer- Return type:
Take a screenshot of the display.
- keyboard_ungrab()¶
Ungrab the keyboard.
New in version 0.40.
- mouse_ungrab()¶
Ungrab the mouse.
- send_keys(keyvals, kind)¶
- Parameters:
keyvals ([
int
]) – Keyval arraykind (
SpiceClientGtk.DisplayKeyEvent
) –SpiceClientGtk.DisplayKeyEvent
action
Send keyval press/release events to the display.
- set_grab_keys(seq)¶
- Parameters:
seq (
SpiceClientGtk.GrabSequence
) – key sequence
Set the key combination to grab/ungrab the keyboard. The default is “Control L + Alt L”.
Signal Details¶
- SpiceClientGtk.Display.signals.grab_keys_pressed(display)¶
- Signal Name:
grab-keys-pressed
- Flags:
- Parameters:
display (
SpiceClientGtk.Display
) – The object which received the signal
Notify when the grab keys have been pressed
- SpiceClientGtk.Display.signals.keyboard_grab(display, status)¶
- Signal Name:
keyboard-grab
- Flags:
- Parameters:
display (
SpiceClientGtk.Display
) – The object which received the signalstatus (
int
) – 1 if grabbed, 0 otherwise.
Notify when the keyboard grab is active or not.
- SpiceClientGtk.Display.signals.mouse_grab(display, status)¶
- Signal Name:
mouse-grab
- Flags:
- Parameters:
display (
SpiceClientGtk.Display
) – The object which received the signalstatus (
int
) – 1 if grabbed, 0 otherwise.
Notify when the mouse grab is active or not.
Property Details¶
- SpiceClientGtk.Display.props.channel_id¶
- Name:
channel-id
- Type:
- Default Value:
0
- Flags:
channel-id for this
SpiceClientGtk.Display
- SpiceClientGtk.Display.props.disable_inputs¶
-
Disable all keyboard & mouse inputs.
New in version 0.8.
- SpiceClientGtk.Display.props.grab_keyboard¶
-
Whether we should grab the keyboard.
- SpiceClientGtk.Display.props.grab_mouse¶
-
Whether we should grab the mouse.
- SpiceClientGtk.Display.props.keypress_delay¶
-
Delay in ms of non-modifiers key press events. If the key is released before this delay, a single press & release event is sent to the server. If the key is pressed longer than the keypress-delay, the server will receive the delayed press event, and a following release event when the key is released.
New in version 0.13.
- SpiceClientGtk.Display.props.monitor_id¶
-
Select monitor from
SpiceClientGtk.Display
to show. The value -1 means the whole display is shown. By default, the monitor 0 is selected.New in version 0.13.
- SpiceClientGtk.Display.props.only_downscale¶
-
If scaling, only scale down, never up.
New in version 0.14.
- SpiceClientGtk.Display.props.ready¶
-
Indicate whether the display is ready to be shown. It takes into account several conditions, such as the channel display “mark” state, whether the monitor area is visible..
New in version 0.13.
- SpiceClientGtk.Display.props.resize_guest¶
-
Try to adapt guest display on window resize. Requires guest cooperation.
- SpiceClientGtk.Display.props.scaling¶
-
Whether we should use scaling
- SpiceClientGtk.Display.props.session¶
- Name:
session
- Type:
- Default Value:
- Flags: