pub struct WindowClass { /* private fields */ }Available on crate feature
ui only.Expand description
Window class serving as a base for Window.
Implementations§
Source§impl WindowClass
impl WindowClass
Sourcepub fn register_new(
class_name_prefix: &str,
appearance: WindowClassAppearance,
) -> Result<Self>
pub fn register_new( class_name_prefix: &str, appearance: WindowClassAppearance, ) -> 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 Debug for WindowClass
impl Debug for WindowClass
Auto Trait Implementations§
impl Freeze for WindowClass
impl RefUnwindSafe for WindowClass
impl !Send for WindowClass
impl !Sync for WindowClass
impl Unpin for WindowClass
impl UnwindSafe for WindowClass
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