pub trait ButtonWidgetExt<'a>: Sized {
// Required methods
fn fill_width(self) -> Self;
fn min_width(self, width: f32) -> Self;
fn min_height(self, height: f32) -> Self;
fn exact_size(self, size: Vec2) -> Self;
}Expand description
Extension trait for egui::Button
Required Methods§
Sourcefn fill_width(self) -> Self
fn fill_width(self) -> Self
Make the button fill the available width
Sourcefn min_height(self, height: f32) -> Self
fn min_height(self, height: f32) -> Self
Set a minimum height for the button
Sourcefn exact_size(self, size: Vec2) -> Self
fn exact_size(self, size: Vec2) -> Self
Set exact dimensions
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".