pub enum AnimObjKind {
Rectangle {
size: Vec2,
corner_radius: f32,
color: Color,
},
Circle {
radius: f32,
color: Color,
},
Polygon {
radius: f32,
sides: u32,
color: Color,
},
Text {
value: String,
font_family: String,
alignment: TextAlign,
color: Color,
font_size: f32,
},
Code {
source_code: String,
font_family: String,
font_size: f32,
syntax: Syntax,
theme: Option<Theme>,
padding: f32,
show_line_numbers: bool,
line_number_color: Color,
},
Image {
path: String,
size: Vec2,
color: Color,
stretch: StretchMode,
},
Svg {
path: String,
size: Vec2,
tint: Color,
fill: Option<Color>,
stroke: Option<Color>,
stroke_width: Option<f32>,
stretch: StretchMode,
},
CodeWindow {Show 20 fields
source_code: String,
font_family: String,
font_size: f32,
syntax: Syntax,
theme: Option<Theme>,
title: String,
title_font_size: f32,
width: f32,
height: f32,
background_color: Color,
code_id: Uuid,
close_btn_id: Uuid,
minimize_btn_id: Uuid,
maximize_btn_id: Uuid,
title_id: Uuid,
bg_id: Uuid,
container_id: Uuid,
title_bar_bg_id: Uuid,
show_line_numbers: bool,
line_number_color: Color,
},
Group {
children: Vec<AnimObj>,
},
}Variants§
Rectangle
Circle
Polygon
Text
Code
Fields
Image
Svg
Fields
§
stretch: StretchModeCodeWindow
Fields
Group
Trait Implementations§
Source§impl Clone for AnimObjKind
impl Clone for AnimObjKind
Source§fn clone(&self) -> AnimObjKind
fn clone(&self) -> AnimObjKind
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 AnimObjKind
impl Debug for AnimObjKind
Source§impl<'de> Deserialize<'de> for AnimObjKind
impl<'de> Deserialize<'de> for AnimObjKind
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
Auto Trait Implementations§
impl Freeze for AnimObjKind
impl RefUnwindSafe for AnimObjKind
impl Send for AnimObjKind
impl Sync for AnimObjKind
impl Unpin for AnimObjKind
impl UnsafeUnpin for AnimObjKind
impl UnwindSafe for AnimObjKind
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