pub struct StylePatch {Show 34 fields
pub display: Option<Option<Display>>,
pub width: Option<SizeDimension>,
pub height: Option<SizeDimension>,
pub min_width: Option<Option<f32>>,
pub max_width: Option<Option<f32>>,
pub min_height: Option<Option<f32>>,
pub max_height: Option<Option<f32>>,
pub margin: Option<EdgeInsets>,
pub padding: Option<EdgeInsets>,
pub box_sizing: Option<BoxSizing>,
pub flex_direction: Option<FlexDirection>,
pub justify_content: Option<JustifyContent>,
pub align_items: Option<AlignItems>,
pub flex_wrap: Option<FlexWrap>,
pub row_gap: Option<f32>,
pub column_gap: Option<f32>,
pub flex_grow: Option<f32>,
pub flex_shrink: Option<f32>,
pub flex_basis: Option<SizeDimension>,
pub position: Option<Position>,
pub top: Option<Option<SizeDimension>>,
pub right: Option<Option<SizeDimension>>,
pub bottom: Option<Option<SizeDimension>>,
pub left: Option<Option<SizeDimension>>,
pub line_height: Option<f32>,
pub font_size: Option<SizeDimension>,
pub vertical_align: Option<VerticalAlign>,
pub overflow: Option<Overflow>,
pub z_index: Option<Option<i32>>,
pub background_color: Option<Option<[f32; 4]>>,
pub background_z: Option<Option<f32>>,
pub color: Option<Option<[f32; 4]>>,
pub word_wrap: Option<Option<WordWrapMode>>,
pub word_wrap_tokens: Option<Option<Vec<String>>>,
}Expand description
A partial CSS style update — None fields are left unchanged.
Used with IntentValue::UpdateStyle to patch individual fields on an existing
StyleComponent without replacing the whole struct.
Fields§
§display: Option<Option<Display>>§width: Option<SizeDimension>§height: Option<SizeDimension>§min_width: Option<Option<f32>>§max_width: Option<Option<f32>>§min_height: Option<Option<f32>>§max_height: Option<Option<f32>>§margin: Option<EdgeInsets>§padding: Option<EdgeInsets>§box_sizing: Option<BoxSizing>§flex_direction: Option<FlexDirection>§justify_content: Option<JustifyContent>§align_items: Option<AlignItems>§flex_wrap: Option<FlexWrap>§row_gap: Option<f32>§column_gap: Option<f32>§flex_grow: Option<f32>§flex_shrink: Option<f32>§flex_basis: Option<SizeDimension>§position: Option<Position>§top: Option<Option<SizeDimension>>§right: Option<Option<SizeDimension>>§bottom: Option<Option<SizeDimension>>§left: Option<Option<SizeDimension>>§line_height: Option<f32>§font_size: Option<SizeDimension>§vertical_align: Option<VerticalAlign>§overflow: Option<Overflow>§z_index: Option<Option<i32>>§background_color: Option<Option<[f32; 4]>>§background_z: Option<Option<f32>>§color: Option<Option<[f32; 4]>>§word_wrap: Option<Option<WordWrapMode>>§word_wrap_tokens: Option<Option<Vec<String>>>Trait Implementations§
Source§impl Clone for StylePatch
impl Clone for StylePatch
Source§fn clone(&self) -> StylePatch
fn clone(&self) -> StylePatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StylePatch
impl Debug for StylePatch
Source§impl Default for StylePatch
impl Default for StylePatch
Source§fn default() -> StylePatch
fn default() -> StylePatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StylePatch
impl RefUnwindSafe for StylePatch
impl Send for StylePatch
impl Sync for StylePatch
impl Unpin for StylePatch
impl UnsafeUnpin for StylePatch
impl UnwindSafe for StylePatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.