#[repr(C)]pub struct SolidQuadPrimitive {
pub color: PackedSrgb,
pub position: [f32; 2],
pub size: [f32; 2],
pub border_color: PackedSrgb,
pub border_radius: [f32; 4],
pub border_width: f32,
}
Expand description
A quad primitive with a solid background, packed into a format for use in rendering.
Fields§
§color: PackedSrgb
The background color data of the quad.
position: [f32; 2]
The position of the [Quad
] in logical points.
size: [f32; 2]
The size of the [Quad
] in logical points.
border_color: PackedSrgb
The border color of the [Quad
], in linear RGB.
border_radius: [f32; 4]
The border radii of the [Quad
] in logical points.
border_width: f32
The border width of the [Quad
] in logical points.
Implementations§
Trait Implementations§
Source§impl Clone for SolidQuadPrimitive
impl Clone for SolidQuadPrimitive
Source§fn clone(&self) -> SolidQuadPrimitive
fn clone(&self) -> SolidQuadPrimitive
Returns a duplicate of the value. Read more
1.0.0 · 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 SolidQuadPrimitive
impl Debug for SolidQuadPrimitive
Source§impl<'a> From<&'a SolidQuad> for SolidQuadPrimitive
impl<'a> From<&'a SolidQuad> for SolidQuadPrimitive
Source§fn from(q: &'a SolidQuad) -> SolidQuadPrimitive
fn from(q: &'a SolidQuad) -> SolidQuadPrimitive
Converts to this type from the input type.
Source§impl From<SolidQuad> for SolidQuadPrimitive
impl From<SolidQuad> for SolidQuadPrimitive
Source§fn from(q: SolidQuad) -> SolidQuadPrimitive
fn from(q: SolidQuad) -> SolidQuadPrimitive
Converts to this type from the input type.
Source§impl From<SolidQuadBuilder> for SolidQuadPrimitive
impl From<SolidQuadBuilder> for SolidQuadPrimitive
Source§fn from(q: SolidQuadBuilder) -> SolidQuadPrimitive
fn from(q: SolidQuadBuilder) -> SolidQuadPrimitive
Converts to this type from the input type.
Source§impl PartialEq for SolidQuadPrimitive
impl PartialEq for SolidQuadPrimitive
impl Copy for SolidQuadPrimitive
impl Pod for SolidQuadPrimitive
impl StructuralPartialEq for SolidQuadPrimitive
Auto Trait Implementations§
impl Freeze for SolidQuadPrimitive
impl RefUnwindSafe for SolidQuadPrimitive
impl Send for SolidQuadPrimitive
impl Sync for SolidQuadPrimitive
impl Unpin for SolidQuadPrimitive
impl UnwindSafe for SolidQuadPrimitive
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.