//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi.Internal
{
public static partial class ImGuiWindowExtensions
{
///
///
/// C++:
/// imgui_internal.h:2924
/// ,
/// imgui.cpp:9542
///
ImGuiID GetID(const char* str, const char* str_end = NULL)
///
///
public static unsafe ImGuiID GetID(this ImGuiWindowPtr target, ImString str)
{
fixed (byte* str_fixed = str)
{
return PInvoke.ImGuiWindow_GetID_internal_0(target, str_fixed, str_fixed + str.Length);
}
}
///
///
/// C++:
/// imgui_internal.h:2925
/// ,
/// imgui.cpp:9554
///
ImGuiID GetID(const void* ptr)
///
///
public static unsafe ImGuiID GetID(this ImGuiWindowPtr target, Ptr ptr) =>
PInvoke.ImGuiWindow_GetID_internal_1(target, ptr);
///
///
/// C++:
/// imgui_internal.h:2926
/// ,
/// imgui.cpp:9566
///
ImGuiID GetID(int n)
///
///
public static unsafe ImGuiID GetID(this ImGuiWindowPtr target, int n) =>
PInvoke.ImGuiWindow_GetID_internal_2(target, n);
///
///
/// C++:
/// imgui_internal.h:2927
/// ,
/// imgui.cpp:9580
///
ImGuiID GetIDFromPos(const ImVec2& p_abs)
///
///
///
///
/// This is only used in rare/specific situations to manufacture an ID out of nowhere.
/// FIXME: Consider instead storing last non-zero ID + count of successive zero-ID, and combine those?
///
///
public static unsafe ImGuiID GetIDFromPos(this ImGuiWindowPtr target, in float2 pAbs)
{
fixed (float2* pAbs_fixed = &pAbs)
{
return PInvoke.ImGuiWindow_GetIDFromPos_internal(target, pAbs_fixed);
}
}
///
///
/// C++:
/// imgui_internal.h:2928
/// ,
/// imgui.cpp:9589
///
ImGuiID GetIDFromRectangle(const ImRect& r_abs)
///
///
///
///
/// "
///
///
public static unsafe ImGuiID GetIDFromRectangle(this ImGuiWindowPtr target, in floatRect rAbs)
{
fixed (floatRect* rAbs_fixed = &rAbs)
{
return PInvoke.ImGuiWindow_GetIDFromRectangle_internal(target, rAbs_fixed);
}
}
///
///
/// C++:
/// imgui_internal.h:2931
///
ImRect Rect() const
///
///
///
///
/// We don't use g.FontSize because the window may be != g.CurrentWindow.
///
///
public static unsafe floatRect Rect(this ImGuiWindowPtr target) => PInvoke.ImGuiWindow_Rect_internal(target);
///
///
/// C++:
/// imgui_internal.h:2932
///
ImRect TitleBarRect() const
///
///
///
///
/// We don't use g.FontSize because the window may be != g.CurrentWindow.
///
///
public static unsafe floatRect TitleBarRect(this ImGuiWindowPtr target) =>
PInvoke.ImGuiWindow_TitleBarRect_internal(target);
///
///
/// C++:
/// imgui_internal.h:2933
///
ImRect MenuBarRect() const
///
///
///
///
/// We don't use g.FontSize because the window may be != g.CurrentWindow.
///
///
public static unsafe floatRect MenuBarRect(this ImGuiWindowPtr target) =>
PInvoke.ImGuiWindow_MenuBarRect_internal(target);
}
}