Embed and resize one external process window; no toolkit dependencies.
More...
|
| bool | supported (self) |
| | Report platform embedding availability.
|
| 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 process window in the supplied native host.
|
| None | resize (self, int width, int height) |
| | Resize the embedded window.
|
|
None | clear (self) |
| | Forget native window ownership.
|
Embed and resize one external process window; no toolkit dependencies.
◆ embed()
| int ui.games.game_window_embedder_if.GameWindowEmbedderIf.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 process window in the supplied native host.
- Parameters
-
| process_id | Launched process identifier. |
| host_window_id | Native presentation host handle. |
| width | Host width in pixels. |
| height | Host height in pixels. |
| window_name | Optional window name selector. |
| window_class | Optional window class selector. |
| relax_size_hints | Whether restrictive size hints may be removed. |
- Returns
- Embedded window handle.
◆ resize()
| None ui.games.game_window_embedder_if.GameWindowEmbedderIf.resize |
( |
| self, |
|
|
int | width, |
|
|
int | height ) |
Resize the embedded window.
- Parameters
-
| width | Host width in pixels. |
| height | Host height in pixels. |
◆ supported()
| bool ui.games.game_window_embedder_if.GameWindowEmbedderIf.supported |
( |
| self | ) |
|
Report platform embedding availability.
- Returns
- Whether native embedding is supported.
The documentation for this class was generated from the following file:
- ui/games/game_window_embedder_if.py