mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 13:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
43
Brutal.ImGui/Generated/PInvoke/SetNextItemShortcut.gen.cs
Normal file
43
Brutal.ImGui/Generated/PInvoke/SetNextItemShortcut.gen.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public partial class ImGui
|
||||
{
|
||||
public unsafe partial class PInvoke
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1105">imgui.h:1105</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11090">imgui.cpp:11090</see>
|
||||
/// <br/><c>void SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Inputs Utilities: Shortcut Testing & Routing [BETA]
|
||||
/// - ImGuiKeyChord = a ImGuiKey + optional ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super.
|
||||
/// ImGuiKey_C // Accepted by functions taking ImGuiKey or ImGuiKeyChord arguments)
|
||||
/// ImGuiMod_Ctrl | ImGuiKey_C // Accepted by functions taking ImGuiKeyChord arguments)
|
||||
/// only ImGuiMod_XXX values are legal to combine with an ImGuiKey. You CANNOT combine two ImGuiKey values.
|
||||
/// - The general idea is that several callers may register interest in a shortcut, and only one owner gets it.
|
||||
/// Parent -> call Shortcut(Ctrl+S) // When Parent is focused, Parent gets the shortcut.
|
||||
/// Child1 -> call Shortcut(Ctrl+S) // When Child1 is focused, Child1 gets the shortcut (Child1 overrides Parent shortcuts)
|
||||
/// Child2 -> no call // When Child2 is focused, Parent gets the shortcut.
|
||||
/// The whole system is order independent, so if Child1 makes its calls before Parent, results will be identical.
|
||||
/// This is an important property as it facilitate working with foreign code or larger codebase.
|
||||
/// - To understand the difference:
|
||||
/// - IsKeyChordPressed() compares mods and call IsKeyPressed() -> function has no side-effect.
|
||||
/// - Shortcut() submits a route, routes are resolved, if it currently can be routed it calls IsKeyChordPressed() -> function has (desirable) side-effects as it can prevents another call from getting the route.
|
||||
/// - Visualize registered routes in 'Metrics/Debugger->Inputs'.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui")]
|
||||
public static unsafe partial void SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue