Expand description
Desktop pump-mode FFI for macOS bundle launchers and other GUI hosts.
A bundle UI can own its process/UI lifecycle and drive Siglus with
siglus_pump_step rather than entering winit’s blocking run_app.
Structs§
Functions§
- run_
game - Runs a game in its own window until it ends. With
physical_pixels, the window is sized in physical pixels and input is mapped without the display’s HiDPI scale (what the launcher app uses for every engine). - siglus_
pump_ ⚠create - Create a host to drive with
siglus_pump_step, or return null on failure. - siglus_
pump_ ⚠destroy - Destroy a pump host. A null pointer is ignored.
- siglus_
pump_ ⚠ime_ preedit - Update IME composition, or disable IME if the text pointer is null.
- siglus_
pump_ ⚠key_ down - Send a key press to the host.
- siglus_
pump_ ⚠key_ up - Send a key release to the host.
- siglus_
pump_ ⚠set_ native_ messagebox_ callback - Set the callback used to display native message boxes.
- siglus_
pump_ ⚠step - Pump pending events and return the host status.
- siglus_
pump_ ⚠submit_ messagebox_ result - Submit the result of a native message box.
- siglus_
pump_ ⚠text_ input - Send committed text to the host.
- siglus_
run_ ⚠entry - Run the host event loop until exit.