Enum nannou::ui::prelude::widget::scroll::Y [−][src]
pub enum Y {}
Behaviour for scrolling across the Y
axis.
Trait Implementations
impl Axis for Y
[src]
impl Axis for Y
fn parallel_range(rect: Rect) -> Range
[src]
fn parallel_range(rect: Rect) -> Range
The range of the given Rect
that is parallel with this Axis
.
fn perpendicular_range(rect: Rect) -> Range
[src]
fn perpendicular_range(rect: Rect) -> Range
The range of the given Rect
that is perpendicular with this Axis
.
fn padding_range(padding: Padding) -> Range
[src]
fn padding_range(padding: Padding) -> Range
Given some rectangular Padding
, return the Range
that corresponds with this Axis
.
fn mouse_scalar(mouse_xy: [f64; 2]) -> f64
[src]
fn mouse_scalar(mouse_xy: [f64; 2]) -> f64
The coordinate of the given mouse position that corresponds with this Axis
.
fn offset_direction() -> f64
[src]
fn offset_direction() -> f64
A Scalar
multiplier representing the direction in which positive offset shifts the scrollable_range
(either -1.0
or `1.0). Read more
impl Clone for Y
[src]
impl Clone for Y
fn clone(&self) -> Y
[src]
fn clone(&self) -> Y
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Y
[src]
impl Debug for Y
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Axis for Y
[src]
impl Axis for Y
fn track_rect(container: Rect, thickness: f64) -> Rect
[src]
fn track_rect(container: Rect, thickness: f64) -> Rect
The Rect
for a scroll "track" with the given thickness
for a container with the given Rect
. Read more
fn handle_rect(perpendicular_track_range: Range, handle_range: Range) -> Rect
[src]
fn handle_rect(perpendicular_track_range: Range, handle_range: Range) -> Rect
The Rect
for a scroll handle given both Range
s.
fn scroll_state(widget: &Container) -> Option<&State<Y>>
[src]
fn scroll_state(widget: &Container) -> Option<&State<Y>>
Retrieve the related scroll::State
for the axis from a given widget container.
fn default_x_dimension(scrollbar: &Scrollbar<Y>, ui: &Ui) -> Dimension
[src]
fn default_x_dimension(scrollbar: &Scrollbar<Y>, ui: &Ui) -> Dimension
Determine a default x dimension for the scrollbar in the case that no specific width is given. Read more
fn default_y_dimension(scrollbar: &Scrollbar<Y>, _ui: &Ui) -> Dimension
[src]
fn default_y_dimension(scrollbar: &Scrollbar<Y>, _ui: &Ui) -> Dimension
Determine a default y dimension for the scrollbar in the case that no specific height is given. Read more
fn to_2d(scalar: f64) -> [f64; 2]
[src]
fn to_2d(scalar: f64) -> [f64; 2]
Convert a given Scalar
along the axis into two dimensions.
impl Copy for Y
[src]
impl Copy for Y
impl PartialEq<Y> for Y
[src]
impl PartialEq<Y> for Y