pub struct Builder { /* private fields */ }
Expand description
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.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn ex_style(&mut self, value: DWORD) -> &mut Builder
pub fn ex_style(&mut self, value: DWORD) -> &mut Builder
Sets extended style.
See possible values
Sourcepub fn class_name<T: AsRef<OsStr>>(&mut self, value: T) -> &mut Builder
pub fn class_name<T: AsRef<OsStr>>(&mut self, value: T) -> &mut Builder
Sets class name.
Sourcepub fn window_name<T: AsRef<OsStr>>(&mut self, value: T) -> &mut Builder
pub fn window_name<T: AsRef<OsStr>>(&mut self, value: T) -> &mut Builder
Sets class name.
Sourcepub fn position(&mut self, x: c_int, y: c_int) -> &mut Builder
pub fn position(&mut self, x: c_int, y: c_int) -> &mut Builder
Sets position. Default is (CW_USEDEFAULT, CW_USEDEFAULT
.
Sourcepub fn size(&mut self, width: c_int, height: c_int) -> &mut Builder
pub fn size(&mut self, width: c_int, height: c_int) -> &mut Builder
Sets size of window. Default is CW_USEDEFAULT
.
Sourcepub fn parent_message(&mut self) -> &mut Builder
pub fn parent_message(&mut self) -> &mut Builder
Sets parent window to message only HWND_MESSAGE
.
Sourcepub fn instance(&mut self, value: HINSTANCE) -> &mut Builder
pub fn instance(&mut self, value: HINSTANCE) -> &mut Builder
Seta module instance associated with window.
Sourcepub fn param(&mut self, value: &CREATESTRUCTW) -> &mut Builder
pub fn param(&mut self, value: &CREATESTRUCTW) -> &mut Builder
Sets param which will be sent in WM_CREATE
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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