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
The location of the origin of the region in the x-axis.
y: f32
The location of the origin of the region in the y-axis.
width: f32
The distance along the x-axis.
If width
is positive, the region includes x values starting at x
and
increasing along the x-axis. If width
is negative, the region includes
x values starting at x
and decreasing along the x-axis.
height: f32
The distance along the y-axis.
If height
is positive, the region includes y values starting at y
and increasing along the y-axis. If height
is negative, the region
includes y values starting at y
and decreasing along the y-axis.
top_left_radius_x: f32
The radius of the quarter ellipse in the top-left corner along the x-axis.
Must not be negative.
top_left_radius_y: f32
The radius of the quarter ellipse in the top-left corner along the y-axis.
Must not be negative.
top_right_radius_x: f32
The radius of the quarter ellipse in the top-right corner along the x-axis.
Must not be negative.
top_right_radius_y: f32
The radius of the quarter ellipse in the top-right corner along the y-axis.
Must not be negative.
bottom_left_radius_x: f32
The radius of the quarter ellipse in the bottom-left corner along the x-axis.
Must not be negative.
bottom_left_radius_y: f32
The radius of the quarter ellipse in the bottom-left corner along the y-axis.
Must not be negative.
bottom_right_radius_x: f32
The radius of the quarter ellipse in the bottom-right corner along the x-axis.
Must not be negative.
bottom_right_radius_y: f32
The radius of the quarter ellipse in the bottom-right corner along the y-axis.
Must not be negative.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<RRectF, D> for RRectF
impl<D: ResourceDialect> Decode<RRectF, D> for RRectF
Source§impl<D: ResourceDialect, T0: Encode<f32, D>, T1: Encode<f32, D>, T2: Encode<f32, D>, T3: Encode<f32, D>, T4: Encode<f32, D>, T5: Encode<f32, D>, T6: Encode<f32, D>, T7: Encode<f32, D>, T8: Encode<f32, D>, T9: Encode<f32, D>, T10: Encode<f32, D>, T11: Encode<f32, D>> Encode<RRectF, D> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
impl<D: ResourceDialect, T0: Encode<f32, D>, T1: Encode<f32, D>, T2: Encode<f32, D>, T3: Encode<f32, D>, T4: Encode<f32, D>, T5: Encode<f32, D>, T6: Encode<f32, D>, T7: Encode<f32, D>, T8: Encode<f32, D>, T9: Encode<f32, D>, T10: Encode<f32, D>, T11: Encode<f32, D>> Encode<RRectF, D> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
Source§impl PartialOrd for RRectF
impl PartialOrd for RRectF
Source§impl TypeMarker for RRectF
impl TypeMarker for RRectF
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for RRectF
impl ValueTypeMarker for RRectF
impl Copy for RRectF
impl Persistable 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 UnwindSafe for RRectF
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)