Struct windows_win::raw::window::Builder
source · 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 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