pub struct WidgetStyle {Show 51 fields
pub display: Display,
pub position_type: PositionType,
pub overflow: Overflow,
pub overflow_x: Overflow,
pub overflow_y: Overflow,
pub visibility: Visibility,
pub opacity: f32,
pub z_index: i32,
pub width: SizeValue,
pub height: SizeValue,
pub min_width: SizeValue,
pub max_width: SizeValue,
pub min_height: SizeValue,
pub max_height: SizeValue,
pub margin: Edges,
pub padding: Edges,
pub top: SizeValue,
pub right: SizeValue,
pub bottom: SizeValue,
pub left: SizeValue,
pub flex_direction: Axis,
pub flex_wrap: FlexWrap,
pub justify_content: FlexJustify,
pub align_items: FlexAlign,
pub align_content: FlexAlign,
pub flex_grow: f32,
pub flex_shrink: f32,
pub flex_basis: SizeValue,
pub gap: Vec2,
pub background: Background,
pub border: Border,
pub cursor: CursorStyle,
pub font_size: f32,
pub font_family: String,
pub font_weight: u16,
pub font_italic: bool,
pub color: Vec4,
pub text_align: TextAlignH,
pub line_height: f32,
pub letter_spacing: f32,
pub word_spacing: f32,
pub text_decoration: TextDeco,
pub pointer_events: bool,
pub user_select: bool,
pub filter_blur: f32,
pub filter_brightness: f32,
pub transform_translate: Vec2,
pub transform_rotate: f32,
pub transform_scale: Vec2,
pub transition_duration: f32,
pub transition_easing: String,
}Fields§
§display: Display§position_type: PositionType§overflow: Overflow§overflow_x: Overflow§overflow_y: Overflow§visibility: Visibility§opacity: f32§z_index: i32§width: SizeValue§height: SizeValue§min_width: SizeValue§max_width: SizeValue§min_height: SizeValue§max_height: SizeValue§margin: Edges§padding: Edges§top: SizeValue§right: SizeValue§bottom: SizeValue§left: SizeValue§flex_direction: Axis§flex_wrap: FlexWrap§justify_content: FlexJustify§align_items: FlexAlign§align_content: FlexAlign§flex_grow: f32§flex_shrink: f32§flex_basis: SizeValue§gap: Vec2§background: Background§border: Border§cursor: CursorStyle§font_size: f32§font_family: String§font_weight: u16§font_italic: bool§color: Vec4§text_align: TextAlignH§line_height: f32§letter_spacing: f32§word_spacing: f32§text_decoration: TextDeco§pointer_events: bool§user_select: bool§filter_blur: f32§filter_brightness: f32§transform_translate: Vec2§transform_rotate: f32§transform_scale: Vec2§transition_duration: f32§transition_easing: StringTrait Implementations§
Source§impl Clone for WidgetStyle
impl Clone for WidgetStyle
Source§impl Debug for WidgetStyle
impl Debug for WidgetStyle
Auto Trait Implementations§
impl Freeze for WidgetStyle
impl RefUnwindSafe for WidgetStyle
impl Send for WidgetStyle
impl Sync for WidgetStyle
impl Unpin for WidgetStyle
impl UnsafeUnpin for WidgetStyle
impl UnwindSafe for WidgetStyle
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.