pub enum Size {
XSmall,
Small,
Medium,
Large,
}Expand description
Component sizing vocabulary inspired by Tailwind/shadcn and gpui-component.
This is intentionally a component-ecosystem concept (not a fret-ui contract).
Variants§
Implementations§
Source§impl Size
impl Size
pub fn as_str(self) -> &'static str
pub fn control_text_px(self, theme: &Theme) -> Px
pub fn control_text_style(self, theme: &Theme) -> TextStyle
pub fn control_radius(self, theme: &Theme) -> Px
pub fn input_px(self, theme: &Theme) -> Px
pub fn input_py(self, theme: &Theme) -> Px
pub fn input_h(self, theme: &Theme) -> Px
pub fn list_px(self, theme: &Theme) -> Px
pub fn list_py(self, theme: &Theme) -> Px
pub fn list_row_h(self, theme: &Theme) -> Px
Trait Implementations§
impl Copy for Size
impl Eq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnsafeUnpin for Size
impl UnwindSafe for Size
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