mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
945 lines
35 KiB
C#
945 lines
35 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Configuration data when adding a font or merging fonts
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L186">imgui.h:186</see>
|
|
/// <br/><c>struct ImFontConfig</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 152)]
|
|
public unsafe partial struct ImFontConfig
|
|
{
|
|
/// <summary>
|
|
/// <auto> // Name (strictly to ease debugging, hence limited size buffer)
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public fixed byte Name[40];
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // TTF/OTF data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3611">imgui.h:3611</see>
|
|
/// <br/><c>void* FontData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data Source
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public nint FontData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // TTF/OTF data size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3612">imgui.h:3612</see>
|
|
/// <br/><c>int FontDataSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data Source
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(48)]
|
|
public int FontDataSize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3613">imgui.h:3613</see>
|
|
/// <br/><c>bool FontDataOwnedByAtlas</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data Source
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(52)]
|
|
public Bool8 FontDataOwnedByAtlas;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g.
|
|
/// ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different
|
|
/// heights.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3616">imgui.h:3616</see>
|
|
/// <br/><c>bool MergeMode</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(53)]
|
|
public Bool8 MergeMode;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// false // Align every glyph AdvanceX to pixel boundaries. Useful e.g. if you are merging a non-pixel
|
|
/// aligned font with the default font. If enabled, you can set OversampleH/V to 1.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3617">imgui.h:3617</see>
|
|
/// <br/><c>bool PixelSnapH</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(54)]
|
|
public Bool8 PixelSnapH;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// true // Align Scaled GlyphOffset.y to pixel boundaries.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3618">imgui.h:3618</see>
|
|
/// <br/><c>bool PixelSnapV</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(55)]
|
|
public Bool8 PixelSnapV;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 (2) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1 or 2 depending on
|
|
/// size. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save
|
|
/// memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3619">imgui.h:3619</see>
|
|
/// <br/><c>ImS8 OversampleH</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(56)]
|
|
public sbyte OversampleH;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 (1) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1. This is not really
|
|
/// useful as we don't use sub-pixel positions on the Y axis.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3620">imgui.h:3620</see>
|
|
/// <br/><c>ImS8 OversampleV</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(57)]
|
|
public sbyte OversampleV;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Explicitly specify Unicode codepoint of ellipsis character. When fonts are being merged
|
|
/// first specified ellipsis will be used.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3621">imgui.h:3621</see>
|
|
/// <br/><c>ImWchar EllipsisChar</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(60)]
|
|
public uint EllipsisChar;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // Size in pixels for rasterizer (more or less maps to the resulting font height).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3622">imgui.h:3622</see>
|
|
/// <br/><c>float SizePixels</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(64)]
|
|
public float SizePixels;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// NULL // *LEGACY* THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a
|
|
/// user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3623">imgui.h:3623</see>
|
|
/// <br/><c>const ImWchar* GlyphRanges</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(72)]
|
|
public Ptr<uint> GlyphRanges;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// NULL // Pointer to a small user-provided list of Unicode ranges (2 value per range, values are
|
|
/// inclusive, zero-terminated list). This is very close to GlyphRanges[] but designed to exclude ranges
|
|
/// from a font source, when merging fonts with overlapping glyphs. Use "Input Glyphs Overlap Detection
|
|
/// Tool" to find about your overlapping ranges.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3624">imgui.h:3624</see>
|
|
/// <br/><c>const ImWchar* GlyphExcludeRanges</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(80)]
|
|
public Ptr<uint> GlyphExcludeRanges;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0, 0 // Offset (in pixels) all glyphs from this font input. Absolute value for default size, other
|
|
/// sizes will scale this value.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3626">imgui.h:3626</see>
|
|
/// <br/><c>ImVec2 GlyphOffset</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(88)]
|
|
public float2 GlyphOffset;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce
|
|
/// mono-space font. Absolute value for default size, other sizes will scale this value.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3627">imgui.h:3627</see>
|
|
/// <br/><c>float GlyphMinAdvanceX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(96)]
|
|
public float GlyphMinAdvanceX;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// FLT_MAX // Maximum AdvanceX for glyphs
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3628">imgui.h:3628</see>
|
|
/// <br/><c>float GlyphMaxAdvanceX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(100)]
|
|
public float GlyphMaxAdvanceX;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Extra spacing (in pixels) between glyphs. Please contact us if you are using this. //
|
|
/// FIXME-NEWATLAS: Intentionally unscaled
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3629">imgui.h:3629</see>
|
|
/// <br/><c>float GlyphExtraAdvanceX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(104)]
|
|
public float GlyphExtraAdvanceX;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Index of font within TTF/OTF file
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3630">imgui.h:3630</see>
|
|
/// <br/><c>ImU32 FontNo</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(108)]
|
|
public uint FontNo;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if
|
|
/// unsure.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3631">imgui.h:3631</see>
|
|
/// <br/><c>unsigned int FontLoaderFlags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(112)]
|
|
public uint FontLoaderFlags;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may
|
|
/// be a good workaround to make them more readable. This is a silly thing we may remove in the future.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3633">imgui.h:3633</see>
|
|
/// <br/><c>float RasterizerMultiply</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(116)]
|
|
public float RasterizerMultiply;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 1.0f // [LEGACY: this only makes sense when ImGuiBackendFlags_RendererHasTextures is not supported]
|
|
/// DPI scale multiplier for rasterization. Not altering other font metrics: makes it easy to swap between
|
|
/// e.g. a 100% and a 400% fonts for a zooming display, or handle Retina screen. IMPORTANT: If you change
|
|
/// this it is expected that you increase/decrease font scale roughly to the inverse of this, otherwise
|
|
/// quality may look lowered.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3634">imgui.h:3634</see>
|
|
/// <br/><c>float RasterizerDensity</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(120)]
|
|
public float RasterizerDensity;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font flags (don't use just yet, will be exposed in upcoming 1.92.X updates)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3637">imgui.h:3637</see>
|
|
/// <br/><c>ImFontFlags Flags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(124)]
|
|
public ImFontFlags Flags;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Target font (as we merging fonts, multiple ImFontConfig may target the same font)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3638">imgui.h:3638</see>
|
|
/// <br/><c>ImFont* DstFont</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(128)]
|
|
public ImFontPtr DstFont;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Custom font backend for this source (default source is the one stored in ImFontAtlas)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3639">imgui.h:3639</see>
|
|
/// <br/><c>const ImFontLoader* FontLoader</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(136)]
|
|
public Ptr<ImFontLoader> FontLoader;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font loader opaque storage (per font config)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3640">imgui.h:3640</see>
|
|
/// <br/><c>void* FontLoaderData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(144)]
|
|
public nint FontLoaderData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Configuration data when adding a font or merging fonts
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L186">imgui.h:186</see>
|
|
/// <br/><c>struct ImFontConfig</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImFontConfigPtr(ImFontConfig* ptr) : INullable
|
|
{
|
|
private ImFontConfig* _ptr = ptr;
|
|
public ImFontConfig* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImFontConfigPtr(ImFontConfig* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImFontConfig*(ImFontConfigPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <auto> // Name (strictly to ease debugging, hence limited size buffer)
|
|
/// </summary>
|
|
public Span<byte> Name => MemoryMarshal.CreateSpan(ref _ptr->Name[0], 40);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // TTF/OTF data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3611">imgui.h:3611</see>
|
|
/// <br/><c>void* FontData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data Source
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint FontData => ref Unsafe.AsRef<nint>(&_ptr->FontData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // TTF/OTF data size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3612">imgui.h:3612</see>
|
|
/// <br/><c>int FontDataSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data Source
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int FontDataSize => ref Unsafe.AsRef<int>(&_ptr->FontDataSize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3613">imgui.h:3613</see>
|
|
/// <br/><c>bool FontDataOwnedByAtlas</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data Source
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool FontDataOwnedByAtlas => ref Unsafe.AsRef<bool>(&_ptr->FontDataOwnedByAtlas);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g.
|
|
/// ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different
|
|
/// heights.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3616">imgui.h:3616</see>
|
|
/// <br/><c>bool MergeMode</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool MergeMode => ref Unsafe.AsRef<bool>(&_ptr->MergeMode);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// false // Align every glyph AdvanceX to pixel boundaries. Useful e.g. if you are merging a non-pixel
|
|
/// aligned font with the default font. If enabled, you can set OversampleH/V to 1.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3617">imgui.h:3617</see>
|
|
/// <br/><c>bool PixelSnapH</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool PixelSnapH => ref Unsafe.AsRef<bool>(&_ptr->PixelSnapH);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// true // Align Scaled GlyphOffset.y to pixel boundaries.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3618">imgui.h:3618</see>
|
|
/// <br/><c>bool PixelSnapV</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool PixelSnapV => ref Unsafe.AsRef<bool>(&_ptr->PixelSnapV);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 (2) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1 or 2 depending on
|
|
/// size. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save
|
|
/// memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3619">imgui.h:3619</see>
|
|
/// <br/><c>ImS8 OversampleH</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref sbyte OversampleH => ref Unsafe.AsRef<sbyte>(&_ptr->OversampleH);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 (1) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1. This is not really
|
|
/// useful as we don't use sub-pixel positions on the Y axis.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3620">imgui.h:3620</see>
|
|
/// <br/><c>ImS8 OversampleV</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref sbyte OversampleV => ref Unsafe.AsRef<sbyte>(&_ptr->OversampleV);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Explicitly specify Unicode codepoint of ellipsis character. When fonts are being merged
|
|
/// first specified ellipsis will be used.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3621">imgui.h:3621</see>
|
|
/// <br/><c>ImWchar EllipsisChar</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref uint EllipsisChar => ref Unsafe.AsRef<uint>(&_ptr->EllipsisChar);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // Size in pixels for rasterizer (more or less maps to the resulting font height).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3622">imgui.h:3622</see>
|
|
/// <br/><c>float SizePixels</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float SizePixels => ref Unsafe.AsRef<float>(&_ptr->SizePixels);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// NULL // *LEGACY* THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a
|
|
/// user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3623">imgui.h:3623</see>
|
|
/// <br/><c>const ImWchar* GlyphRanges</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref Ptr<uint> GlyphRanges => ref Unsafe.AsRef<Ptr<uint>>(&_ptr->GlyphRanges);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// NULL // Pointer to a small user-provided list of Unicode ranges (2 value per range, values are
|
|
/// inclusive, zero-terminated list). This is very close to GlyphRanges[] but designed to exclude ranges
|
|
/// from a font source, when merging fonts with overlapping glyphs. Use "Input Glyphs Overlap Detection
|
|
/// Tool" to find about your overlapping ranges.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3624">imgui.h:3624</see>
|
|
/// <br/><c>const ImWchar* GlyphExcludeRanges</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref Ptr<uint> GlyphExcludeRanges => ref Unsafe.AsRef<Ptr<uint>>(&_ptr->GlyphExcludeRanges);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0, 0 // Offset (in pixels) all glyphs from this font input. Absolute value for default size, other
|
|
/// sizes will scale this value.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3626">imgui.h:3626</see>
|
|
/// <br/><c>ImVec2 GlyphOffset</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float2 GlyphOffset => ref Unsafe.AsRef<float2>(&_ptr->GlyphOffset);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce
|
|
/// mono-space font. Absolute value for default size, other sizes will scale this value.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3627">imgui.h:3627</see>
|
|
/// <br/><c>float GlyphMinAdvanceX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float GlyphMinAdvanceX => ref Unsafe.AsRef<float>(&_ptr->GlyphMinAdvanceX);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// FLT_MAX // Maximum AdvanceX for glyphs
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3628">imgui.h:3628</see>
|
|
/// <br/><c>float GlyphMaxAdvanceX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float GlyphMaxAdvanceX => ref Unsafe.AsRef<float>(&_ptr->GlyphMaxAdvanceX);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Extra spacing (in pixels) between glyphs. Please contact us if you are using this. //
|
|
/// FIXME-NEWATLAS: Intentionally unscaled
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3629">imgui.h:3629</see>
|
|
/// <br/><c>float GlyphExtraAdvanceX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float GlyphExtraAdvanceX => ref Unsafe.AsRef<float>(&_ptr->GlyphExtraAdvanceX);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Index of font within TTF/OTF file
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3630">imgui.h:3630</see>
|
|
/// <br/><c>ImU32 FontNo</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref uint FontNo => ref Unsafe.AsRef<uint>(&_ptr->FontNo);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if
|
|
/// unsure.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3631">imgui.h:3631</see>
|
|
/// <br/><c>unsigned int FontLoaderFlags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref uint FontLoaderFlags => ref Unsafe.AsRef<uint>(&_ptr->FontLoaderFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may
|
|
/// be a good workaround to make them more readable. This is a silly thing we may remove in the future.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3633">imgui.h:3633</see>
|
|
/// <br/><c>float RasterizerMultiply</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float RasterizerMultiply => ref Unsafe.AsRef<float>(&_ptr->RasterizerMultiply);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 1.0f // [LEGACY: this only makes sense when ImGuiBackendFlags_RendererHasTextures is not supported]
|
|
/// DPI scale multiplier for rasterization. Not altering other font metrics: makes it easy to swap between
|
|
/// e.g. a 100% and a 400% fonts for a zooming display, or handle Retina screen. IMPORTANT: If you change
|
|
/// this it is expected that you increase/decrease font scale roughly to the inverse of this, otherwise
|
|
/// quality may look lowered.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3634">imgui.h:3634</see>
|
|
/// <br/><c>float RasterizerDensity</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Options
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float RasterizerDensity => ref Unsafe.AsRef<float>(&_ptr->RasterizerDensity);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font flags (don't use just yet, will be exposed in upcoming 1.92.X updates)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3637">imgui.h:3637</see>
|
|
/// <br/><c>ImFontFlags Flags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImFontFlags Flags => ref Unsafe.AsRef<ImFontFlags>(&_ptr->Flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Target font (as we merging fonts, multiple ImFontConfig may target the same font)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3638">imgui.h:3638</see>
|
|
/// <br/><c>ImFont* DstFont</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImFontPtr DstFont => ref Unsafe.AsRef<ImFontPtr>(&_ptr->DstFont);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Custom font backend for this source (default source is the one stored in ImFontAtlas)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3639">imgui.h:3639</see>
|
|
/// <br/><c>const ImFontLoader* FontLoader</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref Ptr<ImFontLoader> FontLoader => ref Unsafe.AsRef<Ptr<ImFontLoader>>(&_ptr->FontLoader);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font loader opaque storage (per font config)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3640">imgui.h:3640</see>
|
|
/// <br/><c>void* FontLoaderData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint FontLoaderData => ref Unsafe.AsRef<nint>(&_ptr->FontLoaderData);
|
|
}
|
|
}
|