#[repr(C)]pub struct RRectF {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub top_left_radius_x: f32,
pub top_left_radius_y: f32,
pub top_right_radius_x: f32,
pub top_right_radius_y: f32,
pub bottom_left_radius_x: f32,
pub bottom_left_radius_y: f32,
pub bottom_right_radius_x: f32,
pub bottom_right_radius_y: f32,
}Expand description
A floating point rounded rectangle with the custom radii for all four corners.
A region in a 2D cartesian space consisting of linear, axis-aligned sides with corners rounded into a quarter ellipse.
If the quarter ellipses in two corners would overlap, their radii are clamped such that the ellipses meet with an axis-aligned tangent.
This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.
Fields§
§x: f32§y: f32§width: f32§height: f32§top_left_radius_x: f32§top_left_radius_y: f32§top_right_radius_x: f32§top_right_radius_y: f32§bottom_left_radius_x: f32§bottom_left_radius_y: f32§bottom_right_radius_x: f32§bottom_right_radius_y: f32Trait Implementations§
Source§impl<'a, ___E> Encode<RRectF, ___E> for &'a RRectFwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<RRectF, ___E> for &'a RRectFwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<RRectF, ___E> for RRectFwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<RRectF, ___E> for RRectFwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, RRectF>
const COPY_OPTIMIZATION: CopyOptimization<Self, RRectF>
Source§impl<'a, ___E> EncodeOption<Box<'static, RRectF>, ___E> for &'a RRectF
impl<'a, ___E> EncodeOption<Box<'static, RRectF>, ___E> for &'a RRectF
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, RRectF>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, RRectF>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, RRectF>, ___E> for RRectF
impl<___E> EncodeOption<Box<'static, RRectF>, ___E> for RRectF
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, RRectF>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, RRectF>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireRef<RRectF> for RRectF
impl FromWireRef<RRectF> for RRectF
Source§fn from_wire_ref(wire: &RRectF) -> Self
fn from_wire_ref(wire: &RRectF) -> Self
Converts the given reference to this type.
Source§impl PartialOrd for RRectF
impl PartialOrd for RRectF
impl Copy for RRectF
impl StructuralPartialEq for RRectF
Auto Trait Implementations§
impl Freeze for RRectF
impl RefUnwindSafe for RRectF
impl Send for RRectF
impl Sync for RRectF
impl Unpin for RRectF
impl UnsafeUnpin for RRectF
impl UnwindSafe for RRectF
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]