[][src]Struct windows_win::raw::window::Builder

pub struct Builder { /* fields omitted */ }

A window builder.

To successfully create window at least class name should be specified. You can use pre-defined classes for simple message only window.

Methods

impl Builder[src]

pub fn new() -> Builder[src]

Initialize builder.

pub fn style(&mut self, value: DWORD) -> &mut Builder[src]

Sets style.

See possible values

pub fn ex_style(&mut self, value: DWORD) -> &mut Builder[src]

Sets extended style.

See possible values

pub fn class_name<T: AsRef<OsStr>>(&mut self, value: T) -> &mut Builder[src]

Sets class name.

pub fn window_name<T: AsRef<OsStr>>(&mut self, value: T) -> &mut Builder[src]

Sets class name.

pub fn position(&mut self, x: c_int, y: c_int) -> &mut Builder[src]

Sets position. Default is (CW_USEDEFAULT, CW_USEDEFAULT.

pub fn size(&mut self, width: c_int, height: c_int) -> &mut Builder[src]

Sets size of window. Default is CW_USEDEFAULT.

pub fn parent(&mut self, value: HWND) -> &mut Builder[src]

Sets parent window. Default is null

pub fn parent_message(&mut self) -> &mut Builder[src]

Sets parent window to message only HWND_MESSAGE.

pub fn instance(&mut self, value: HINSTANCE) -> &mut Builder[src]

Seta module instance associated with window.

pub fn param(&mut self, value: &CREATESTRUCTW) -> &mut Builder[src]

Sets param which will be sent in WM_CREATE

pub fn create(&mut self) -> Result<HWND>[src]

Creates window.

Auto Trait Implementations

impl !Send for Builder

impl !Sync for Builder

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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