Egui::Spacing
Inherits Reference < Object
Constructors
new
SourceInstance methods
button_padding
Padding setters clamp negatives to 0: this layout engine has no "padding pulls content outside the widget" notion, so a negative value only made text overflow its rect.
button_padding=(pad : Vec2) : Vec2
Sourceclone
Deep copy — every field is a value type (Vec2/Float64), so
field-by-field assignment is a full copy. Used by
WidgetStyle#merge_over so merged styles never alias the theme.
icon_spacing
Sourceicon_spacing=(icon_spacing : Float64)
Sourceicon_width_inner
Sourceicon_width_inner=(icon_width_inner : Float64)
Sourceindent
Sourceindent=(indent : Float64)
Sourceinteract_size=(interact_size : Vec2)
Minimum interactable widget size (upstream Spacing::interact_size).
item_spacing
Sourceitem_spacing=(item_spacing : Vec2)
Sourceslider_rail_width
Sourceslider_rail_width=(slider_rail_width : Float64)
Sourceslider_width=(slider_width : Float64)
Default slider track length (upstream Spacing::slider_width).
window_padding
Sourcewindow_padding=(pad : Vec2) : Vec2
Source