Struct livemod::LiveModHandle [−][src]
pub struct LiveModHandle { /* fields omitted */ }
Expand description
A handle to an external livemod viewer.
This handle is used to create ModVar
s and track StaticModVar
s. It must be kept alive
for the user interface to continue running.
Implementations
Initialise livemod with the external livemod-gui
user interface
Initialise livemod with an external user interface, for which the specified command will be run.
Track an existing StaticModVar
Create a variable and send it to the external viewer to be tracked.
The variable will be removed from the external viewer when it is dropped.
pub unsafe fn create_variable_unchecked<'a, T: LiveMod + 'a>(
&self,
name: &str,
var: T
) -> ModVar<T>
pub unsafe fn create_variable_unchecked<'a, T: LiveMod + 'a>(
&self,
name: &str,
var: T
) -> ModVar<T>
Create a variable and send it to the external viewer to be tracked.
The variable will be removed from the external viewer when it is dropped.
Safety
You must ensure the returned variable is dropped before any of the variables it references.