mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
53 lines
3.3 KiB
C#
53 lines
3.3 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>
|
|
/// owner_id needs to be explicit and cannot be 0
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3615">imgui_internal.h:3615</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10076">imgui.cpp:10076</see>
|
|
/// <br/><c>bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id)</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>
|
|
/// <code>
|
|
/// Request a desired route for an input chord (key + mods).
|
|
/// Return true if the route is available this frame.
|
|
/// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state.
|
|
/// (Conceptually this does a "Submit for next frame" + "Test for current frame".
|
|
/// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.)
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 SetShortcutRouting_internal(
|
|
ImGuiKeyChord key_chord,
|
|
ImGuiInputFlags flags,
|
|
ImGuiID owner_id
|
|
);
|
|
}
|
|
}
|