35 [[nodiscard]] std::string_view
platform_name() const noexcept
override {
68 std::function<
void(std::string_view)> cb)
override;
74 std::function<
void(
bool)> cb)
override;
83 std::function<
void(
int)> cb)
override;
93 std::function<
void(std::int64_t)> cb)
override;
100 std::function<
void(std::uint64_t)> cb)
override;
108 std::function<
void(
float)> cb)
override;
114 std::function<
void(
double)> cb)
override;
125 std::shared_ptr<Impl> p_;
RAII handle to a single subscription.
Definition subscription.hpp:44
void set_enabled(binding::IView &v, bool enabled) override
::aria::Subscription on_uint64_changed(binding::IView &v, std::function< void(std::uint64_t)> cb) override
::aria::Subscription on_double_changed(binding::IView &v, std::function< void(double)> cb) override
void set_int64(binding::IView &v, std::int64_t value) override
std::uint64_t get_uint64(binding::IView &v) override
::aria::Subscription on_int64_changed(binding::IView &v, std::function< void(std::int64_t)> cb) override
::aria::Subscription on_click(binding::IView &v, std::function< void()> cb) override
void set_int(binding::IView &v, int value) override
QComboBox uses its current index, suitable for fixed option lists.
void set_visible(binding::IView &v, bool visible) override
float get_float(binding::IView &v) override
QtView & view_for(QObject *obj)
Wrap a native QObject* (typically a QWidget) as an IView owned by this adapter.
std::int64_t get_int64(binding::IView &v) override
::aria::Subscription on_bool_changed(binding::IView &v, std::function< void(bool)> cb) override
std::string get_text(binding::IView &v) override
void set_uint64(binding::IView &v, std::uint64_t value) override
::aria::Subscription on_int_changed(binding::IView &v, std::function< void(int)> cb) override
bool get_bool(binding::IView &v) override
double get_double(binding::IView &v) override
std::string_view platform_name() const noexcept override
Definition qt_adapter.hpp:35
int get_int(binding::IView &v) override
void set_text(binding::IView &v, std::string_view text) override
::aria::Subscription on_text_changed(binding::IView &v, std::function< void(std::string_view)> cb) override
void set_double(binding::IView &v, double value) override
void set_float(binding::IView &v, float value) override
void set_bool(binding::IView &v, bool value) override
::aria::Subscription on_float_changed(binding::IView &v, std::function< void(float)> cb) override
Wraps any QWidget* (or QObject*) as an IView.
Definition qt_view.hpp:25
Abstract platform adapter — knows how to read/write/observe widgets.
Definition view_adapter.hpp:80
Abstract platform widget reference.
Definition view_adapter.hpp:28
#define ARIA_QT6_API
Definition export.hpp:57
Definition qt_adapter.hpp:12