mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
39 lines
2.6 KiB
C#
39 lines
2.6 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3617">imgui_internal.h:3617</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9964">imgui.cpp:9964</see>
|
|
/// <br/><c>ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Shortcut Testing & Routing
|
|
/// - Set Shortcut() and SetNextItemShortcut() in imgui.h
|
|
/// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(),
|
|
/// allowing the system to decide where to route the input among other route-aware calls.
|
|
/// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check)
|
|
/// - When using one of the routing option:
|
|
/// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.)
|
|
/// - Routes are requested given a chord (key + modifiers) and a routing policy.
|
|
/// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame.
|
|
/// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window).
|
|
/// - Multiple read sites may use the same owner id can all access the granted route.
|
|
/// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location.
|
|
/// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute()
|
|
/// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImGuiKeyRoutingData* GetShortcutRoutingData_internal(ImGuiKeyChord key_chord);
|
|
}
|
|
}
|