[−][src]Struct egui::Style
Fields
window_padding: Vec2
Horizontal and vertical padding within a window frame.
Button size is text size plus this on each side
item_spacing: Vec2
Horizontal and vertical spacing between widgets
indent: f32
Indent collapsing regions etc by this much.
clickable_diameter: f32
Anything clickable is (at least) this wide.
start_icon_width: f32
Checkboxes, radio button and collapsing headers have an icon at the start. The text starts after this many pixels.
resize_interact_radius_side: f32
Mouse must be the close to the side of a window to resize
resize_interact_radius_corner: f32
Mouse must be the close to the corner of a window to resize
interact: Interact
text_color: Color
line_width: f32
For stuff like check marks in check boxes.
thin_outline: LineStyle
background_fill: Color
e.g. the background of windows
dark_bg_color: Color
e.g. the background of the slider or text edit
cursor_blink_hz: f32
text_cursor_width: f32
animation_time: f32
How many seconds a typical animation should last
window: Window
clip_rect_margin: f32
Allow child widgets to be just on the border and still have an outline with some thickness
debug_widget_rects: bool
debug_resize: bool
Implementations
impl Style
[src]
pub fn interact(&self, interact: &InteractInfo) -> &WidgetStyle
[src]
Use this style for interactive things
pub fn icon_rectangles(&self, rect: Rect) -> (Rect, Rect)
[src]
Returns small icon rectangle and big icon rectangle
impl Style
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,