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

Method highlight

src/sources/ims_object.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void ImStudio::BaseObject::highlight(int *select)
35{
36 if (id == *select)
37 {
38 ImRect itemrect = ImRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax());
39 itemrect.Min.x -= 5;
40 itemrect.Min.y -= 5;
41 itemrect.Max.x += 5;
42 itemrect.Max.y += 5;
43 ImGui::GetForegroundDrawList()->AddRect(itemrect.Min, itemrect.Max, IM_COL32(255, 255, 0, 255));
44 }
45}
46
47void ImStudio::ContainerChild::drawall(int *select, bool staticlayout)
48{

Callers

nothing calls this directly

Calls 3

GetForegroundDrawListFunction · 0.85
AddRectMethod · 0.80
ImRectFunction · 0.50

Tested by

no test coverage detected