# InkPresenterRuler

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

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

```rust
struct InkPresenterRuler
```

A movable straightedge. Its transform uses the local top-left corner.

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

## Members

- [`kind`](#function-kind)
- [`is_visible`](#function-is_visible)
- [`set_is_visible`](#function-set_is_visible)
- [`transform`](#function-transform)
- [`set_transform`](#function-set_transform)
- [`length`](#function-length)
- [`set_length`](#function-set_length)
- [`width`](#function-width)
- [`set_width`](#function-set_width)
- [`are_tick_marks_visible`](#function-are_tick_marks_visible)
- [`set_are_tick_marks_visible`](#function-set_are_tick_marks_visible)
- [`is_compass_visible`](#function-is_compass_visible)
- [`set_is_compass_visible`](#function-set_is_compass_visible)
- [`background_color`](#function-background_color)
- [`set_background_color`](#function-set_background_color)
- [`foreground_color`](#function-foreground_color)
- [`set_foreground_color`](#function-set_foreground_color)
- [`angle`](#function-angle)

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

### kind

```rust
fn kind(self: &Self) -> InkPresenterStencilKind
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L149)

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

### is_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L152)

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

### set_is_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L155)

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

### transform

```rust
fn transform(self: &Self) -> Matrix
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L162)

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

### set_transform

```rust
fn set_transform(self: &Self, value: Matrix) -> Result<(), InkError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L165)

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

### length

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L173)

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

### set_length

```rust
fn set_length(self: &Self, value: f64) -> Result<(), InkError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L176)

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

### width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L190)

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

### set_width

```rust
fn set_width(self: &Self, value: f64) -> Result<(), InkError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L193)

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

### are_tick_marks_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L207)

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

### set_are_tick_marks_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L210)

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

### is_compass_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L215)

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

### set_is_compass_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L218)

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

### background_color

```rust
fn background_color(self: &Self) -> Color
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L223)

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

### set_background_color

```rust
fn set_background_color(self: &Self, value: Color)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L226)

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

### foreground_color

```rust
fn foreground_color(self: &Self) -> Color
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L231)

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

### set_foreground_color

```rust
fn set_foreground_color(self: &Self, value: Color)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L234)

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

### angle

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

Clockwise orientation of the ruler's horizontal edge, in degrees.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L240)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `IUnknownImpl`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`IInkPresenterStencil`](/docs/0.5.0/api/ferroui-controls-inking/trait-iinkpresenterstencil/)
- `PartialEq`

## Availability

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