# PagerControlTemplateSettings

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

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

```rust
struct PagerControlTemplateSettings
```

The values the template of a `PagerControl` binds to: the page
numbers of its combo box (`Pages`, 1 to the number of pages) and the buttons and ellipses
of its number panel (`NumberPanelItems`). Each pager has its own; the pager fills them.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`pages_property`](#function-pages_property)
- [`number_panel_items_property`](#function-number_panel_items_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`pages`](#function-pages)
- [`number_panel_items`](#function-number_panel_items)

<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/pager_control_template_settings.rs#L22)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### pages_property

```rust
fn pages_property() -> &'static DirectProperty<PagerControlTemplateSettings, FerroList<i32>>
```

Defines the `Pages` property: the page numbers of the combo box.

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

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

### number_panel_items_property

```rust
fn number_panel_items_property() -> &'static DirectProperty<PagerControlTemplateSettings, FerroList<Ref<Control>>>
```

Defines the `NumberPanelItems` property: the buttons and ellipses of the number panel.

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

<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/pager_control_template_settings.rs#L53)

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

### new

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

Creates the settings of a pager.

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

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

### pages

```rust
fn pages(self: &Self) -> FerroList<i32>
```

Gets the page numbers of the combo box: 1 to the number of pages, or the first hundreds
while the number of pages is not known.

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

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

### number_panel_items

```rust
fn number_panel_items(self: &Self) -> FerroList<Ref<Control>>
```

Gets the buttons and ellipses of the number panel.

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

## 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<PagerControlTemplateSettings>`](/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/).
