mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Make ImGuiHelpers.CreateDrawData() internal for now
This commit is contained in:
parent
3fbc24904a
commit
df0bfc18c3
1 changed files with 9 additions and 9 deletions
|
|
@ -234,15 +234,6 @@ public static partial class ImGuiHelpers
|
|||
ImGuiButtonFlags buttonFlags = ImGuiButtonFlags.MouseButtonDefault) =>
|
||||
Service<SeStringRenderer>.Get().CompileAndDrawWrapped(text, style, imGuiId, buttonFlags);
|
||||
|
||||
/// <summary>Creates a draw data that will draw the given SeString onto it.</summary>
|
||||
/// <param name="sss">SeString to render.</param>
|
||||
/// <param name="style">Initial rendering style.</param>
|
||||
/// <returns>A new self-contained draw data.</returns>
|
||||
public static BufferBackedImDrawData CreateDrawData(
|
||||
ReadOnlySpan<byte> sss,
|
||||
scoped in SeStringDrawParams style = default) =>
|
||||
Service<SeStringRenderer>.Get().CreateDrawData(sss, style);
|
||||
|
||||
/// <summary>
|
||||
/// Write unformatted text wrapped.
|
||||
/// </summary>
|
||||
|
|
@ -584,6 +575,15 @@ public static partial class ImGuiHelpers
|
|||
public static unsafe ImFontPtr OrElse(this ImFontPtr self, ImFontPtr other) =>
|
||||
self.IsNull ? other : self;
|
||||
|
||||
/// <summary>Creates a draw data that will draw the given SeString onto it.</summary>
|
||||
/// <param name="sss">SeString to render.</param>
|
||||
/// <param name="style">Initial rendering style.</param>
|
||||
/// <returns>A new self-contained draw data.</returns>
|
||||
internal static BufferBackedImDrawData CreateDrawData(
|
||||
ReadOnlySpan<byte> sss,
|
||||
scoped in SeStringDrawParams style = default) =>
|
||||
Service<SeStringRenderer>.Get().CreateDrawData(sss, style);
|
||||
|
||||
/// <summary>
|
||||
/// Mark 4K page as used, after adding a codepoint to a font.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue