Toast Engine
Loading...
Searching...
No Matches
ui::UIBinds Class Reference

Public Member Functions

 UIBinds (Rml::Context *context, toast::Node *owner, const DocumentScan &scan, UIBindStore &store)
 UIBinds (const UIBinds &)=delete
auto operator= (const UIBinds &) -> UIBinds &=delete
 UIBinds (UIBinds &&)=delete
auto operator= (UIBinds &&) -> UIBinds &=delete
auto handle () -> Rml::DataModelHandle
auto has (std::string_view name) const -> bool
auto get (std::string_view name) const -> Rml::Variant
void set (std::string_view name, Rml::Variant value)
 Writes name from script and notifies the data model to refresh the UI.
void flushDirty ()

Static Public Member Functions

static void flushAllDirty ()
static auto forNode (const toast::Node *node) -> UIBinds *

Static Public Attributes

static constexpr const char * k_model_name = "binds"

Member Function Documentation

◆ forNode()

auto ui::UIBinds::forNode ( const toast::Node * node) -> UIBinds *
staticnodiscard
Returns
the binds owning node
Here is the caller graph for this function:

◆ get()

auto ui::UIBinds::get ( std::string_view name) const -> Rml::Variant
nodiscard
Returns
the current value of name
Here is the caller graph for this function:

◆ has()

auto ui::UIBinds::has ( std::string_view name) const -> bool
nodiscard
Returns
true if name is one of this panel's bound values
Here is the caller graph for this function:

The documentation for this class was generated from the following files:
  • engine/src/toast/ui/ui_binds.hpp
  • engine/src/toast/ui/ui_binds.cpp