Show / Hide Table of Contents

Class ControlsConsole

A basic console that can contain controls.

Inheritance
object
ScreenObject
ScreenSurface
Console
ControlsConsole
Implements
IDisposable
IScreenSurfaceEditable
IScreenSurface
IScreenObject
IPositionable
IComponentHost
ISurface
ISurfaceSettable
Inherited Members
Console.OnVisibleChanged()
Console.OnFocusLost()
Console.OnFocused()
Console.Cursor
Console.AutoCursorOnFocus
ScreenSurface.IsMouseOver
ScreenSurface.Resize(int, int, int, int, bool)
ScreenSurface.Resize(int, int, bool)
ScreenSurface.UpdateAbsolutePosition()
ScreenSurface.Render(TimeSpan)
ScreenSurface.Update(TimeSpan)
ScreenSurface.OnIsDirtyChanged()
ScreenSurface.OnFontChanged(IFont, Point)
ScreenSurface.OnSurfaceChanged(ICellSurface)
ScreenSurface.OnRendererChanged()
ScreenSurface.CallOnHostUpdated()
ScreenSurface.Dispose(bool)
ScreenSurface.Dispose()
ScreenSurface.OnMouseEnter(MouseScreenObjectState)
ScreenSurface.OnMouseExit(MouseScreenObjectState)
ScreenSurface.OnMouseMove(MouseScreenObjectState)
ScreenSurface.OnMouseLeftClicked(MouseScreenObjectState)
ScreenSurface.OnRightMouseClicked(MouseScreenObjectState)
ScreenSurface.LostMouse(MouseScreenObjectState)
ScreenSurface.ProcessMouse(MouseScreenObjectState)
ScreenSurface.ForceRendererRefresh
ScreenSurface.DefaultRendererName
ScreenSurface.Renderer
ScreenSurface.QuietSurfaceHandling
ScreenSurface.Surface
ScreenSurface.IsDirty
ScreenSurface.Font
ScreenSurface.FontSize
ScreenSurface.Tint
ScreenSurface.AbsoluteArea
ScreenSurface.UsePixelPositioning
ScreenSurface.WidthPixels
ScreenSurface.HeightPixels
ScreenSurface.Width
ScreenSurface.Height
ScreenSurface.ViewWidth
ScreenSurface.ViewHeight
ScreenSurface.ViewPosition
ScreenSurface.MoveToFrontOnMouseClick
ScreenSurface.FocusOnMouseClick
ScreenSurface.MouseButtonClicked
ScreenSurface.MouseMove
ScreenSurface.MouseExit
ScreenSurface.MouseEnter
ScreenObject.ComponentsUpdate
ScreenObject.ComponentsRender
ScreenObject.ComponentsMouse
ScreenObject.ComponentsKeyboard
ScreenObject.ComponentsEmpty
ScreenObject.ProcessKeyboard(Keyboard)
ScreenObject.OnParentChanged(IScreenObject, IScreenObject)
ScreenObject.OnPositionChanging(Point, Point)
ScreenObject.OnPositionChanged(Point, Point)
ScreenObject.OnEnabledChanged()
ScreenObject.GetSadComponents<TComponent>()
ScreenObject.GetSadComponent<TComponent>()
ScreenObject.HasSadComponent<TComponent>(out TComponent)
ScreenObject.OnSadComponentAdded(IComponent)
ScreenObject.OnSadComponentRemoved(IComponent)
ScreenObject.SortComponents()
ScreenObject.Components_FilterAddItem(IComponent, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>)
ScreenObject.Components_FilterRemoveItem(IComponent, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>)
ScreenObject.Components_Sort(List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>)
ScreenObject.OnSerializingMethod(StreamingContext)
ScreenObject.SortOrder
ScreenObject.Children
ScreenObject.Parent
ScreenObject.Position
ScreenObject.AbsolutePosition
ScreenObject.IgnoreParentPosition
ScreenObject.IsVisible
ScreenObject.IsEnabled
ScreenObject.IsFocused
ScreenObject.FocusedMode
ScreenObject.IsExclusiveMouse
ScreenObject.UseKeyboard
ScreenObject.UseMouse
ScreenObject.SadComponents
ScreenObject.ParentChanged
ScreenObject.PositionChanged
ScreenObject.PositionChanging
ScreenObject.IsVisibleChanged
ScreenObject.IsEnabledChanged
ScreenObject.FocusLost
ScreenObject.Focused
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.UI
Assembly: SadConsole.dll
Syntax
[DataContract]
public class ControlsConsole : Console, IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, IPositionable, IComponentHost, ISurface, ISurfaceSettable

Constructors

ControlsConsole(ICellSurface, IFont?, Point?)

Creates a new console using the existing surface.

Declaration
public ControlsConsole(ICellSurface surface, IFont? font = null, Point? fontSize = null)
Parameters
Type Name Description
ICellSurface surface

The surface.

IFont font

The font to use with the surface.

Point? fontSize

The font size.

ControlsConsole(int, int)

Creates a new console.

Declaration
public ControlsConsole(int width, int height)
Parameters
Type Name Description
int width

The width in cells of the surface.

int height

The height in cells of the surface.

ControlsConsole(int, int, ColoredGlyphBase[])

Creates a new screen object that can render a surface. Uses the specified cells to generate the surface.

Declaration
public ControlsConsole(int width, int height, ColoredGlyphBase[] initialCells)
Parameters
Type Name Description
int width

The width in cells of the surface.

int height

The height in cells of the surface.

ColoredGlyphBase[] initialCells

The initial cells to seed the surface.

ControlsConsole(int, int, int, int)

Creates a new console with the specified width and height, with Transparent for the background and White for the foreground.

Declaration
public ControlsConsole(int width, int height, int bufferWidth, int bufferHeight)
Parameters
Type Name Description
int width

The visible width of the console in cells.

int height

The visible height of the console in cells.

int bufferWidth

The total width of the console in cells.

int bufferHeight

The total height of the console in cells.

ControlsConsole(int, int, int, int, ColoredGlyphBase[]?)

Creates a console with the specified width and height, with Transparent for the background and White for the foreground.

Declaration
public ControlsConsole(int width, int height, int bufferWidth, int bufferHeight, ColoredGlyphBase[]? initialCells)
Parameters
Type Name Description
int width

The width of the console in cells.

int height

The height of the console in cells.

int bufferWidth

The total width of the console in cells.

int bufferHeight

The total height of the console in cells.

ColoredGlyphBase[] initialCells

The cells to seed the console with. If null, creates the cells for you.

Properties

Controls

The controls host holding all the controls.

Declaration
public ControlHost Controls { get; }
Property Value
Type Description
ControlHost

Methods

ToString()

Returns the value "Console (Controls)".

Declaration
public override string ToString()
Returns
Type Description
string

The string "Console (Controls)".

Overrides
Console.ToString()

Implements

IDisposable
IScreenSurfaceEditable
IScreenSurface
IScreenObject
IPositionable
IComponentHost
ISurface
ISurfaceSettable

Extension Methods

Keyboard.RemoveKeyboardHook(IScreenObject, Func<IScreenObject, Keyboard, bool>)
Keyboard.RemoveKeyboardHooks(IScreenObject)
Keyboard.WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>)
Mouse.RemoveMouseHook(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>)
Mouse.RemoveMouseHooks(IScreenObject)
Mouse.WithMouse(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>)
Update.RemoveUpdateHook(IScreenObject, Action<IScreenObject, TimeSpan>)
Update.RemoveUpdateHooks(IScreenObject)
Update.WithUpdate(IScreenObject, Action<IScreenObject, TimeSpan>)
CellSurfaceEditor.AddDecorator(ISurface, Point, params CellDecorator[])
CellSurfaceEditor.AddDecorator(ISurface, int, params CellDecorator[]?)
CellSurfaceEditor.AddDecorator(ISurface, int, int, params CellDecorator[])
CellSurfaceEditor.AddDecorator(ISurface, int, int, int, params CellDecorator[])
CellSurfaceEditor.Clear(ISurface)
CellSurfaceEditor.Clear(ISurface, Rectangle)
CellSurfaceEditor.Clear(ISurface, IEnumerable<Point>)
CellSurfaceEditor.Clear(ISurface, int, int)
CellSurfaceEditor.Clear(ISurface, int, int, int)
CellSurfaceEditor.ClearDecorators(ISurface, int, int)
CellSurfaceEditor.ClearDecorators(ISurface, int, int, int)
CellSurfaceEditor.ClearShiftValues(ISurface)
CellSurfaceEditor.ConnectLines(ISurface)
CellSurfaceEditor.ConnectLines(ISurface, int[])
CellSurfaceEditor.ConnectLines(ISurface, int[], Rectangle)
CellSurfaceEditor.Copy(ISurface, ICellSurface)
CellSurfaceEditor.Copy(ISurface, ICellSurface, int, int)
CellSurfaceEditor.Copy(ISurface, Rectangle, ICellSurface, int, int)
CellSurfaceEditor.Copy(ISurface, int, int, int, int, ICellSurface, int, int)
CellSurfaceEditor.DrawBox(ISurface, Rectangle, ShapeParameters)
CellSurfaceEditor.DrawCircle(ISurface, Rectangle, ShapeParameters)
CellSurfaceEditor.DrawLine(ISurface, Point, Point, int?, Color?, Color?, Mirror?)
CellSurfaceEditor.Erase(ISurface)
CellSurfaceEditor.Erase(ISurface, int, int)
CellSurfaceEditor.Erase(ISurface, int, int, int)
CellSurfaceEditor.Fill(ISurface, ColoredGlyphBase)
CellSurfaceEditor.Fill(ISurface, Rectangle, Color?, Color?, int?, Mirror?)
CellSurfaceEditor.Fill(ISurface, int, int, int, Color?, Color?, int?, Mirror?)
CellSurfaceEditor.Fill(ISurface, Color?, Color?, int?, Mirror?)
CellSurfaceEditor.FillWithRandomGarbage(ISurface, IFont)
CellSurfaceEditor.FillWithRandomGarbage(ISurface, int)
CellSurfaceEditor.FillWithRandomGarbage(ISurface, int, Rectangle)
CellSurfaceEditor.GetBackground(ISurface, int, int)
CellSurfaceEditor.GetCellAppearance(ISurface, int, int)
CellSurfaceEditor.GetCells(ISurface, Rectangle)
CellSurfaceEditor.GetEffect(ISurface, int)
CellSurfaceEditor.GetEffect(ISurface, int, int)
CellSurfaceEditor.GetForeground(ISurface, int, int)
CellSurfaceEditor.GetGlyph(ISurface, int, int)
CellSurfaceEditor.GetMirror(ISurface, int, int)
CellSurfaceEditor.GetString(ISurface, int, int)
CellSurfaceEditor.GetString(ISurface, int, int, int)
CellSurfaceEditor.GetStringColored(ISurface, int, int)
CellSurfaceEditor.GetStringColored(ISurface, int, int, int)
CellSurfaceEditor.GetSubSurface(ISurface)
CellSurfaceEditor.GetSubSurface(ISurface, Rectangle)
CellSurfaceEditor.IsValidCell(ISurface, int)
CellSurfaceEditor.IsValidCell(ISurface, int, int)
CellSurfaceEditor.IsValidCell(ISurface, int, int, out int)
CellSurfaceEditor.Print(ISurface, int, int, ColoredGlyphBase[])
CellSurfaceEditor.Print(ISurface, int, int, ColoredString)
CellSurfaceEditor.Print(ISurface, int, int, IEnumerable<ColoredGlyphBase>)
CellSurfaceEditor.Print(ISurface, int, int, string)
CellSurfaceEditor.Print(ISurface, int, int, string, ColoredGlyphBase, ICellEffect?)
CellSurfaceEditor.Print(ISurface, int, int, string, Mirror)
CellSurfaceEditor.Print(ISurface, int, int, string, Color)
CellSurfaceEditor.Print(ISurface, int, int, string, Color, Color)
CellSurfaceEditor.Print(ISurface, int, int, string, Color, Color, Mirror)
CellSurfaceEditor.Print(ISurface, int, int, string, Color, Color, Mirror, CellDecorator[])
CellSurfaceEditor.RemoveDecorator(ISurface, Point, params CellDecorator[])
CellSurfaceEditor.RemoveDecorator(ISurface, int, params CellDecorator[])
CellSurfaceEditor.RemoveDecorator(ISurface, int, int, params CellDecorator[])
CellSurfaceEditor.RemoveDecorator(ISurface, int, int, int, params CellDecorator[])
CellSurfaceEditor.SetBackground(ISurface, int, int, Color)
CellSurfaceEditor.SetCellAppearance(ISurface, int, int, ColoredGlyphBase)
CellSurfaceEditor.SetDecorator(ISurface, Point, params CellDecorator[]?)
CellSurfaceEditor.SetDecorator(ISurface, int, params CellDecorator[]?)
CellSurfaceEditor.SetDecorator(ISurface, int, int, params CellDecorator[]?)
CellSurfaceEditor.SetDecorator(ISurface, int, int, int, params CellDecorator[]?)
CellSurfaceEditor.SetEffect(ISurface, ColoredGlyphBase, ICellEffect?)
CellSurfaceEditor.SetEffect(ISurface, IEnumerable<ColoredGlyphBase>, ICellEffect?)
CellSurfaceEditor.SetEffect(ISurface, IEnumerable<Point>, ICellEffect?)
CellSurfaceEditor.SetEffect(ISurface, IEnumerable<int>, ICellEffect?)
CellSurfaceEditor.SetEffect(ISurface, int, ICellEffect?)
CellSurfaceEditor.SetEffect(ISurface, int, int, ICellEffect?)
CellSurfaceEditor.SetForeground(ISurface, int, int, Color)
CellSurfaceEditor.SetGlyph(ISurface, int, int, int)
CellSurfaceEditor.SetGlyph(ISurface, int, int, int, Color)
CellSurfaceEditor.SetGlyph(ISurface, int, int, int, Color, Color)
CellSurfaceEditor.SetGlyph(ISurface, int, int, int, Color, Color, Mirror)
CellSurfaceEditor.SetGlyph(ISurface, int, int, int, Color, Color, Mirror, IEnumerable<CellDecorator>)
CellSurfaceEditor.SetMirror(ISurface, int, int, Mirror)
CellSurfaceEditor.SetPixels(ISurface, Color[])
CellSurfaceEditor.SetPixels(ISurface, Rectangle, Color[])
CellSurfaceEditor.ShiftColumn(ISurface, int, int, bool)
CellSurfaceEditor.ShiftColumn(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftColumnDown(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftColumnDownUnchecked(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftColumnUp(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftColumnUpUnchecked(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftDown(ISurface)
CellSurfaceEditor.ShiftDown(ISurface, int, bool)
CellSurfaceEditor.ShiftLeft(ISurface)
CellSurfaceEditor.ShiftLeft(ISurface, int, bool)
CellSurfaceEditor.ShiftRight(ISurface)
CellSurfaceEditor.ShiftRight(ISurface, int, bool)
CellSurfaceEditor.ShiftRow(ISurface, int, int, bool)
CellSurfaceEditor.ShiftRow(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftRowLeft(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftRowLeftUnchecked(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftRowRight(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftRowRightUnchecked(ISurface, int, int, int, int, bool)
CellSurfaceEditor.ShiftUp(ISurface)
CellSurfaceEditor.ShiftUp(ISurface, int, bool)
ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX