pub struct VItem {
pub origin: Vec3,
pub basis: Basis2d,
pub points: Vec<Vec4>,
pub fill_rgbas: Vec<Rgba>,
pub stroke_rgbas: Vec<Rgba>,
pub stroke_widths: Vec<Width>,
}Expand description
A primitive for rendering a vitem.
Fields§
§origin: Vec3The base point of the item, a.k.a. the origin of the item’s local coordinate system.
basis: Basis2dThe basis vectors of the item’s local coordinate system. Normalized.
points: Vec<Vec4>The points of the item in the item’s local coordinate system. (x, y, z, is_closed)
fill_rgbas: Vec<Rgba>Fill rgbas, see Rgba.
stroke_rgbas: Vec<Rgba>Stroke rgbs, see Rgba.
stroke_widths: Vec<Width>Stroke widths, see Width.
Trait Implementations§
Source§impl FillColor for VItem
impl FillColor for VItem
Source§fn fill_color(&self) -> AlphaColor<Srgb>
fn fill_color(&self) -> AlphaColor<Srgb>
Getting fill color of an item
Source§fn set_fill_color(&mut self, color: AlphaColor<Srgb>) -> &mut Self
fn set_fill_color(&mut self, color: AlphaColor<Srgb>) -> &mut Self
Setting fill color(rgba) of an item
Source§fn set_fill_opacity(&mut self, opacity: f32) -> &mut Self
fn set_fill_opacity(&mut self, opacity: f32) -> &mut Self
Setting fill opacity of an item
impl StructuralPartialEq for VItem
Auto Trait Implementations§
impl Freeze for VItem
impl RefUnwindSafe for VItem
impl Send for VItem
impl Sync for VItem
impl Unpin for VItem
impl UnwindSafe for VItem
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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 moreSource§impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
Source§fn show(&self) -> AnimationCell<T>
fn show(&self) -> AnimationCell<T>
Show the item
Source§fn hide(&self) -> AnimationCell<T>
fn hide(&self) -> AnimationCell<T>
Hide the item