Class GlyphSelectPopup
A popup window that displays the glyphs of a font.
Implements
Inherited Members
Namespace: SadConsole.UI.Windows
Assembly: SadConsole.Extended.dll
Syntax
public class GlyphSelectPopup : Window, IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, IPositionable, IComponentHost, ISurface, ISurfaceSettable, IWindowData
Constructors
GlyphSelectPopup(int, int, IFont, Point)
Creates a new instance of this popup with the specified width, height, font, and font size.
Declaration
public GlyphSelectPopup(int width, int height, IFont font, Point fontSize)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the window. |
int | height | The height of the window. |
IFont | font | The font to use for the window and character picker. |
Point | fontSize | The font size of the window. |
Methods
AddRootComponent(Keys)
Adds a root component to SadConsole that displays the popup window when the specified key is pressed.
Declaration
public static void AddRootComponent(Keys key)
Parameters
Type | Name | Description |
---|---|---|
Keys | key | The key to display the popup with. |
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.
Declaration
public static void AddRootComponent(Keys key, IFont font, Point fontSize)
Parameters
Type | Name | Description |
---|---|---|
Keys | key | The key to display the popup with. |
IFont | font | The font to display. |
Point | fontSize | The size of the font. |
DrawBorder()
Redraws the border, title, and lines.
Declaration
protected override void DrawBorder()
Overrides
Show(IFont, Point)
Shows a modal version of this popup.
Declaration
public static void Show(IFont font, Point fontSize)