pub struct ScrollOutput {
pub index: u32,
pub offset_x: f32,
pub offset_y: f32,
pub content_width: f32,
pub content_height: f32,
pub scroll_x: bool,
pub scroll_y: bool,
}Expand description
One scroll container (any overflow: scroll|auto node, windowed lists,
a Dialog body): its offset (clamped), its viewport (the node’s frame) and
its scrollable content size. Frames are reported UNSCROLLED: a painter
translates every descendant by -offset and clips to the frame.
Fields§
§index: u32§offset_x: f32§offset_y: f32§content_width: f32§content_height: f32§scroll_x: bool§scroll_y: boolTrait Implementations§
Source§impl Clone for ScrollOutput
impl Clone for ScrollOutput
impl Copy for ScrollOutput
Source§impl Debug for ScrollOutput
impl Debug for ScrollOutput
Source§impl<'de> Deserialize<'de> for ScrollOutput
impl<'de> Deserialize<'de> for ScrollOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScrollOutput
impl PartialEq for ScrollOutput
Source§impl Serialize for ScrollOutput
impl Serialize for ScrollOutput
impl StructuralPartialEq for ScrollOutput
Auto Trait Implementations§
impl Freeze for ScrollOutput
impl RefUnwindSafe for ScrollOutput
impl Send for ScrollOutput
impl Sync for ScrollOutput
impl Unpin for ScrollOutput
impl UnsafeUnpin for ScrollOutput
impl UnwindSafe for ScrollOutput
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