#[repr(C)]pub struct FramePatch {
pub id: u32,
pub parent_frame: Option<Option<u32>>,
pub z_index: Option<i32>,
pub clip_content: Option<bool>,
pub corner_radius: Option<f64>,
pub size_x: Option<f64>,
pub size_y: Option<f64>,
pub transform: Option<Vec<f64>>,
pub clip_path: Option<String>,
pub opacity: Option<f64>,
pub presented_bounds: Option<[f64; 4]>,
pub presented_clip_bounds: Option<[f64; 4]>,
}Expand description
Create/update patch for a native frame host.
Fields§
§id: u32§parent_frame: Option<Option<u32>>§z_index: Option<i32>§clip_content: Option<bool>§corner_radius: Option<f64>§size_x: Option<f64>§size_y: Option<f64>§transform: Option<Vec<f64>>§clip_path: Option<String>§opacity: Option<f64>§presented_bounds: Option<[f64; 4]>§presented_clip_bounds: Option<[f64; 4]>Trait Implementations§
Source§impl Debug for FramePatch
impl Debug for FramePatch
Source§impl Default for FramePatch
impl Default for FramePatch
Source§fn default() -> FramePatch
fn default() -> FramePatch
Returns the “default value” for a type. Read more
Source§impl Serialize for FramePatch
impl Serialize for FramePatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FramePatch
impl RefUnwindSafe for FramePatch
impl Send for FramePatch
impl Sync for FramePatch
impl Unpin for FramePatch
impl UnsafeUnpin for FramePatch
impl UnwindSafe for FramePatch
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.