//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi.Internal
{
public unsafe partial class PInvoke
{
///
///
/// C++:
/// imgui_internal.h:3860
/// ,
/// imgui_widgets.cpp:541
///
/// bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0)
///
///
///
///
/// Widgets low-level behaviors
///
///
/// - 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()
///
///
[LibraryImport("imgui")]
public static unsafe partial Bool8 ButtonBehavior_internal(
floatRect* bb,
ImGuiID id,
Bool8* out_hovered,
Bool8* out_held,
ImGuiButtonFlags flags
);
}
}