GstVulkan.VulkanWindow¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Associated Vulkan Display |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Will be emitted when a key event is received by the |
|
Will be emitted when a mouse event is received by the |
|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
display |
r |
||
parent |
r |
Class Details¶
- class GstVulkan.VulkanWindow(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
GstVulkan.VulkanWindow
is an opaque struct and should only be accessed through the provided api.New in version 1.18.
- classmethod new(display)¶
- Parameters:
display (
GstVulkan.VulkanDisplay
) – aGstVulkan.VulkanDisplay
- Returns:
a new
GstVulkan.VulkanWindow
using display's connection- Return type:
New in version 1.18.
- close()¶
Attempt to close the window.
New in version 1.18.
- get_display()¶
- Returns:
the
GstVulkan.VulkanDisplay
for self- Return type:
New in version 1.18.
- get_presentation_support(device, queue_family_idx)¶
- Parameters:
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
queue_family_idx (
int
) – the queue family
- Returns:
whether the given combination of self, device and queue_family_idx supports presentation
- Return type:
New in version 1.18.
- get_surface_dimensions()¶
- Returns:
- width:
Current width of self
- height:
Current height of self
- Return type:
New in version 1.18.
- handle_events(handle_events)¶
-
Tell a self that it should handle events from the window system. These events are forwarded upstream as navigation events. In some window systems events are not propagated in the window hierarchy if a client is listening for them. This method allows you to disable events handling completely from the self.
New in version 1.18.
- open()¶
- Raises:
- Returns:
whether self could be successfully opened
- Return type:
New in version 1.18.
- redraw()¶
Ask the self to redraw its contents
New in version 1.18.
- resize(width, height)¶
-
Resize the output surface.
Currently intended for subclasses to update internal state.
New in version 1.18.
- send_mouse_event(event_type, button, posx, posy)¶
- do_close() virtual¶
Attempt to close the window.
New in version 1.18.
- do_get_presentation_support(device, queue_family_idx) virtual¶
- Parameters:
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
queue_family_idx (
int
) – the queue family
- Returns:
whether the given combination of window, device and queue_family_idx supports presentation
- Return type:
retrieve whether this window supports presentation
New in version 1.18.
- do_get_surface_dimensions() virtual¶
- Returns:
- width:
Current width of window
- height:
Current height of window
- Return type:
retrieve the current size of the window
New in version 1.18.
- do_handle_events(handle_events) virtual¶
-
Tell a window that it should handle events from the window system. These events are forwarded upstream as navigation events. In some window systems events are not propagated in the window hierarchy if a client is listening for them. This method allows you to disable events handling completely from the window.
New in version 1.18.
- do_open() virtual¶
- Returns:
whether window could be successfully opened
- Return type:
open the connection to the display
New in version 1.18.
Signal Details¶
- GstVulkan.VulkanWindow.signals.close(vulkan_window)¶
- Signal Name:
close
- Flags:
- Parameters:
vulkan_window (
GstVulkan.VulkanWindow
) – The object which received the signal- Return type:
- GstVulkan.VulkanWindow.signals.draw(vulkan_window)¶
- Signal Name:
draw
- Flags:
- Parameters:
vulkan_window (
GstVulkan.VulkanWindow
) – The object which received the signal
- GstVulkan.VulkanWindow.signals.key_event(vulkan_window, id, key)¶
- Signal Name:
key-event
- Flags:
- Parameters:
vulkan_window (
GstVulkan.VulkanWindow
) – The object which received the signalid (
str
) – the name of the eventkey (
str
) – the id of the key pressed
Will be emitted when a key event is received by the
GstVulkan.VulkanWindow
.New in version 1.18.
- GstVulkan.VulkanWindow.signals.mouse_event(vulkan_window, id, button, x, y)¶
- Signal Name:
mouse-event
- Flags:
- Parameters:
vulkan_window (
GstVulkan.VulkanWindow
) – The object which received the signalid (
str
) – the name of the eventbutton (
int
) – the id of the buttonx (
float
) – the x coordinate of the mouse eventy (
float
) – the y coordinate of the mouse event
Will be emitted when a mouse event is received by the
GstVulkan.VulkanWindow
.New in version 1.18.
- GstVulkan.VulkanWindow.signals.resize(vulkan_window, object, p0)¶
- Signal Name:
resize
- Flags:
- Parameters:
vulkan_window (
GstVulkan.VulkanWindow
) – The object which received the signalobject (
int
) –p0 (
int
) –
Property Details¶
- GstVulkan.VulkanWindow.props.display¶
- Name:
display
- Type:
- Default Value:
- Flags:
Associated Vulkan Display