Class SingleFontChooserDialog
A dialog for choosing a font and its size.
Assembly: Dalamud.dll
public sealed class SingleFontChooserDialog : IDisposable
Implements:
System.IDisposable
Properties
Title
Gets or sets the title of this font chooser dialog popup.
public string Title { get; set; }
PreviewText
Gets or sets the preview text. A text too long may be truncated on assignment.
public string PreviewText { get; set; }
ResultTask
Gets the task that resolves upon choosing a font or cancellation.
public Task<SingleFontSpec> ResultTask { get; }
SelectedFont
Gets or sets the selected family and font.
public SingleFontSpec SelectedFont { get; set; }
FontFamilyExcludeFilter
Gets or sets the font family exclusion filter predicate.
public Predicate<IFontFamilyId>? FontFamilyExcludeFilter { get; set; }
IgnorePreviewGlobalScale
Gets or sets a value indicating whether to ignore the global scale on preview text input.
public bool IgnorePreviewGlobalScale { get; set; }
IsModal
Gets or sets a value indicating whether this popup should be modal, blocking everything behind from being interacted.
public bool IsModal { get; set; }
Remarks
If true, then Dalamud.Bindings.ImGui.ImGui.BeginPopupModal(Dalamud.Bindings.ImGui.ImU8String,System.Boolean@,Dalamud.Bindings.ImGui.ImGuiWindowFlags) will be
used. Otherwise, Dalamud.Bindings.ImGui.ImGui.Begin(Dalamud.Bindings.ImGui.ImU8String,System.Boolean@,Dalamud.Bindings.ImGui.ImGuiWindowFlags) will be used.
WindowFlags
Gets or sets the window flags.
public ImGuiWindowFlags WindowFlags { get; set; }
PopupPosition
Gets or sets the popup window position.
public Vector2 PopupPosition { get; set; }
Remarks
<p>Setting the position only works before the first call to Dalamud.Interface.ImGuiFontChooserDialog.SingleFontChooserDialog.Draw().</p>
<p>If any of the coordinates are System.Single.NaN, default position will be used.</p>
<p>The position will be clamped into the work area of the selected monitor.</p>
PopupSize
Gets or sets the popup window size.
public Vector2 PopupSize { get; set; }
Remarks
<p>Setting the size only works before the first call to Dalamud.Interface.ImGuiFontChooserDialog.SingleFontChooserDialog.Draw().</p>
<p>If any of the coordinates are System.Single.NaN, default size will be used.</p>
<p>The size will be clamped into the work area of the selected monitor.</p>
Methods
CreateAuto(UiBuilder)
Creates a new instance of Dalamud.Interface.ImGuiFontChooserDialog.SingleFontChooserDialog that will automatically draw and dispose itself as needed; calling Dalamud.Interface.ImGuiFontChooserDialog.SingleFontChooserDialog.Draw() and Dalamud.Interface.ImGuiFontChooserDialog.SingleFontChooserDialog.Dispose() are handled automatically.
public static SingleFontChooserDialog CreateAuto(UiBuilder uiBuilder)