# TickBar

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-tickbar/

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

```rust
struct TickBar
```

An element that is used for drawing the ticks of a `Slider`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L71)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`fill_property`](#function-fill_property)
- [`minimum_property`](#function-minimum_property)
- [`maximum_property`](#function-maximum_property)
- [`tick_frequency_property`](#function-tick_frequency_property)
- [`orientation_property`](#function-orientation_property)
- [`ticks_property`](#function-ticks_property)
- [`is_direction_reversed_property`](#function-is_direction_reversed_property)
- [`placement_property`](#function-placement_property)
- [`reserved_space_property`](#function-reserved_space_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`fill`](#function-fill)
- [`set_fill`](#function-set_fill)
- [`minimum`](#function-minimum)
- [`set_minimum`](#function-set_minimum)
- [`maximum`](#function-maximum)
- [`set_maximum`](#function-set_maximum)
- [`tick_frequency`](#function-tick_frequency)
- [`set_tick_frequency`](#function-set_tick_frequency)
- [`orientation`](#function-orientation)
- [`set_orientation`](#function-set_orientation)
- [`ticks`](#function-ticks)
- [`set_ticks`](#function-set_ticks)
- [`is_direction_reversed`](#function-is_direction_reversed)
- [`set_is_direction_reversed`](#function-set_is_direction_reversed)
- [`placement`](#function-placement)
- [`set_placement`](#function-set_placement)
- [`reserved_space`](#function-reserved_space)
- [`set_reserved_space`](#function-set_reserved_space)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L75)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<TickBar>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L75)

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

### fill_property

```rust
fn fill_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `Fill` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### minimum_property

```rust
fn minimum_property() -> &'static StyledProperty<f64>
```

Defines the `Minimum` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### maximum_property

```rust
fn maximum_property() -> &'static StyledProperty<f64>
```

Defines the `Maximum` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### tick_frequency_property

```rust
fn tick_frequency_property() -> &'static StyledProperty<f64>
```

Defines the `TickFrequency` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### orientation_property

```rust
fn orientation_property() -> &'static StyledProperty<Orientation>
```

Defines the `Orientation` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### ticks_property

```rust
fn ticks_property() -> &'static StyledProperty<Option<TickList>>
```

Defines the `Ticks` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### is_direction_reversed_property

```rust
fn is_direction_reversed_property() -> &'static StyledProperty<bool>
```

Defines the `IsDirectionReversed` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### placement_property

```rust
fn placement_property() -> &'static StyledProperty<TickBarPlacement>
```

Defines the `Placement` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### reserved_space_property

```rust
fn reserved_space_property() -> &'static StyledProperty<Rect>
```

Defines the `ReservedSpace` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L272)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L353)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L357)

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

### fill

```rust
fn fill(self: &Self) -> Option<Rc<dyn IBrush>>
```

The brush used to fill the ticks of the tick bar.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L362)

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

### set_fill

```rust
fn set_fill(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L366)

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

### minimum

```rust
fn minimum(self: &Self) -> f64
```

The logical position where the minimum tick will be drawn.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L371)

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

### set_minimum

```rust
fn set_minimum(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L375)

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

### maximum

```rust
fn maximum(self: &Self) -> f64
```

The logical position where the maximum tick will be drawn.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L380)

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

### set_maximum

```rust
fn set_maximum(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L384)

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

### tick_frequency

```rust
fn tick_frequency(self: &Self) -> f64
```

The tick frequency defines how the ticks will be drawn.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L389)

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

### set_tick_frequency

```rust
fn set_tick_frequency(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L393)

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

### orientation

```rust
fn orientation(self: &Self) -> Orientation
```

The orientation of the tick bar's parent.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L398)

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

### set_orientation

```rust
fn set_orientation(self: &Self, value: Orientation)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L402)

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

### ticks

```rust
fn ticks(self: &Self) -> Option<TickList>
```

The collection of values which are the logical positions used to
draw the ticks.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L408)

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

### set_ticks

```rust
fn set_ticks(self: &Self, value: Option<TickList>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L412)

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

### is_direction_reversed

```rust
fn is_direction_reversed(self: &Self) -> bool
```

Defines the direction of value incrementation.

By default, if the orientation is horizontal, ticks will be drawn
from left to right (and from bottom to top for the vertical
orientation). If this is true the ticks are drawn in the opposite
direction.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L422)

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

### set_is_direction_reversed

```rust
fn set_is_direction_reversed(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L426)

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

### placement

```rust
fn placement(self: &Self) -> TickBarPlacement
```

Specifies how the ticks will be placed. This property affects the
way ticks are drawn.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L432)

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

### set_placement

```rust
fn set_placement(self: &Self, value: TickBarPlacement)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L436)

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

### reserved_space

```rust
fn reserved_space(self: &Self) -> Rect
```

The tick bar uses the reserved space for left and right spacing (for
the horizontal orientation) or top and bottom spacing (for the
vertical orientation). The space on both sides of the tick bar is
half of the specified reserved space.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L444)

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

### set_reserved_space

```rust
fn set_reserved_space(self: &Self, value: Rect)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tick_bar.rs#L448)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TickBar>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)

## Availability

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