MCPcopy Create free account
hub / github.com/Raais/ImStudio / DrawGrid

Method DrawGrid

src/utils/ims_utils.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void utils::DrawGrid()
66{
67 for (float i = ImGui::GetWindowPos().y; i < ImGui::GetWindowSize().x * 4.0f;)
68 {
69 ImGui::GetWindowDrawList()->AddLine(ImVec2(0.0f, i),ImVec2(ImGui::GetMainViewport()->Size.x, i),IM_COL32(88, 88, 88, 50));
70 i += 25.0f;
71 }
72 for (float i = ImGui::GetWindowPos().x; i < ImGui::GetWindowSize().y * 4.0f;)
73 {
74 ImGui::GetWindowDrawList()->AddLine(ImVec2(i, 0.0f),ImVec2(i, ImGui::GetMainViewport()->Size.y),IM_COL32(88, 88, 88, 50));
75 i += 25.0f;
76 }
77}
78
79void utils::ShowStyleEditorWindow(bool *child_sty)
80{

Callers

nothing calls this directly

Calls 2

ImVec2Function · 0.85
AddLineMethod · 0.80

Tested by

no test coverage detected