Struct pix_engine::gui::theme::Spacing
source · pub struct Spacing {
pub frame_pad: Point<i32>,
pub item_pad: Point<i32>,
pub scroll_size: i32,
}
Expand description
A set of styles for sizing, padding, borders, etc for theming UI elements.
Fields§
§frame_pad: Point<i32>
Padding between the edge of frames/windows and UI widgets.
item_pad: Point<i32>
Padding between UI widgets.
scroll_size: i32
Scroll bar size in UI widgets.
Implementations§
source§impl Spacing
impl Spacing
sourcepub fn builder() -> SpacingBuilder
pub fn builder() -> SpacingBuilder
Constructs a default SpacingBuilder
which can build a Spacing
instance.
See SpacingBuilder
for examples.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Spacing
impl<'de> Deserialize<'de> for Spacing
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Spacing
impl PartialEq for Spacing
impl Copy for Spacing
impl Eq for Spacing
impl StructuralEq for Spacing
impl StructuralPartialEq for Spacing
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more