Struct native_windows_gui::ButtonBuilder
source · [−]pub struct ButtonBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ButtonBuilder<'a>
impl<'a> ButtonBuilder<'a>
pub fn flags(self, flags: ButtonFlags) -> ButtonBuilder<'a>
pub fn ex_flags(self, flags: u32) -> ButtonBuilder<'a>
pub fn text(self, text: &'a str) -> ButtonBuilder<'a>
pub fn size(self, size: (i32, i32)) -> ButtonBuilder<'a>
pub fn position(self, pos: (i32, i32)) -> ButtonBuilder<'a>
pub fn enabled(self, e: bool) -> ButtonBuilder<'a>
pub fn font(self, font: Option<&'a Font>) -> ButtonBuilder<'a>
pub fn bitmap(self, bit: Option<&'a Bitmap>) -> ButtonBuilder<'a>
pub fn icon(self, ico: Option<&'a Icon>) -> ButtonBuilder<'a>
pub fn focus(self, focus: bool) -> ButtonBuilder<'a>
pub fn parent<C: Into<ControlHandle>>(self, p: C) -> ButtonBuilder<'a>
pub fn build(self, out: &mut Button) -> Result<(), NwgError>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ButtonBuilder<'a>
impl<'a> !Send for ButtonBuilder<'a>
impl<'a> !Sync for ButtonBuilder<'a>
impl<'a> Unpin for ButtonBuilder<'a>
impl<'a> UnwindSafe for ButtonBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more