pub struct WindowClass<'res, WML> { /* private fields */ }
Available on crate feature
ui
only.Expand description
Window class serving as a base for Window
.
Implementations§
Source§impl<'res, WML: WindowMessageListener> WindowClass<'res, WML>
impl<'res, WML: WindowMessageListener> WindowClass<'res, WML>
Sourcepub fn register_new<B, I, C>(
class_name_prefix: &str,
appearance: WindowClassAppearance<B, I, C>,
) -> Result<Self>
pub fn register_new<B, I, C>( class_name_prefix: &str, appearance: WindowClassAppearance<B, I, C>, ) -> Result<Self>
Registers a new class.
This class can then be used to create instances of Window
.
The class name will be generated from the given prefix by adding a random base64 encoded UUID to ensure uniqueness. This means that the maximum length of the class name prefix is a little less than the standard 256 characters for class names.
Trait Implementations§
Source§impl<'res, WML: Debug> Debug for WindowClass<'res, WML>
impl<'res, WML: Debug> Debug for WindowClass<'res, WML>
Auto Trait Implementations§
impl<'res, WML> Freeze for WindowClass<'res, WML>
impl<'res, WML> RefUnwindSafe for WindowClass<'res, WML>where
WML: RefUnwindSafe,
impl<'res, WML> !Send for WindowClass<'res, WML>
impl<'res, WML> !Sync for WindowClass<'res, WML>
impl<'res, WML> Unpin for WindowClass<'res, WML>where
WML: Unpin,
impl<'res, WML> UnwindSafe for WindowClass<'res, WML>where
WML: UnwindSafe,
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