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

Method edit_gui

src/DrawingProgram/Tools/EditTools/MeshEditTool.cpp:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31{}
32
33void MeshEditTool::edit_gui(Toolbar& t) {
34 using namespace GUIStuff;
35 using namespace ElementHelpers;
36
37 auto& a = static_cast<MeshCanvasComponent&>(comp->obj->get_comp());
38 auto& gui = drawP.world.main.g.gui;
39 auto commit_update_func = [&] { commitUpdate = true; };
40
41 gui.new_id("edit tool mesh", [&] {
42 text_label_centered(gui, "Edit Mesh");
43 left_to_right_line_layout(gui, [&]() {
44 t.color_button_right("Mesh Color", &a.d.color, { .onChange = commit_update_func });
45 text_label(gui, "Mesh Color");
46 });
47 });
48}
49
50void MeshEditTool::gui_phone_toolbox(PhoneDrawingProgramScreen& t) {
51 using namespace GUIStuff;

Callers 1

gui_toolboxMethod · 0.45

Calls 5

text_label_centeredFunction · 0.85
text_labelFunction · 0.85
new_idMethod · 0.80
color_button_rightMethod · 0.80

Tested by

no test coverage detected