OrientationBasedMeasures
struct · ferroui-controls-repeater · v0.5.0
struct OrientationBasedMeasures
Major is the scrolling axis; minor is the axis along a line.
Members
orientationnewmajorminormajor_pointminor_pointmajor_sizeminor_sizemajor_startminor_startmajor_endminor_endrectpointsizewith_major_startwith_minor_startwith_major_sizewith_minor_size
orientation
orientation: ScrollOrientation
new
fn new(orientation: ScrollOrientation) -> Self
major
fn major(self: &Self, size: Size) -> f64
minor
fn minor(self: &Self, size: Size) -> f64
major_point
fn major_point(self: &Self, point: Point) -> f64
minor_point
fn minor_point(self: &Self, point: Point) -> f64
major_size
fn major_size(self: &Self, rect: Rect) -> f64
minor_size
fn minor_size(self: &Self, rect: Rect) -> f64
major_start
fn major_start(self: &Self, rect: Rect) -> f64
minor_start
fn minor_start(self: &Self, rect: Rect) -> f64
major_end
fn major_end(self: &Self, rect: Rect) -> f64
minor_end
fn minor_end(self: &Self, rect: Rect) -> f64
rect
fn rect(self: &Self, minor: f64, major: f64, minor_size: f64, major_size: f64) -> Rect
point
fn point(self: &Self, minor: f64, major: f64) -> Point
size
fn size(self: &Self, minor: f64, major: f64) -> Size
with_major_start
fn with_major_start(self: &Self, rect: Rect, value: f64) -> Rect
with_minor_start
fn with_minor_start(self: &Self, rect: Rect, value: f64) -> Rect
with_major_size
fn with_major_size(self: &Self, rect: Rect, value: f64) -> Rect
with_minor_size
fn with_minor_size(self: &Self, rect: Rect, value: f64) -> Rect
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneCopyDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.