mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
43 lines
2.2 KiB
C#
43 lines
2.2 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#L3860">imgui_internal.h:3860</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L541">imgui_widgets.cpp:541</see>
|
|
/// <br/>
|
|
/// <c>bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets low-level behaviors
|
|
/// </para>
|
|
/// <code>
|
|
/// - FIXME: For refactor we could output flags, incl mouse hovered vs nav keyboard vs nav triggered etc.
|
|
/// And better standardize how widgets use 'GetColor32((held && hovered) ? ... : hovered ? ...)' vs 'GetColor32(held ? ... : hovered ? ...);'
|
|
/// For mouse feedback we typically prefer the 'held && hovered' test, but for nav feedback not always. Outputting hovered=true on Activation may be misleading.
|
|
/// - Since v1.91.2 (Sept 2024) we included io.ConfigDebugHighlightIdConflicts feature.
|
|
/// One idiom which was previously valid which will now emit a warning is when using multiple overlaid ButtonBehavior()
|
|
/// with same ID and different MouseButton (see #8030). You can fix it by:
|
|
/// (1) switching to use a single ButtonBehavior() with multiple _MouseButton flags.
|
|
/// or (2) surrounding those calls with PushItemFlag(ImGuiItemFlags_AllowDuplicateId, true); ... PopItemFlag()
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 ButtonBehavior_internal(
|
|
floatRect* bb,
|
|
ImGuiID id,
|
|
Bool8* out_hovered,
|
|
Bool8* out_held,
|
|
ImGuiButtonFlags flags
|
|
);
|
|
}
|
|
}
|