[go: up one dir, main page]

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

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

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.