# CheckBoxCell

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/models/struct-checkboxcell/

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

```rust
struct CheckBoxCell
```

`CheckBoxCell`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L12)

## Members

- [`from_value`](#function-from_value)
- [`new`](#function-new)
- [`single_tap_edit`](#function-single_tap_edit)
- [`is_read_only`](#function-is_read_only)
- [`is_three_state`](#function-is_three_state)
- [`value`](#function-value)
- [`set_value`](#function-set_value)
- [`try_set_source`](#function-try_set_source)

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

### from_value

```rust
fn from_value(value: Option<bool>) -> Rc<Self>
```

A read-only cell of a constant value (`CheckBoxCell(bool? value)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L23)

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

### new

```rust
fn new(binding: Rc<dyn ICellBinding<Option<bool>>>, is_read_only: bool, is_three_state: bool) -> Rc<Self>
```

A cell of the value `binding` pushes; a cell that is not read only writes its changes back.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L35)

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

### single_tap_edit

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

Whether a single tap edits the cell (`SingleTapEdit`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L55)

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

### is_read_only

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L59)

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

### is_three_state

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

Whether the check box has an indeterminate state.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L64)

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

### value

```rust
fn value(self: &Self) -> Option<bool>
```

The state of the check box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L69)

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

### set_value

```rust
fn set_value(self: &Self, value: Option<bool>)
```

Sets the state; a cell that is not read only writes it to its binding.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L74)

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

### try_set_source

```rust
fn try_set_source(self: &Self, source: Option<&BoxedValue>) -> bool
```

Points the cell's binding at another model (`TrySetSource`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/check_box_cell.rs#L83)

## 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`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`ICell`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icell/)
- [`IRecyclableCell`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-irecyclablecell/)

## Availability

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