#[non_exhaustive]pub struct TabMetrics {
pub min_width: Option<f32>,
pub min_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
}Expand description
Tab bar metrics.
Defines minimum tab dimensions and padding for tabbed interfaces. All values are in logical pixels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_width: Option<f32>Minimum tab width in logical pixels.
min_height: Option<f32>Minimum tab height in logical pixels.
padding_horizontal: Option<f32>Horizontal padding inside the tab.
padding_vertical: Option<f32>Vertical padding inside the tab.
Implementations§
Source§impl TabMetrics
impl TabMetrics
Trait Implementations§
Source§impl Clone for TabMetrics
impl Clone for TabMetrics
Source§fn clone(&self) -> TabMetrics
fn clone(&self) -> TabMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TabMetrics
impl Debug for TabMetrics
Source§impl Default for TabMetrics
impl Default for TabMetrics
Source§fn default() -> TabMetrics
fn default() -> TabMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TabMetricswhere
TabMetrics: Default,
impl<'de> Deserialize<'de> for TabMetricswhere
TabMetrics: Default,
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 TabMetrics
impl PartialEq for TabMetrics
Source§impl Serialize for TabMetrics
impl Serialize for TabMetrics
impl StructuralPartialEq for TabMetrics
Auto Trait Implementations§
impl Freeze for TabMetrics
impl RefUnwindSafe for TabMetrics
impl Send for TabMetrics
impl Sync for TabMetrics
impl Unpin for TabMetrics
impl UnsafeUnpin for TabMetrics
impl UnwindSafe for TabMetrics
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