[][src]Struct sdl2::messagebox::ButtonData

pub struct ButtonData<'a> {
    pub flags: MessageBoxButtonFlag,
    pub button_id: i32,
    pub text: &'a str,
}

button_id is the integer that will be returned by show_message_box. It is not sed by SDL2, and should only be used to know which button has been triggered

Fields

flags: MessageBoxButtonFlagbutton_id: i32text: &'a str

Trait Implementations

impl<'a> Debug for ButtonData<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ButtonData<'a>

impl<'a> Send for ButtonData<'a>

impl<'a> Sync for ButtonData<'a>

impl<'a> Unpin for ButtonData<'a>

impl<'a> UnwindSafe for ButtonData<'a>

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.