# Selection

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

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

```rust
struct Selection
```



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

## Members

- [`nodes`](#function-nodes)
- [`primary`](#function-primary)
- [`set_locked`](#function-set_locked)
- [`set_hidden`](#function-set_hidden)
- [`select`](#function-select)
- [`hit_test`](#function-hit_test)
- [`marquee`](#function-marquee)
- [`prune`](#function-prune)

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

### nodes

```rust
fn nodes(self: &Self) -> Vec<NodeId>
```



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

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

### primary

```rust
fn primary(self: &Self) -> Option<NodeId>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L28)

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

### set_locked

```rust
fn set_locked(self: &mut Self, node: NodeId, locked: bool)
```



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

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

### set_hidden

```rust
fn set_hidden(self: &mut Self, node: NodeId, hidden: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L42)

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

### select

```rust
fn select(self: &mut Self, document: &Document, node: NodeId, mode: SelectionMode) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L53)

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

### hit_test

```rust
fn hit_test(self: &Self, document: &Document, point: Point, paint_order: &[(NodeId, Rect)]) -> Result<Option<NodeId>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L85)

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

### marquee

```rust
fn marquee(self: &mut Self, document: &Document, bounds: Rect, paint_order: &[(NodeId, Rect)], fully_contained: bool, mode: SelectionMode) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L100)

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

### prune

```rust
fn prune(self: &mut Self, document: &Document)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L140)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`
- `Default`

## Availability

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