Struct material_egui::widgets::button::Button
source · pub struct Button { /* private fields */ }
Implementations§
source§impl Button
impl Button
pub fn new(style: &MaterialColors) -> Self
pub fn elevated(&self, ui: &mut Ui, text: impl Into<String>) -> Response
pub fn filled(&self, ui: &mut Ui, text: impl Into<String>) -> Response
pub fn filled_tonal(&self, ui: &mut Ui, text: impl Into<String>) -> Response
pub fn outlined(&self, ui: &mut Ui, text: impl Into<String>) -> Response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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