Struct sdl2::messagebox::ButtonData
source · 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: MessageBoxButtonFlag
§text: &'a str
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ButtonData<'a>
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§
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