Struct nih_plug_egui::EguiState
source · pub struct EguiState { /* private fields */ }
Expand description
State for an nih_plug_egui
editor.
Implementations§
source§impl EguiState
impl EguiState
sourcepub fn from_size(width: u32, height: u32) -> Arc<EguiState>
pub fn from_size(width: u32, height: u32) -> Arc<EguiState>
Initialize the GUI’s state. This value can be passed to create_egui_editor()
. The window
size is in logical pixels, so before it is multiplied by the DPI scaling factor.
Trait Implementations§
source§impl<'de> Deserialize<'de> for EguiState
impl<'de> Deserialize<'de> for EguiState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EguiState
impl Send for EguiState
impl Sync for EguiState
impl Unpin for EguiState
impl UnwindSafe for EguiState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more