pub struct LinuxAppConfig { /* private fields */ }Expand description
Configuration for one standalone Linux window.
Implementations§
Source§impl LinuxAppConfig
impl LinuxAppConfig
Sourcepub fn with_background_rgb(self, red: u8, green: u8, blue: u8) -> Self
pub fn with_background_rgb(self, red: u8, green: u8, blue: u8) -> Self
Sets the window background shown behind Whisker content.
Sourcepub fn with_module(
self,
_elements: ElementModuleDefinition,
host: impl Into<LinuxModuleDefinition>,
) -> Self
pub fn with_module( self, _elements: ElementModuleDefinition, host: impl Into<LinuxModuleDefinition>, ) -> Self
Installs one module’s element schema and Host implementation.
Trait Implementations§
Source§impl Clone for LinuxAppConfig
impl Clone for LinuxAppConfig
Auto Trait Implementations§
impl !RefUnwindSafe for LinuxAppConfig
impl !Send for LinuxAppConfig
impl !Sync for LinuxAppConfig
impl !UnwindSafe for LinuxAppConfig
impl Forget for LinuxAppConfig
impl Freeze for LinuxAppConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<LinuxModuleDefinition>: Freeze,
impl Move for LinuxAppConfig
impl Unpin for LinuxAppConfigwhere
*const u8 is !null: Unpin,
Rc<dyn Fn(&[WhiskerValue], &ModuleEventEmitter) -> WhiskerValue>: Unpin,
Rc<dyn Fn(&[WhiskerValue], ModulePromise, &ModuleEventEmitter)>: Unpin,
Rc<dyn Fn(&ModuleEventEmitter)>: Unpin,
Rc<HashSet<String>>: Unpin,
Rc<dyn Fn(&ModuleMeasureRequest) -> Option<MeasuredSize>>: Unpin,
Rc<dyn Fn(LinuxEventEmitter) -> Box<dyn NativeView>>: Unpin,
impl UnsafeUnpin for LinuxAppConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LinuxModuleDefinition>: UnsafeUnpin,
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