[][src]Enum win_win::WindowClass

pub enum WindowClass {
    Atom(ATOM),
    Name(Vec<u16>),
}

A window class.

Variants

Atom(ATOM)
Name(Vec<u16>)

Methods

impl WindowClass[src]

pub fn builder(class_name: impl AsRef<OsStr>) -> WindowClassBuilder[src]

A builder for creating a new window class.

The class name should be unique, otherwise creation will fail.

pub fn from_name(class_name: impl AsRef<OsStr>) -> WindowClass[src]

Create a window class reference from a name.

This function is useful if the window class has already been registered, either through a successful builder or some other means.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.