Struct pixels_graphics_lib::ui::alert::Alert
source · pub struct Alert { /* private fields */ }
Implementations§
source§impl Alert
impl Alert
pub fn new_question( message: &[&str], negative_text: &str, positive_text: &str, width: usize, height: usize, style: &AlertStyle ) -> Self
pub fn new_warning( message: &[&str], width: usize, height: usize, style: &AlertStyle ) -> Self
source§impl Alert
impl Alert
pub fn change_text(&mut self, text: &[&str])
pub fn on_mouse_click(&mut self, mouse_xy: Coord) -> Option<AlertResult>
pub fn render(&self, graphics: &mut Graphics<'_>, mouse_xy: Coord)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
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