Skip to main content

GridScroll

Type Alias GridScroll 

Source
type GridScroll = ScrollAreaOutput<(ScrollAreaOutput<()>, Rect)>;
Expand description

A grid’s horizontal scroll area, wrapping its table’s vertical one and the rect that vertical scroller was laid out in.

Aliased Type§

struct GridScroll {
    pub inner: (ScrollAreaOutput<()>, Rect),
    pub id: Id,
    pub state: State,
    pub content_size: Vec2,
    pub inner_rect: Rect,
}

Fields§

§inner: (ScrollAreaOutput<()>, Rect)

What the user closure returned.

§id: Id

[Id] of the [ScrollArea].

§state: State

The current state of the scroll area.

§content_size: Vec2

The size of the content. If this is larger than [Self::inner_rect], then there was need for scrolling.

§inner_rect: Rect

Where on the screen the content is (excludes scroll bars).