# PersonPictureTemplateSettings

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/primitives/struct-personpicturetemplatesettings/

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

```rust
struct PersonPictureTemplateSettings
```

The values the template of a `PersonPicture` binds to: the initials it
shows and the brush of its picture. Each picture has its own; the picture sets them.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L14)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`actual_initials_property`](#function-actual_initials_property)
- [`actual_image_brush_property`](#function-actual_image_brush_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`actual_initials`](#function-actual_initials)
- [`actual_image_brush`](#function-actual_image_brush)

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

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L18)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<PersonPictureTemplateSettings>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L18)

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

### actual_initials_property

```rust
fn actual_initials_property() -> &'static StyledProperty<String>
```

Defines the `ActualInitials` property: the initials the picture shows.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L25)

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

### actual_image_brush_property

```rust
fn actual_image_brush_property() -> &'static StyledProperty<Option<Ref<ImageBrush>>>
```

Defines the `ActualImageBrush` property: the brush of the picture, `None` without one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L25)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L43)

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

### new

```rust
fn new() -> Ref<Self>
```

Creates the settings of a picture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L48)

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

### actual_initials

```rust
fn actual_initials(self: &Self) -> String
```

Gets the initials the picture shows.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L53)

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

### actual_image_brush

```rust
fn actual_image_brush(self: &Self) -> Option<Ref<ImageBrush>>
```

Gets the brush of the picture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/person_picture_template_settings.rs#L62)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<PersonPictureTemplateSettings>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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