Skip to main content

Module host

Module host 

Source

Functions§

miracle_container_get_child_at
Retrieve a child container from a parent container by index.
miracle_container_get_window
Retrieve the window info from a window container.
miracle_get_active_workspace
Retrieve the currently active workspace on the focused output.
miracle_get_managed_window_at
Retrieve a managed window by index. Returns 0 on success, non-zero on failure.
miracle_get_output_at
Retrieve an output by index.
miracle_get_plugin_userdata
Retrieve the JSON-encoded userdata configured for this plugin.
miracle_num_managed_windows
Retrieve the number of windows managed by the given plugin handle.
miracle_num_outputs
Retrieve the number of outputs.
miracle_output_get_workspace
Retrieve the workspace on the output by index.
miracle_queue_custom_animation
Queue a custom per-frame animation.
miracle_request_workspace
Request a workspace by optional number and/or name.
miracle_window_info_get_application
Retrieve the application info for a given window. Returns the internal ID on success, or -1 if the buffer is too small.
miracle_window_info_get_workspace
Retrieve the workspace that a window is on.
miracle_window_request_focus
Request keyboard focus on a managed window. Returns 0 on success, -1 on error.
miracle_window_set_alpha
Set the alpha (opacity) of a managed window. alpha_ptr is a WASM linear memory offset pointing to a single f32 value. Returns 0 on success, -1 on error.
miracle_window_set_rectangle
Set the position and size of a managed window. Returns 0 on success, -1 on error.
miracle_window_set_state
Set the state of a managed window. Returns 0 on success, -1 on error.
miracle_window_set_transform
Set the 4x4 column-major transform matrix of a managed window. transform_ptr is a WASM linear memory offset pointing to 16 contiguous f32 values. Returns 0 on success, -1 on error.
miracle_window_set_workspace
Move a managed window to a different workspace. Returns 0 on success, -1 on error.
miracle_workspace_get_output
Retrieve the output that a workspace is on.
miracle_workspace_get_tree
Retrieve a tree from a workspace by index.