MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GetMouseCursor

Method GetMouseCursor

include/imgui/imgui.cpp:10118–10122  ·  view source on GitHub ↗

Get desired mouse cursor shape. Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), updated during the frame, and locked in EndFrame()/Render(). If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you

Source from the content-addressed store, hash-verified

10116// updated during the frame, and locked in EndFrame()/Render().
10117// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you
10118ImGuiMouseCursor ImGui::GetMouseCursor()
10119{
10120 ImGuiContext& g = *GImGui;
10121 return g.MouseCursor;
10122}
10123
10124// We intentionally accept values of ImGuiMouseCursor that are outside our bounds, in case users needs to hack-in a custom cursor value.
10125// Custom cursors may be handled by custom backends. If you are using a standard backend and want to hack in a custom cursor, you may

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected