brutal/Brutal.ImGui/Generated/PInvoke/SetTooltip.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

36 lines
1.5 KiB
C#

// <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>
/// set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call
/// to SetTooltip().
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L831">imgui.h:831</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12503">imgui.cpp:12503</see>
/// <br/><c>void SetTooltip(const char* fmt, ...) IM_FMTARGS(1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Tooltips
/// - Tooltips are windows following the mouse. They do not take focus away.
/// - A tooltip window can contain items of any types.
/// - SetTooltip() is more or less a shortcut for the 'if (BeginTooltip()) { Text(...); EndTooltip(); }' idiom (with a subtlety that it discard any previously submitted tooltip)
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void SetTooltip(byte* fmt);
}
}
}