Enum conrod::widget::scroll::X
[−]
[src]
pub enum X {}
Behaviour for scrolling across the X
axis.
Trait Implementations
impl Copy for X
[src]
impl Clone for X
[src]
fn clone(&self) -> X
[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 X
[src]
impl PartialEq for X
[src]
fn eq(&self, __arg_0: &X) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Axis for X
[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 X
[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 Range
s.
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.