impl_Update!() { /* proc-macro */ }
Expand description

Params:

type: the name of the struct to implement the trait Update on

function call: the function call of the Dear ImGui library

Example: impl_Update!(SliderInt, ImGui_SliderInt(self.label.blocking_write().as_ptr(), &self.value.blocking_write(), *self.min.blocking_read(), *self.max.blocking_read()));