Skip to content

GlyphSelectPopup Class

A popup window that displays the glyphs of a font.

C#
public class GlyphSelectPopup : Window, IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, IPositionable, IComponentHost, ISurface, ISurfaceSettable, ICellSurfaceResize, IWindowData

Inheritance objectScreenObjectScreenSurfaceConsoleWindow

Implements IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, SadRogue.Primitives.IPositionable, IComponentHost, ISurface, ISurfaceSettable, ICellSurfaceResize, IWindowData

Creates a new instance of this popup with the specified width, height, font, and font size.

C#
public GlyphSelectPopup(int width, int height, IFont font, Point fontSize)

width int
The width of the window.

height int
The height of the window.

font IFont
The font to use for the window and character picker.

fontSize SadRogue.Primitives.Point
The font size of the window.

Shows a modal version of this popup.

C#
public static void Show(IFont font, Point fontSize)

font IFont
The font to display.

fontSize SadRogue.Primitives.Point
The size of the font.

Adds a root component to SadConsole that displays the popup window when the specified key is pressed.

C#
public static void AddRootComponent(Keys key)

key Keys
The key to display the popup with.

Adds a root component to SadConsole that displays the popup window with a specific font and font size, when the specified key is pressed.

C#
public static void AddRootComponent(Keys key, IFont font, Point fontSize)

key Keys
The key to display the popup with.

font IFont
The font to display.

fontSize SadRogue.Primitives.Point
The size of the font.

Redraws the border, title, and lines.

C#
protected override void DrawBorder()