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

Method color_button

src/python/lfs/py_ui.cpp:2298–2302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2296 }
2297
2298 bool PyUILayout::color_button(const std::string& label, nb::object color,
2299 std::tuple<float, float> size) {
2300 return ImGui::ColorButton(label.c_str(), tuple_to_imvec4(color), 0,
2301 {std::get<0>(size), std::get<1>(size)});
2302 }
2303
2304 // Selection
2305 std::tuple<bool, int> PyUILayout::combo(const std::string& label, int current_idx,

Callers

nothing calls this directly

Calls 2

tuple_to_imvec4Function · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected