Struct ori_graphics::Quad
source · pub struct Quad {
pub rect: Rect,
pub background: Color,
pub border_radius: [f32; 4],
pub border_width: f32,
pub border_color: Color,
}
Fields§
§rect: Rect
§background: Color
§border_radius: [f32; 4]
§border_width: f32
§border_color: Color
Implementations§
Trait Implementations§
source§impl From<Quad> for PrimitiveKind
impl From<Quad> for PrimitiveKind
source§impl PartialEq<Quad> for Quad
impl PartialEq<Quad> for Quad
impl Copy for Quad
impl StructuralPartialEq for Quad
Auto Trait Implementations§
impl RefUnwindSafe for Quad
impl Send for Quad
impl Sync for Quad
impl Unpin for Quad
impl UnwindSafe for Quad
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.