[−][src]Trait nannou::ui::prelude::widget::list::Direction
The direction in which the list is laid out.
Associated Types
Loading content...Required methods
fn ranges(Rect) -> (Range, Range)
For some given Rect
, returns the parallel and perpendicular ranges respectively.
fn scrollbar(NodeIndex<u32>) -> Scrollbar<Self::Axis>
Begin building the scrollbar for the List
.
fn common_scroll(common: &CommonBuilder) -> Option<&Scroll>
Borrow the scroll state associated with this Direction
's axis.
fn position_item<W>(
item_widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
item_widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
Positions the given widget.
fn position_scroll_trigger<W>(scroll_trigger: W, list: NodeIndex<u32>) -> W where
W: Widget,
W: Widget,
Position the Rectangle
used for scrolling List
s with fixed Item
sizes.
fn scroll_list_kids<S>(list: List<Self, S>) -> List<Self, S> where
S: ItemSize,
S: ItemSize,
Calls the suitable scroll_kids_<axis>
method on the List
.
fn size_breadth<W>(widget: W, breadth: f64) -> W where
W: Widget,
W: Widget,
Size the widget given its breadth.
fn size_length<W>(widget: W, length: f64) -> W where
W: Widget,
W: Widget,
Size the widget given its length.
Implementors
impl Direction for Down
[src]
type Axis = Y
fn ranges(Rect) -> (Range, Range)
[src]
fn scrollbar(id: NodeIndex<u32>) -> Scrollbar<<Down as Direction>::Axis>
[src]
fn common_scroll(common: &CommonBuilder) -> Option<&Scroll>
[src]
fn scroll_list_kids<S>(list: List<Down, S>) -> List<Down, S> where
S: ItemSize,
Down: Sized,
[src]
S: ItemSize,
Down: Sized,
fn position_item<W>(
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
[src]
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
fn position_scroll_trigger<W>(scroll_trigger: W, list: NodeIndex<u32>) -> W where
W: Widget,
[src]
W: Widget,
fn size_breadth<W>(widget: W, breadth: f64) -> W where
W: Widget,
[src]
W: Widget,
fn size_length<W>(widget: W, length: f64) -> W where
W: Widget,
[src]
W: Widget,
impl Direction for Left
[src]
type Axis = X
fn ranges(Rect) -> (Range, Range)
[src]
fn scrollbar(id: NodeIndex<u32>) -> Scrollbar<<Left as Direction>::Axis>
[src]
fn common_scroll(common: &CommonBuilder) -> Option<&Scroll>
[src]
fn scroll_list_kids<S>(list: List<Left, S>) -> List<Left, S> where
S: ItemSize,
Left: Sized,
[src]
S: ItemSize,
Left: Sized,
fn position_item<W>(
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
[src]
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
fn position_scroll_trigger<W>(scroll_trigger: W, list: NodeIndex<u32>) -> W where
W: Widget,
[src]
W: Widget,
fn size_breadth<W>(widget: W, breadth: f64) -> W where
W: Widget,
[src]
W: Widget,
fn size_length<W>(widget: W, length: f64) -> W where
W: Widget,
[src]
W: Widget,
impl Direction for Right
[src]
type Axis = X
fn ranges(Rect) -> (Range, Range)
[src]
fn scrollbar(id: NodeIndex<u32>) -> Scrollbar<<Right as Direction>::Axis>
[src]
fn common_scroll(common: &CommonBuilder) -> Option<&Scroll>
[src]
fn scroll_list_kids<S>(list: List<Right, S>) -> List<Right, S> where
S: ItemSize,
Right: Sized,
[src]
S: ItemSize,
Right: Sized,
fn position_item<W>(
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
[src]
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
fn position_scroll_trigger<W>(scroll_trigger: W, list: NodeIndex<u32>) -> W where
W: Widget,
[src]
W: Widget,
fn size_breadth<W>(widget: W, breadth: f64) -> W where
W: Widget,
[src]
W: Widget,
fn size_length<W>(widget: W, length: f64) -> W where
W: Widget,
[src]
W: Widget,
impl Direction for Up
[src]
type Axis = Y
fn ranges(Rect) -> (Range, Range)
[src]
fn scrollbar(id: NodeIndex<u32>) -> Scrollbar<<Up as Direction>::Axis>
[src]
fn common_scroll(common: &CommonBuilder) -> Option<&Scroll>
[src]
fn scroll_list_kids<S>(list: List<Up, S>) -> List<Up, S> where
S: ItemSize,
Up: Sized,
[src]
S: ItemSize,
Up: Sized,
fn position_item<W>(
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
[src]
widget: W,
last_id: Option<NodeIndex<u32>>,
scroll_trigger_id: NodeIndex<u32>,
first_item_margin: f64
) -> W where
W: Widget,
fn position_scroll_trigger<W>(scroll_trigger: W, list: NodeIndex<u32>) -> W where
W: Widget,
[src]
W: Widget,
fn size_breadth<W>(widget: W, breadth: f64) -> W where
W: Widget,
[src]
W: Widget,
fn size_length<W>(widget: W, length: f64) -> W where
W: Widget,
[src]
W: Widget,