MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / update_data

Method update_data

src/GUIStuff/Elements/TextBox.impl.hpp:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281template <typename T> bool TextBox<T>::update_data() {
282 std::optional<T> dataToAssign = userInfo.fromStr(textbox->get_string());
283 if(dataToAssign.has_value()) {
284 *userInfo.data = dataToAssign.value();
285 oldData = dataToAssign;
286 return true;
287 }
288 return false;
289}
290
291template <typename T> TextBox<T>::~TextBox() {
292 if(is_selected())

Callers

nothing calls this directly

Calls 2

get_stringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected