ColorPickerPopup Class
Definition
Section titled “Definition”A window that allows a user to select a color in various ways.
public class ColorPickerPopup : 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”ColorPickerPopup()
Section titled “ColorPickerPopup()”Creates a new instance of the window.
public ColorPickerPopup()Properties
Section titled “Properties”SelectedColor
Section titled “SelectedColor”The color selected.
public Color SelectedColor { get; set; }PreviousColors
Section titled “PreviousColors”An array of colors previously selected.
public Color[] PreviousColors { get; }Methods
Section titled “Methods”DrawBorder()
Section titled “DrawBorder()”Draws the border lines around the controls.
protected override void DrawBorder()AddPreviousColor(Color)
Section titled “AddPreviousColor(Color)”Adds a color to the array of previous colors.
public void AddPreviousColor(Color color)Parameters
Section titled “Parameters”color SadRogue.Primitives.Color
Show(bool)
Section titled “Show(bool)”Displays this window.
public override void Show(bool modal)Parameters
Section titled “Parameters”modal bool
When true, the window will be displayed as modal; otherwise false.