pub struct BuiltinStyle<'a> { /* private fields */ }
Implementations§
Source§impl BuiltinStyle<'_>
impl BuiltinStyle<'_>
pub fn display(&self) -> Display
pub fn position(&self) -> Position
pub fn width(&self) -> PxPctAuto
pub fn height(&self) -> PxPctAuto
pub fn min_width(&self) -> PxPctAuto
pub fn min_height(&self) -> PxPctAuto
pub fn max_width(&self) -> PxPctAuto
pub fn max_height(&self) -> PxPctAuto
pub fn flex_direction(&self) -> FlexDirection
pub fn flex_wrap(&self) -> FlexWrap
pub fn flex_grow(&self) -> f32
pub fn flex_shrink(&self) -> f32
pub fn flex_basis(&self) -> PxPctAuto
pub fn justify_content(&self) -> Option<JustifyContent>
pub fn justify_self(&self) -> Option<AlignItems>
pub fn align_items(&self) -> Option<AlignItems>
pub fn align_content(&self) -> Option<AlignContent>
pub fn grid_template_rows(&self) -> Vec<TrackSizingFunction>
pub fn grid_template_columns(&self) -> Vec<TrackSizingFunction>
pub fn grid_auto_rows( &self, ) -> Vec<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>
pub fn grid_auto_columns( &self, ) -> Vec<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>
pub fn grid_row(&self) -> Line<GridPlacement>
pub fn grid_column(&self) -> Line<GridPlacement>
pub fn align_self(&self) -> Option<AlignItems>
pub fn border_left(&self) -> StrokeWrap
pub fn border_top(&self) -> StrokeWrap
pub fn border_right(&self) -> StrokeWrap
pub fn border_bottom(&self) -> StrokeWrap
pub fn border_radius(&self) -> PxPct
pub fn outline_color(&self) -> Brush
pub fn outline(&self) -> StrokeWrap
pub fn border_color(&self) -> Brush
pub fn padding_left(&self) -> PxPct
pub fn padding_top(&self) -> PxPct
pub fn padding_right(&self) -> PxPct
pub fn padding_bottom(&self) -> PxPct
pub fn margin_left(&self) -> PxPctAuto
pub fn margin_top(&self) -> PxPctAuto
pub fn margin_right(&self) -> PxPctAuto
pub fn margin_bottom(&self) -> PxPctAuto
pub fn inset_left(&self) -> PxPctAuto
pub fn inset_top(&self) -> PxPctAuto
pub fn inset_right(&self) -> PxPctAuto
pub fn inset_bottom(&self) -> PxPctAuto
pub fn pointer_events(&self) -> Option<PointerEvents>
pub fn z_index(&self) -> Option<i32>
pub fn cursor(&self) -> Option<CursorStyle>
pub fn color(&self) -> Option<Color>
pub fn background(&self) -> Option<Brush>
pub fn foreground(&self) -> Option<Brush>
pub fn box_shadow(&self) -> Option<BoxShadow>
pub fn font_size(&self) -> Option<f32>
pub fn font_family(&self) -> Option<String>
pub fn font_weight(&self) -> Option<Weight>
pub fn font_style(&self) -> Option<Style>
pub fn cursor_color(&self) -> Brush
pub fn selection_corer_radius(&self) -> f64
pub fn selectable(&self) -> bool
pub fn text_overflow(&self) -> TextOverflow
pub fn line_height(&self) -> Option<LineHeightValue>
pub fn aspect_ratio(&self) -> Option<f32>
pub fn col_gap(&self) -> PxPct
pub fn row_gap(&self) -> PxPct
pub fn scale_x(&self) -> Pct
pub fn scale_y(&self) -> Pct
pub fn translate_x(&self) -> PxPct
pub fn translate_y(&self) -> PxPct
pub fn rotate(&self) -> Px
Auto Trait Implementations§
impl<'a> Freeze for BuiltinStyle<'a>
impl<'a> !RefUnwindSafe for BuiltinStyle<'a>
impl<'a> !Send for BuiltinStyle<'a>
impl<'a> !Sync for BuiltinStyle<'a>
impl<'a> Unpin for BuiltinStyle<'a>
impl<'a> !UnwindSafe for BuiltinStyle<'a>
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more