GlyphSelectPopup Class
Definition
Section titled “Definition”A popup window that displays the glyphs of a font.
public class GlyphSelectPopup : Window, IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, IPositionable, IComponentHost, ISurface, ISurfaceSettable, ICellSurfaceResize, IWindowDataInheritance object → ScreenObject → ScreenSurface → Console → Window
Implements IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, SadRogue.Primitives.IPositionable, IComponentHost, ISurface, ISurfaceSettable, ICellSurfaceResize, IWindowData
Constructors
Section titled “Constructors”GlyphSelectPopup(int, int, IFont, Point)
Section titled “GlyphSelectPopup(int, int, IFont, Point)”Creates a new instance of this popup with the specified width, height, font, and font size.
public GlyphSelectPopup(int width, int height, IFont font, Point fontSize)Parameters
Section titled “Parameters”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.
Methods
Section titled “Methods”Show(IFont, Point)
Section titled “Show(IFont, Point)”Shows a modal version of this popup.
public static void Show(IFont font, Point fontSize)Parameters
Section titled “Parameters”font IFont
The font to display.
fontSize SadRogue.Primitives.Point
The size of the font.
AddRootComponent(Keys)
Section titled “AddRootComponent(Keys)”Adds a root component to SadConsole that displays the popup window when the specified key is pressed.
public static void AddRootComponent(Keys key)Parameters
Section titled “Parameters”key Keys
The key to display the popup with.
AddRootComponent(Keys, IFont, Point)
Section titled “AddRootComponent(Keys, IFont, Point)”Adds a root component to SadConsole that displays the popup window with a specific font and font size, when the specified key is pressed.
public static void AddRootComponent(Keys key, IFont font, Point fontSize)Parameters
Section titled “Parameters”key Keys
The key to display the popup with.
font IFont
The font to display.
fontSize SadRogue.Primitives.Point
The size of the font.
DrawBorder()
Section titled “DrawBorder()”Redraws the border, title, and lines.
protected override void DrawBorder()