MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / mouseInsideItem

Function mouseInsideItem

TheForceEngine/TFE_Editor/editor.cpp:1334–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1332 }
1333
1334 bool mouseInsideItem()
1335 {
1336 ImVec2 mousePos = ImGui::GetMousePos();
1337 ImVec2 minCoord = ImGui::GetItemRectMin();
1338 ImVec2 maxCoord = ImGui::GetItemRectMax();
1339
1340 return mousePos.x >= minCoord.x && mousePos.x < maxCoord.x && mousePos.y >= minCoord.y && mousePos.y < maxCoord.y;
1341 }
1342
1343 void sublist_begin(Sublist& subList, f32 tabSize, f32 itemWidth)
1344 {

Callers 3

infoPanelOutputFunction · 0.85
contextWindowWallAdjoinsFunction · 0.85
updateContextWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected