[−][src]Struct windows_win::raw::window::Builder
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,