pub struct HwndBuilder { /* private fields */ }
Expand description
Low level HWND builder. Instanced by ControlBase::build_hwnd
.
Implementations§
Source§impl HwndBuilder
impl HwndBuilder
pub fn class_name<'a>(self, name: &'a str) -> HwndBuilder
pub fn text<'a>(self, text: &'a str) -> HwndBuilder
pub fn size(self, size: (i32, i32)) -> HwndBuilder
pub fn position(self, pos: (i32, i32)) -> HwndBuilder
pub fn flags(self, flags: u32) -> HwndBuilder
pub fn ex_flags(self, flags: u32) -> HwndBuilder
pub fn forced_flags(self, flags: u32) -> HwndBuilder
pub fn parent(self, parent: Option<ControlHandle>) -> HwndBuilder
pub fn build(self) -> Result<ControlHandle, NwgError>
Trait Implementations§
Source§impl Default for HwndBuilder
impl Default for HwndBuilder
Source§fn default() -> HwndBuilder
fn default() -> HwndBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HwndBuilder
impl RefUnwindSafe for HwndBuilder
impl !Send for HwndBuilder
impl !Sync for HwndBuilder
impl Unpin for HwndBuilder
impl UnwindSafe for HwndBuilder
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