pub struct UiScrollRegion {
pub viewport: PixelRect,
pub content: PixelRect,
pub offset_y: i32,
pub max_offset_y: i32,
}Expand description
Return value from crate::ui::Ui::begin_scroll_panel.
Donor: oa::UiScrollRegion.
Fields§
§viewport: PixelRectVisible viewport rectangle.
content: PixelRectContent area rectangle (may extend below viewport).
offset_y: i32Current vertical scroll offset in pixels.
max_offset_y: i32Maximum reachable vertical offset.
Trait Implementations§
Source§impl Clone for UiScrollRegion
impl Clone for UiScrollRegion
Source§impl Debug for UiScrollRegion
impl Debug for UiScrollRegion
Auto Trait Implementations§
impl Forget for UiScrollRegion
impl Freeze for UiScrollRegion
impl Move for UiScrollRegion
impl RefUnwindSafe for UiScrollRegion
impl Send for UiScrollRegion
impl Sync for UiScrollRegion
impl Unpin for UiScrollRegion
impl UnsafeUnpin for UiScrollRegion
impl UnwindSafe for UiScrollRegion
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