# CanvasGuidesEditor

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

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

```rust
struct CanvasGuidesEditor
```



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

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`value`](#function-value)
- [`add_guide`](#function-add_guide)
- [`set_guide_position`](#function-set_guide_position)
- [`remove_guide`](#function-remove_guide)
- [`on_apply`](#function-on_apply)
- [`on_cancel`](#function-on_cancel)
- [`apply`](#function-apply)
- [`cancel`](#function-cancel)
- [`retire`](#function-retire)

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

### new

```rust
fn new(initial: CanvasGuideSettings) -> Rc<Self>
```



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

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

### control

```rust
fn control(self: &Self) -> &Ref<StackPanel>
```



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

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

### value

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



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

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

### add_guide

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



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

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

### set_guide_position

```rust
fn set_guide_position(self: &Self, id: u64, draft: &str) -> Result<(), String>
```



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

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

### remove_guide

```rust
fn remove_guide(self: &Self, id: u64) -> Result<(), String>
```



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

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

### on_apply

```rust
fn on_apply(self: &Self, callback: impl Fn(CanvasGuideSettings) -> Result<(), String> + 'static)
```



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

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

### on_cancel

```rust
fn on_cancel(self: &Self, callback: impl Fn() -> () + 'static)
```



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

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

### apply

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



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

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

### cancel

```rust
fn cancel(self: &Self)
```



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

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

### retire

```rust
fn retire(self: &Self)
```



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

## Trait implementations

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

## Availability

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