Struct egui::style::Spacing [−][src]
Fields
item_spacing: Vec2
Horizontal and vertical spacing between widgets
window_padding: Vec2
Horizontal and vertical padding within a window frame.
Button size is text size plus this on each side
indent: f32
Indent collapsing regions etc by this much.
interact_size: Vec2
Minimum size of e.g. a button (including padding).
interact_size.y
is the default height of button, slider, etc.
Anything clickable should be (at least) this size.
slider_width: f32
Default width of a Slider
and ComboBox
.
text_edit_width: f32
Default width of a TextEdit
.
icon_width: f32
Checkboxes, radio button and collapsing headers have an icon at the start. This is the width/height of this icon.
icon_spacing: f32
Checkboxes, radio button and collapsing headers have an icon at the start. This is the spacing between the icon and the text
tooltip_width: f32
Width of a tooltip (on_hover_ui
, on_hover_text
etc).
Implementations
impl Spacing
[src]
pub fn icon_rectangles(&self, rect: Rect) -> (Rect, Rect)
[src]
Returns small icon rectangle and big icon rectangle
impl Spacing
[src]
Trait Implementations
impl Clone for Spacing
[src]
impl Debug for Spacing
[src]
impl Default for Spacing
[src]
impl PartialEq<Spacing> for Spacing
[src]
impl StructuralPartialEq for Spacing
[src]
Auto Trait Implementations
impl RefUnwindSafe for Spacing
impl Send for Spacing
impl Sync for Spacing
impl Unpin for Spacing
impl UnwindSafe for Spacing
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,