# OrientationBasedMeasures

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/layouts/struct-orientationbasedmeasures/

**struct** · [`ferroui-controls-repeater`](/docs/0.5.0/api/ferroui-controls-repeater/) · v0.5.0

```rust
struct OrientationBasedMeasures
```

Major is the scrolling axis; minor is the axis along a line.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L15)

## Members

- [`orientation`](#struct_field-orientation)
- [`new`](#function-new)
- [`major`](#function-major)
- [`minor`](#function-minor)
- [`major_point`](#function-major_point)
- [`minor_point`](#function-minor_point)
- [`major_size`](#function-major_size)
- [`minor_size`](#function-minor_size)
- [`major_start`](#function-major_start)
- [`minor_start`](#function-minor_start)
- [`major_end`](#function-major_end)
- [`minor_end`](#function-minor_end)
- [`rect`](#function-rect)
- [`point`](#function-point)
- [`size`](#function-size)
- [`with_major_start`](#function-with_major_start)
- [`with_minor_start`](#function-with_minor_start)
- [`with_major_size`](#function-with_major_size)
- [`with_minor_size`](#function-with_minor_size)

<a id="struct_field-orientation"></a>

### orientation

```rust
orientation: ScrollOrientation
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L16)

<a id="function-new"></a>

### new

```rust
fn new(orientation: ScrollOrientation) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L19)

<a id="function-major"></a>

### major

```rust
fn major(self: &Self, size: Size) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L22)

<a id="function-minor"></a>

### minor

```rust
fn minor(self: &Self, size: Size) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L29)

<a id="function-major_point"></a>

### major_point

```rust
fn major_point(self: &Self, point: Point) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L36)

<a id="function-minor_point"></a>

### minor_point

```rust
fn minor_point(self: &Self, point: Point) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L43)

<a id="function-major_size"></a>

### major_size

```rust
fn major_size(self: &Self, rect: Rect) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L50)

<a id="function-minor_size"></a>

### minor_size

```rust
fn minor_size(self: &Self, rect: Rect) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L53)

<a id="function-major_start"></a>

### major_start

```rust
fn major_start(self: &Self, rect: Rect) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L56)

<a id="function-minor_start"></a>

### minor_start

```rust
fn minor_start(self: &Self, rect: Rect) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L63)

<a id="function-major_end"></a>

### major_end

```rust
fn major_end(self: &Self, rect: Rect) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L70)

<a id="function-minor_end"></a>

### minor_end

```rust
fn minor_end(self: &Self, rect: Rect) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L73)

<a id="function-rect"></a>

### rect

```rust
fn rect(self: &Self, minor: f64, major: f64, minor_size: f64, major_size: f64) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L76)

<a id="function-point"></a>

### point

```rust
fn point(self: &Self, minor: f64, major: f64) -> Point
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L83)

<a id="function-size"></a>

### size

```rust
fn size(self: &Self, minor: f64, major: f64) -> Size
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L90)

<a id="function-with_major_start"></a>

### with_major_start

```rust
fn with_major_start(self: &Self, rect: Rect, value: f64) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L97)

<a id="function-with_minor_start"></a>

### with_minor_start

```rust
fn with_minor_start(self: &Self, rect: Rect, value: f64) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L105)

<a id="function-with_major_size"></a>

### with_major_size

```rust
fn with_major_size(self: &Self, rect: Rect, value: f64) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L113)

<a id="function-with_minor_size"></a>

### with_minor_size

```rust
fn with_minor_size(self: &Self, rect: Rect, value: f64) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/orientation_based_measures.rs#L121)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
