Searched refs:canvas_size (Results 1 - 1 of 1) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui_demo.cpp4007 ImVec2 canvas_size = ImGui::GetContentRegionAvail(); // Resize canvas to what's available local in function:ShowExampleAppCustomRendering
4008 if (canvas_size.x < 50.0f) canvas_size.x = 50.0f;
4009 if (canvas_size.y < 50.0f) canvas_size.y = 50.0f;
4010 draw_list->AddRectFilledMultiColor(canvas_pos, ImVec2(canvas_pos.x + canvas_size.x, canvas_pos.y + canvas_size.y), IM_COL32(50, 50, 50, 255), IM_COL32(50, 50, 60, 255), IM_COL32(60, 60, 70, 255), IM_COL32(50, 50, 60, 255));
4011 draw_list->AddRect(canvas_pos, ImVec2(canvas_pos.x + canvas_size.x, canvas_pos.y + canvas_size.y), IM_COL32(255, 255, 255, 255));
4014 ImGui::InvisibleButton("canvas", canvas_size);
[all...]

Completed in 8 milliseconds