MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / button_callback

Method button_callback

src/python/lfs/rml_im_mode_layout.cpp:551–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 }
550
551 bool RmlImModeLayout::button_callback(const std::string& label, nb::object callback,
552 std::tuple<float, float> size) {
553 bool clicked = button(label, size);
554 if (clicked && !callback.is_none()) {
555 try {
556 callback();
557 } catch (const std::exception& e) {
558 LOG_ERROR("button_callback error: {}", e.what());
559 }
560 }
561 return clicked;
562 }
563
564 bool RmlImModeLayout::small_button(const std::string& label) {
565 if (!doc_)

Callers

nothing calls this directly

Calls 2

buttonFunction · 0.85
whatMethod · 0.45

Tested by

no test coverage detected