# CanvasGuideSettings

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-canvasguidesettings/

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

```rust
struct CanvasGuideSettings
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L20)

## Members

- [`rulers_visible`](#struct_field-rulers_visible)
- [`guides_visible`](#struct_field-guides_visible)
- [`grid_visible`](#struct_field-grid_visible)
- [`snap_to_grid`](#struct_field-snap_to_grid)
- [`snap_to_guides`](#struct_field-snap_to_guides)
- [`snap_to_objects`](#struct_field-snap_to_objects)
- [`grid_spacing`](#struct_field-grid_spacing)
- [`snap_tolerance`](#struct_field-snap_tolerance)
- [`small_nudge`](#struct_field-small_nudge)
- [`large_nudge`](#struct_field-large_nudge)
- [`guides`](#struct_field-guides)
- [`MAX_GUIDES`](#assoc_const-max_guides)
- [`MAX_POSITION`](#assoc_const-max_position)
- [`validate`](#function-validate)
- [`validate_position`](#function-validate_position)
- [`add`](#function-add)

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

### rulers_visible

```rust
rulers_visible: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L21)

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

### guides_visible

```rust
guides_visible: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L22)

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

### grid_visible

```rust
grid_visible: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L23)

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

### snap_to_grid

```rust
snap_to_grid: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L24)

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

### snap_to_guides

```rust
snap_to_guides: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L25)

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

### snap_to_objects

```rust
snap_to_objects: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L26)

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

### grid_spacing

```rust
grid_spacing: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L27)

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

### snap_tolerance

```rust
snap_tolerance: f64
```

Screen logical pixels, independent of the canvas zoom.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L29)

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

### small_nudge

```rust
small_nudge: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L30)

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

### large_nudge

```rust
large_nudge: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L31)

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

### guides

```rust
guides: Vec<CanvasGuide>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L32)

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

### MAX_GUIDES

```rust
const MAX_GUIDES: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L54)

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

### MAX_POSITION

```rust
const MAX_POSITION: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L55)

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

### validate

```rust
fn validate(self: &Self) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L57)

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

### validate_position

```rust
fn validate_position(position: f64) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L84)

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

### add

```rust
fn add(self: &mut Self, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/canvas_guides.rs#L95)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `DeserializeOwned`
- `ErasedDestructor`
- `IntoEither`
- `Same`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Serialize`
- `Deserialize<'de>`
- `Default`

## Availability

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