OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.games.game_window_embedder_if.GameWindowEmbedderIf Class Reference

Embed and resize one external process window; no toolkit dependencies. More...

Public Member Functions

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.

Detailed Description

Embed and resize one external process window; no toolkit dependencies.

Member Function Documentation

◆ 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_idLaunched process identifier.
host_window_idNative presentation host handle.
widthHost width in pixels.
heightHost height in pixels.
window_nameOptional window name selector.
window_classOptional window class selector.
relax_size_hintsWhether 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
widthHost width in pixels.
heightHost 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