#[repr(C)]pub struct ShapeRecordBody {
pub rect: [f32; 4],
pub color: [f32; 4],
pub stroke_width: f32,
pub flags: u32,
pub brush: u32,
pub placement: u32,
pub arc_geometry: [f32; 4],
}Expand description
Shape properties independent of an arc’s angles, in instance-buffer layout.
Fields§
§rect: [f32; 4]The stored local rectangle.
color: [f32; 4]The solid colour or first gradient stop.
stroke_width: f32The stroke width.
flags: u32Packed shape, stroke, blend and arc facts from ShapeRecord::flags.
brush: u32Zero for a solid brush, otherwise one plus its table index.
placement: u32The placement index when a renderer combines recordings.
arc_geometry: [f32; 4]Arc centre x and y, followed by normalised inner and outer radii.
Trait Implementations§
Source§impl Clone for ShapeRecordBody
impl Clone for ShapeRecordBody
Source§fn clone(&self) -> ShapeRecordBody
fn clone(&self) -> ShapeRecordBody
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 moreimpl Copy for ShapeRecordBody
Source§impl Debug for ShapeRecordBody
impl Debug for ShapeRecordBody
Source§impl PartialEq for ShapeRecordBody
impl PartialEq for ShapeRecordBody
impl Pod for ShapeRecordBody
impl StructuralPartialEq for ShapeRecordBody
Auto Trait Implementations§
impl Freeze for ShapeRecordBody
impl RefUnwindSafe for ShapeRecordBody
impl Send for ShapeRecordBody
impl Sync for ShapeRecordBody
impl Unpin for ShapeRecordBody
impl UnsafeUnpin for ShapeRecordBody
impl UnwindSafe for ShapeRecordBody
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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.