Enum conrod::widget::scroll::Y
[−]
[src]
pub enum Y {}Behaviour for scrolling across the Y axis.
Trait Implementations
impl Copy for Y[src]
impl Clone for Y[src]
fn clone(&self) -> Y[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Y[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for Y[src]
fn eq(&self, __arg_0: &Y) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Axis for Y[src]
fn parallel_range(rect: Rect) -> Range[src]
The range of the given Rect that is parallel with this Axis.
fn perpendicular_range(rect: Rect) -> Range[src]
The range of the given Rect that is perpendicular with this Axis.
fn padding_range(padding: Padding) -> Range[src]
Given some rectangular Padding, return the Range that corresponds with this Axis.
fn mouse_scalar(mouse_xy: Point) -> Scalar[src]
The coordinate of the given mouse position that corresponds with this Axis.
fn offset_direction() -> Scalar[src]
A Scalar multiplier representing the direction in which positive offset shifts the scrollable_range (either -1.0 or `1.0). Read more
impl Axis for Y[src]
fn track_rect(container: Rect, thickness: Scalar) -> Rect[src]
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]
The Rect for a scroll handle given both Ranges.
fn scroll_state(widget: &Container) -> Option<&State<Self>>[src]
Retrieve the related scroll::State for the axis from a given widget container.
fn default_x_dimension(scrollbar: &Scrollbar<Self>, ui: &Ui) -> Dimension[src]
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<Self>, _ui: &Ui) -> Dimension[src]
Determine a default y dimension for the scrollbar in the case that no specific height is given. Read more
fn to_2d(scalar: Scalar) -> [Scalar; 2][src]
Convert a given Scalar along the axis into two dimensions.