MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ on_change()

TextField & MayaFlux::Portal::Forma::TextField::on_change ( std::function< void(const std::string &)> fn)
inline

Call fn with the new text after every edit, before it is drawn.

Definition at line 176 of file TextField.hpp.

177 {
178 behavior->on_change = std::move(fn);
179 return *this;
180 }
std::shared_ptr< TextFieldBehavior > behavior
Shared with every copy of this field and with the handlers wired by place().

References behavior.

Referenced by MayaFlux::Portal::Forma::internal::ask_in().

Here is the caller graph for this function: