Struct conrod::graph::algo::PickWidgets
[−]
[src]
pub struct PickWidgets { // some fields omitted }
A node "walker" that yields all widgets under the given xy
position in order from top to
bottom.
Methods
impl PickWidgets
[src]
fn next_node_index(&mut self, graph: &Graph, depth_order: &[NodeIndex]) -> Option<NodeIndex>
The next NodeIndex
under the xy
location.
This is called within PickWidgets::next
.
fn next(&mut self, graph: &Graph, depth_order: &[NodeIndex]) -> Option<Index>
The widget::Index
of the next Widget
under the xy
location.
The Graph
is traversed from the top down.
If the next widget is some graphic element of another widget, the graphic parent will be returned.
Trait Implementations
impl Clone for PickWidgets
[src]
fn clone(&self) -> PickWidgets
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more