mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
42 lines
2.1 KiB
C#
42 lines
2.1 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#L3426">imgui_internal.h:3426</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12380">imgui.cpp:12380</see>
|
|
/// <br/><c>void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Scrolling
|
|
/// </para>
|
|
/// <code>
|
|
/// Note that a local position will vary depending on initial scroll value,
|
|
/// This is a little bit confusing so bear with us:
|
|
/// - local_pos = (absolution_pos - window->Pos)
|
|
/// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window,
|
|
/// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area.
|
|
/// - They mostly exist because of legacy API.
|
|
/// Following the rules above, when trying to work with scrolling code, consider that:
|
|
/// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect!
|
|
/// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense
|
|
/// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void SetScrollFromPosX_internal(
|
|
ImGuiWindow* window,
|
|
float local_x,
|
|
float center_x_ratio
|
|
);
|
|
}
|
|
}
|