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

Method SetMouseCursor

include/imgui/imgui.cpp:10127–10131  ·  view source on GitHub ↗

We intentionally accept values of ImGuiMouseCursor that are outside our bounds, in case users needs to hack-in a custom cursor value. 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 handle it before the backend _NewFrame() call and temporarily set ImGuiConfigFlags_NoMouseCursorChange during the backend _NewFrame() c

Source from the content-addressed store, hash-verified

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
10126// handle it before the backend _NewFrame() call and temporarily set ImGuiConfigFlags_NoMouseCursorChange during the backend _NewFrame() call.
10127void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type)
10128{
10129 ImGuiContext& g = *GImGui;
10130 g.MouseCursor = cursor_type;
10131}
10132
10133static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value)
10134{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected