[][src]Struct native_windows_gui::ButtonBuilder

pub struct ButtonBuilder<'a> { /* fields omitted */ }

Implementations

impl<'a> ButtonBuilder<'a>[src]

pub fn flags(self, flags: ButtonFlags) -> ButtonBuilder<'a>[src]

pub fn ex_flags(self, flags: u32) -> ButtonBuilder<'a>[src]

pub fn text(self, text: &'a str) -> ButtonBuilder<'a>[src]

pub fn size(self, size: (i32, i32)) -> ButtonBuilder<'a>[src]

pub fn position(self, pos: (i32, i32)) -> ButtonBuilder<'a>[src]

pub fn enabled(self, e: bool) -> ButtonBuilder<'a>[src]

pub fn font(self, font: Option<&'a Font>) -> ButtonBuilder<'a>[src]

pub fn bitmap(self, bit: Option<&'a Bitmap>) -> ButtonBuilder<'a>[src]

pub fn icon(self, ico: Option<&'a Icon>) -> ButtonBuilder<'a>[src]

pub fn focus(self, focus: bool) -> ButtonBuilder<'a>[src]

pub fn parent<C: Into<ControlHandle>>(self, p: C) -> ButtonBuilder<'a>[src]

pub fn build(self, out: &mut Button) -> Result<(), NwgError>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ButtonBuilder<'a>[src]

impl<'a> !Send for ButtonBuilder<'a>[src]

impl<'a> !Sync for ButtonBuilder<'a>[src]

impl<'a> Unpin for ButtonBuilder<'a>[src]

impl<'a> UnwindSafe for ButtonBuilder<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.