Skip to main content

ButtonWidgetExt

Trait ButtonWidgetExt 

Source
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§

Source

fn fill_width(self) -> Self

Make the button fill the available width

Source

fn min_width(self, width: f32) -> Self

Set a minimum width for the button

Source

fn min_height(self, height: f32) -> Self

Set a minimum height for the button

Source

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".

Implementations on Foreign Types§

Source§

impl<'a> ButtonWidgetExt<'a> for Button<'a>

Source§

fn fill_width(self) -> Self

Source§

fn min_width(self, width: f32) -> Self

Source§

fn min_height(self, height: f32) -> Self

Source§

fn exact_size(self, size: Vec2) -> Self

Implementors§