Frontend adapter for hosting an external application window. More...
Public Member Functions | |
| int|None | window_id (self) |
| Return the currently embedded native window identifier. | |
| int | embed (self, int process_id, int host_window_id, int width, int height, *str|None window_name=None, str|None window_class=None, bool relax_size_hints=False) |
| Embed a matching application window into the supplied frontend host. | |
| int | hide (self, int process_id, *str|None window_name=None, str|None window_class=None) |
| Find and unmap a matching native application window. | |
| None | resize (self, int width, int height) |
| Resize the embedded window to match its host. | |
| None | clear (self) |
| Forget the currently embedded window. | |
Static Public Member Functions | |
| bool | supported () |
| Return whether this embedding backend is available. | |
Frontend adapter for hosting an external application window.
| int frontends.x11.window_embedder_if.WindowEmbedderIf.embed | ( | self, | |
| int | process_id, | ||
| int | host_window_id, | ||
| int | width, | ||
| int | height, | ||
| *str | None | window_name = None, |
||
| str | None | window_class = None, |
||
| bool | relax_size_hints = False |
||
| ) |
Embed a matching application window into the supplied frontend host.
| process_id | Process identifier of the application whose window should be embedded. |
| host_window_id | Native window identifier of the frontend host. |
| width | Initial embedded-window width in pixels. |
| height | Initial embedded-window height in pixels. |
| window_name | Optional native window-name match used during discovery. |
| window_class | Optional native window-class match used during discovery. |
| relax_size_hints | Whether the backend may remove restrictive X11 size hints. |
Reimplemented in frontends.x11.x11_window_embedder.X11WindowEmbedder.
| int frontends.x11.window_embedder_if.WindowEmbedderIf.hide | ( | self, | |
| int | process_id, | ||
| *str | None | window_name = None, |
||
| str | None | window_class = None |
||
| ) |
Find and unmap a matching native application window.
This is useful during managed startup when the external application must finish initializing before it is safe to embed, but its temporary standalone top-level window should not flash onscreen.
| process_id | Process identifier of the application whose window should be hidden. |
| window_name | Optional native window-name match used during discovery. |
| window_class | Optional native window-class match used during discovery. |
Reimplemented in frontends.x11.x11_window_embedder.X11WindowEmbedder.
| None frontends.x11.window_embedder_if.WindowEmbedderIf.resize | ( | self, | |
| int | width, | ||
| int | height | ||
| ) |
Resize the embedded window to match its host.
| width | New embedded-window width in pixels. |
| height | New embedded-window height in pixels. |
Reimplemented in frontends.x11.x11_window_embedder.X11WindowEmbedder.
|
static |
Return whether this embedding backend is available.
True when the required native embedding support is available. Reimplemented in frontends.x11.x11_window_embedder.X11WindowEmbedder.
| int | None frontends.x11.window_embedder_if.WindowEmbedderIf.window_id | ( | self | ) |
Return the currently embedded native window identifier.
None when no window is embedded. Reimplemented in frontends.x11.x11_window_embedder.X11WindowEmbedder.