4#include "aria/detail/typed_signal.hpp"
38 [[nodiscard]]
virtual std::string_view
kind() const noexcept = 0;
71# pragma warning(disable: 4251)
73 mutable std::unique_ptr<Impl> impl_;
84 [[nodiscard]]
virtual std::string_view
platform_name() const noexcept = 0;
90 std::function<
void(
std::string_view)> cb) = 0;
96 std::function<
void(
bool)> cb) = 0;
119 std::function<
void(
int)> cb) = 0;
124 std::function<
void(
std::int64_t)> cb) = 0;
129 std::function<
void(
std::uint64_t)> cb) = 0;
134 std::function<
void(
float)> cb) = 0;
139 std::function<
void(
double)> cb) = 0;
RAII handle to a single subscription.
Definition subscription.hpp:44
Abstract platform adapter — knows how to read/write/observe widgets.
Definition view_adapter.hpp:80
virtual Subscription on_int_changed(IView &v, std::function< void(int)> cb)=0
virtual void set_visible(IView &v, bool visible)=0
virtual double get_double(IView &v)=0
virtual std::uint64_t get_uint64(IView &v)=0
virtual float get_float(IView &v)=0
virtual Subscription on_float_changed(IView &v, std::function< void(float)> cb)=0
virtual std::int64_t get_int64(IView &v)=0
virtual void set_uint64(IView &v, std::uint64_t value)=0
virtual void set_float(IView &v, float value)=0
virtual Subscription on_bool_changed(IView &v, std::function< void(bool)> cb)=0
virtual Subscription on_double_changed(IView &v, std::function< void(double)> cb)=0
virtual void set_double(IView &v, double value)=0
virtual std::string get_text(IView &v)=0
virtual std::string_view platform_name() const noexcept=0
virtual bool get_bool(IView &v)=0
virtual void set_bool(IView &v, bool value)=0
virtual void set_int(IView &v, int value)=0
virtual Subscription on_int64_changed(IView &v, std::function< void(std::int64_t)> cb)=0
virtual void set_text(IView &v, std::string_view text)=0
virtual void set_enabled(IView &v, bool enabled)=0
virtual int get_int(IView &v)=0
virtual Subscription on_text_changed(IView &v, std::function< void(std::string_view)> cb)=0
virtual Subscription on_uint64_changed(IView &v, std::function< void(std::uint64_t)> cb)=0
virtual void set_int64(IView &v, std::int64_t value)=0
virtual Subscription on_click(IView &v, std::function< void()> cb)=0
Abstract platform widget reference.
Definition view_adapter.hpp:28
Subscription on_destroy(std::function< void()> cb) const
Subscribe to "this view is about to be destroyed".
IView(const IView &)=delete
IView & operator=(const IView &)=delete
void fire_destroy_() noexcept
Invoked by ~IView() to fan out the notification — this is the last-resort trigger.
virtual std::string_view kind() const noexcept=0
IView & operator=(IView &&)=delete
#define ARIA_BINDING_API
Definition export.hpp:39
Definition binding_engine.hpp:25
Definition validation_key.hpp:110