morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::Slider Struct Reference

An integer chosen on a range. More...

#include <view.hpp>

Public Attributes

Prop< std::int64_t > value
 The value shown.
std::int64_t minimum = 0
 The smallest value; set once.
std::int64_t maximum = 100
 The largest value; set once.
std::int64_t step = 1
 The increment between neighbouring values; set once.
std::function< void(std::int64_t)> onChange
 Called with the value the user moved to.
std::function< void(std::int64_t)> onCommit
 Called with the value a finished move ended on: a release after a drag, a key step, or a wheel step.
FieldState field {}
 Read-only, required, errors and stale.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

An integer chosen on a range.

Definition at line 936 of file view.hpp.

Member Data Documentation

◆ value

Prop<std::int64_t> morph::ui::Slider::value

The value shown.

Definition at line 938 of file view.hpp.

◆ minimum

std::int64_t morph::ui::Slider::minimum = 0

The smallest value; set once.

Definition at line 940 of file view.hpp.

◆ maximum

std::int64_t morph::ui::Slider::maximum = 100

The largest value; set once.

Definition at line 942 of file view.hpp.

◆ step

std::int64_t morph::ui::Slider::step = 1

The increment between neighbouring values; set once.

Definition at line 944 of file view.hpp.

◆ onChange

std::function<void(std::int64_t)> morph::ui::Slider::onChange

Called with the value the user moved to.

Definition at line 946 of file view.hpp.

◆ onCommit

std::function<void(std::int64_t)> morph::ui::Slider::onCommit

Called with the value a finished move ended on: a release after a drag, a key step, or a wheel step.

Definition at line 948 of file view.hpp.

◆ field

FieldState morph::ui::Slider::field {}

Read-only, required, errors and stale.

Definition at line 950 of file view.hpp.

◆ common

Common morph::ui::Slider::common {}

Visibility, enablement, layout, drag-and-drop.

Definition at line 952 of file view.hpp.


The documentation for this struct was generated from the following file: