#[repr(C)]pub struct ScrollerPatch {Show 23 fields
pub id: u32,
pub parent_frame: Option<Option<u32>>,
pub z_index: Option<i32>,
pub transform: Option<Vec<f64>>,
pub size_x: Option<f64>,
pub size_y: Option<f64>,
pub opacity: Option<f64>,
pub clip_content: Option<bool>,
pub corner_radius: Option<f64>,
pub size_inner_pane_x: Option<f64>,
pub size_inner_pane_y: Option<f64>,
pub snap_points_x: Option<Vec<f64>>,
pub snap_points_y: Option<Vec<f64>>,
pub scroll_x: Option<f64>,
pub scroll_y: Option<f64>,
pub presentation_scroll_x: Option<f64>,
pub presentation_scroll_y: Option<f64>,
pub scroll_enabled_x: Option<bool>,
pub scroll_enabled_y: Option<bool>,
pub content_layer_id: Option<u32>,
pub presented_bounds: Option<[f64; 4]>,
pub presented_clip_bounds: Option<[f64; 4]>,
pub subtree_depth: u32,
}Expand description
Create/update patch for a native/browser-owned scroller.
Fields§
§id: u32§parent_frame: Option<Option<u32>>§z_index: Option<i32>§transform: Option<Vec<f64>>§size_x: Option<f64>§size_y: Option<f64>§opacity: Option<f64>§clip_content: Option<bool>§corner_radius: Option<f64>§size_inner_pane_x: Option<f64>§size_inner_pane_y: Option<f64>§snap_points_x: Option<Vec<f64>>§snap_points_y: Option<Vec<f64>>§scroll_x: Option<f64>§scroll_y: Option<f64>§presentation_scroll_x: Option<f64>§presentation_scroll_y: Option<f64>§scroll_enabled_x: Option<bool>§scroll_enabled_y: Option<bool>§content_layer_id: Option<u32>§presented_bounds: Option<[f64; 4]>§presented_clip_bounds: Option<[f64; 4]>§subtree_depth: u32Trait Implementations§
Source§impl Debug for ScrollerPatch
impl Debug for ScrollerPatch
Source§impl Default for ScrollerPatch
impl Default for ScrollerPatch
Source§fn default() -> ScrollerPatch
fn default() -> ScrollerPatch
Returns the “default value” for a type. Read more
Source§impl Serialize for ScrollerPatch
impl Serialize for ScrollerPatch
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 ScrollerPatch
impl RefUnwindSafe for ScrollerPatch
impl Send for ScrollerPatch
impl Sync for ScrollerPatch
impl Unpin for ScrollerPatch
impl UnsafeUnpin for ScrollerPatch
impl UnwindSafe for ScrollerPatch
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.