Socially Distant OS
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Ritchie.Toolbox
      • Color
      • ColorHelpers
      • GuiManager
      • GuiScaleMode
      • GuiSynchronizationContext
      • IGuiContext
      • ILayer
      • IOrderedCollection<T>
      • PopoverLayer
    • Ritchie.Toolbox.Accessibility
      • IAccessibleDescription
      • ISpeechHandler
      • NarratorSpeechHandler
      • SpeechDispatcherBackend
      • TextToSpeech
    • Ritchie.Toolbox.Animation
      • Animation
      • AnimationExtensions
      • AnimationWait
      • Animation<TValue>
      • Animator
      • ColorAnimation
      • CurveFunction
      • CurveFunctions
      • IAnimation
      • IAnimationHandle
      • IAnimationUpdateAction
      • InterpolationFunction<T>
      • NumberAnimation<TNumber>
      • Vector2Animation
      • Vector3Animation
      • Vector4Animation
    • Ritchie.Toolbox.Common
      • Emojis
      • InvalidationMode
      • Rounding
      • StateChange<T>
    • Ritchie.Toolbox.Core
      • LineGraph<TNumber>
      • RunAtLaunchAttribute
      • RunAtLaunchService
    • Ritchie.Toolbox.CustomProperties
      • CanvasAnchors
      • CustomPropertyObject
      • FlexPanelProperties
      • StructProperty<T>
    • Ritchie.Toolbox.Debugging
      • GuiDebugger
      • IInspectChild
      • IInspectable
      • IInspector
      • IInspectorCategory
      • INumberInput<TNumber>
      • IWidgetTreeRenderer
      • InspectorExtensions
    • Ritchie.Toolbox.Effects
      • IEffect
      • IWidgetEffect
    • Ritchie.Toolbox.Events
      • FocusEvent
      • GuiEvent
      • IDragEndHandler
      • IDragHandler
      • IDragStartHandler
      • IGainFocusHandler
      • IKeyCharHandler
      • IKeyDownHandler
      • IKeyUpHandler
      • ILoseFocusHandler
      • IMouseClickHandler
      • IMouseDownHandler
      • IMouseEnterHandler
      • IMouseHandler
      • IMouseLeaveHandler
      • IMouseMoveHandler
      • IMouseScrollHandler
      • IMouseUpHandler
      • IPreviewKeyCharHandler
      • IPreviewKeyDownHandler
      • IPreviewKeyUpHandler
      • IUpdateHandler
      • KeyCharEvent
      • KeyEvent
      • ModifierKeys
      • MouseButtonEvent
      • MouseEvent
      • MouseMoveEvent
      • MouseScrollEvent
    • Ritchie.Toolbox.Layout
      • ClippingMode
      • Direction
      • FlexMode
      • FontDescription
      • HorizontalAlignment
      • LayoutRect
      • NudgeDirection
      • Padding
      • TextAlignment
      • VerticalAlignment
      • Visibility
    • Ritchie.Toolbox.ListAdapters
      • DataHelper<T>
      • INotifyDataChanged
      • ListAdapter<TContainerWidget, TViewHolder>
      • RecyclableWidgetController
      • RecyclableWidgetList<TContainerWidget>
      • RecyclableWidgetList<TContainerWidget>.RecyclableViewHolder
      • RecycleBin
      • RecycleBin<T>
      • ViewHolder
    • Ritchie.Toolbox.Niceities.Completions
      • CompletionGraph
    • Ritchie.Toolbox.Popovers
      • PopoverContent
      • PopoverLocationPreference
      • PopoverText
      • PopoverWidget
    • Ritchie.Toolbox.Rendering
      • GeometryHelper
      • GuiMeshBuilder
      • GuiRenderer
      • Mesh
      • WidgetGeometry
    • Ritchie.Toolbox.Signals
      • ISignalHandler<TSignal>
      • SignalDirection
      • SignalEvent<TSignal>
    • Ritchie.Toolbox.TextRendering
      • Font
      • FontFamily
      • FontFamilyInfo
      • FontSizeMetric
      • FontWeight
      • IFontFamily
      • IFontFamilyProvider
      • PresetFontFamily
      • Typeface
      • Typeface.GlyphInfo
    • Ritchie.Toolbox.VisualStyles
      • DefaultWidgetBackgroundRenderer
      • IGetTextColor
      • IGetThemeProperties<TThemeProperties>
      • IUpdateThemeProperties
      • IVisualRenderer<TVisualProperties>
      • IVisualRenderer<TVisual, TVisualState>
      • IVisualStyle
      • IVisual<TVisualProperties>
      • IWidgetBackgroundRenderer
      • IWidgetRenderer<TWidget>
      • StyleManager
      • WidgetBag<T>
    • Ritchie.Toolbox.Widgets
      • Box
      • Button
      • Button.LayoutProperties
      • Button.VisualState
      • CanvasPanel
      • ContainerWidget
      • ContentWidget
      • DropdownButtonThemeProperties
      • DropdownButtonVisualState
      • DropdownItemView<TItemType>
      • DropdownItemVisualState
      • DropdownOverlayVisualState
      • DropdownStringView
      • Dropdown<TItemType, TView>
      • FlexPanel
      • IContainerWidget
      • IContentWidget
      • IDropdownButtonVisual
      • IImageLocator
      • Icon
      • Image
      • Label
      • LinkClickSignal
      • ListItem
      • ListItem.LayoutProperties
      • ListItem.VisualState
      • OverlayWidget
      • Popover
      • Popover.PopoverThemeProperties
      • Popover.PopoverVisualState
      • Pressable
      • PressableBox
      • ProgressBar
      • ProgressBar.LayoutrProperties
      • ProgressBar.VisualState
      • ScrollBar
      • ScrollBar.LayoutProperties
      • ScrollBar.VisualState
      • ScrollView
      • Slider
      • Slider.LayoutProperties
      • Slider.VisualState
      • StackPanel
      • StringDropdown
      • TablePanel
      • TextField
      • TextField.ThemeProperties
      • TextField.VisualState
      • TextTransform
      • TextWidget
      • TextWidget.ThemeProperties
      • Toggle
      • Toggle.LayoutProperties
      • Toggle.VisualState
      • Widget
      • Widget.BackgroundStyleProperties
      • WidgetTransform
      • WrapPanel
    • Ritchie.Toolbox.Widgets.CodeEditing
      • CodeEditor
      • CodeEditor.DrawElement
      • CodeEditor.ThemeProperties
      • CodeEditor.VisualState
    • SociallyDistant
      • SystemModule
    • SociallyDistant.Core
      • CollectionExtensions
      • Time
      • TimeData
    • SociallyDistant.Core.Audio
      • GuiSoundName
      • SoundScheme
      • SoundSchemeAttribute
    • SociallyDistant.Core.BuildTasks
      • MarkdownPreprocessorTask
      • SdshScriptCheckTask
    • SociallyDistant.Core.Chat
      • ChatScriptType
      • ChatStartType
      • IBranchDefinition
      • IChatConversation
      • IConversationController
      • ScriptConditionCheck
      • ScriptConditionMode
      • ScriptConditionType
    • SociallyDistant.Core.Config
      • IgnoreModdingLegalWaiverAttribute
    • SociallyDistant.Core.ContentManagement
      • ContentCollectionBuilder
      • ContentPipeline
      • DefaultScriptImporter
      • IContentFinder
      • IContentGenerator
      • IContentManager
      • IGameContent
      • IGameContentSource
      • ShebangAttribute
      • ShellScriptImporter
      • XnbContentIdentifier
    • SociallyDistant.Core.Core
      • ConsoleExtensions
      • CraftingIngredient
      • CraftingRecipe
      • CreateCallback<TDataElement>
      • DeleteCallback<TDataElement>
      • FileAssociation
      • FileAssociationAttribute
      • FileAssociationManager
      • GameMode
      • Gender
      • GlobalUtilities
      • ICachedScript
      • IDataObject<TDataElement>
      • IDataTable<TDataElement>
      • IDataWithId
      • IDebuggable
      • ILedger
      • INamedAsset
      • INarrativeObjectTable<TDataElement>
      • ISerializableDataObject<TDataElement, TRevision, TSerializer>
      • ISerializableDataTable<TDataElement, TRevision, TSerializer>
      • ISkillTree
      • IUnlockableAsset
      • IWorld
      • IWorldDataCallbacks
      • IWorldDataObject<TDataElement>
      • IWorldFlagCollection
      • IWorldManager
      • IWorldSection
      • IWorldTable<TDataElement>
      • IngredientRequirement
      • LogicalAccessLock
      • ModifyCallback<TDataElement>
      • ObjectId
      • PathUtility
      • PlayerLevelInfo
      • RecipeCategory
      • SharedReference<T>
      • ShellExtensions
      • Singleton<T>
      • SociallyDistantUtility
      • StringUtility
      • SystemVolume
      • VirtualConsole
      • WorldRevision
    • SociallyDistant.Core.Core.Config
      • CommonSettingsCategorySections
      • CommonSettingsSections
      • ISettingsManager
      • ISettingsPageBuilder
      • ISettingsPageContext
      • ISettingsUiBuilder
      • SettingsCategory
      • SettingsCategoryAttribute
      • SettingsFieldAttribute
      • SettingsFieldUiDefinition
      • SettingsType
    • SociallyDistant.Core.Core.Config.SystemConfigCategories
      • AccessibilitySettings
      • DeveloperSettings
      • GraphicsSettings
      • TextElementScale
      • UiSettings
    • SociallyDistant.Core.Core.Events
      • DeviceEvent
      • Event
      • EventBus
      • FileSystemEvent
      • FileSystemEventType
      • PlaySongEvent
      • PlaySoundEvent
      • ResourceEvent
      • WitnessEvent
      • WitnessType
    • SociallyDistant.Core.Core.Scripting
      • ArrayView<TElementType>
      • CommonScriptHooks
      • FileRedirectionType
      • FunctionAttribute
      • HookScript
      • HypervisorComputer
      • HypervisorFileSystem
      • HypervisorProcess
      • HypervisorUser
      • IArrayView<T>
      • ICommandHistoryProvider
      • ICommandShell
      • IHelpProvider
      • IHistoryCollection
      • IHookListener
      • IInteractiveShellContext
      • IScriptCommand
      • IScriptExecutionContext
      • IScriptFunction
      • IScriptSystem
      • ITerminalProcessController
      • InteractiveShell
      • OperatingSystemExecutionContext
      • ScriptCommandProvider
      • ScriptContextCommand
      • ScriptDelegate
      • ScriptDelegateFunction
      • ScriptEndException
      • ScriptExecutionContext
      • ScriptFunctionManager
      • ScriptModule
      • ScriptModuleManager
      • ScriptSystem
      • ShellParseOptions
      • ShellScriptAsset
      • ShellTester
      • ShellToken
      • ShellTokenType
      • ShellUtility
      • SimpleEnvironmentVariableProvider
      • StringView
      • UserScriptExecutionContext
      • WorldScriptCommands
    • SociallyDistant.Core.Core.Scripting.Consoles
      • FileOutputConsole
      • LineListConsole
      • RedirectedConsole
    • SociallyDistant.Core.Core.Scripting.GlobalCommands
      • ExecuteHookCommand
      • SaveGameCommand
      • WorldFlagCommand
    • SociallyDistant.Core.Core.Scripting.Instructions
      • AssignmentInstruction
      • BranchEvaluator
      • BranchInstruction
      • CommandData
      • CommandExpansion
      • CommandExpansionConsole
      • EmptyShellInstruction
      • ExpressionEvaluator
      • FunctionDeclaration
      • IArgumentEvaluator
      • LogicalAndInstruction
      • LogicalOrInstruction
      • ParallelInstruction
      • PipeConsole
      • PipeEntrance
      • PipeInstruction
      • SequentialInstruction
      • ShellCaseStatement
      • ShellInstruction
      • ShellPattern
      • SingleInstruction
      • VariableAccessEvaluator
      • WhileLoop
    • SociallyDistant.Core.Core.Scripting.Parsing
      • FunctionFrame
      • LegacyScriptParser
      • LocalScriptExecutionContext
      • ScriptFunction
      • ScriptParser
      • ScriptParser.TokenElement
      • TextArgumentEvaluator
    • SociallyDistant.Core.Core.Scripting.StandardModules
      • NpcModule
      • ShellHelpersModule
    • SociallyDistant.Core.Core.Serialization
      • IDataReader
      • IDataWriter
      • INarrativeObject
      • IRevisionComparer<TRevision>
      • IRevisionedSerializer<TRevision>
      • ISerializable
      • ISerializable<TRevision, TSerializer>
      • IWorldData
      • IWorldSerializer
      • SerializationUtility
    • SociallyDistant.Core.Core.Serialization.Binary
      • BinaryDataReader
      • BinaryDataWriter
    • SociallyDistant.Core.Core.Systems
      • Counter
      • UniqueIntGenerator
    • SociallyDistant.Core.Core.Threading
      • WorkQueue
    • SociallyDistant.Core.Core.WorldData
      • IGlobalState
    • SociallyDistant.Core.Core.WorldData.Data
      • CharacterAttributes
      • DocumentElement
      • DocumentElementType
      • GenerationType
      • GlobalWorldData
      • MailTypeFlags
      • MemberGroupType
      • MessageChannelType
      • NetworkServiceData
      • RelationshipType
      • WitnessedObjectType
      • WorldChannelData
      • WorldComputerData
      • WorldCraftedExploitData
      • WorldDomainNameData
      • WorldGenerationTrackingData
      • WorldGuildData
      • WorldHackableData
      • WorldInternetServiceProviderData
      • WorldInventoryItem
      • WorldLocalNetworkData
      • WorldMailData
      • WorldMemberData
      • WorldMessageData
      • WorldNetworkConnection
      • WorldNewsData
      • WorldNotificationData
      • WorldPlayerData
      • WorldPortForwardingRule
      • WorldPostData
      • WorldProfileData
      • WorldRelationshipData
      • WorldWitnessedObjectData
    • SociallyDistant.Core.Debugging
      • DebugEvent
      • DebugEventType
      • DebugService
      • IDebugService
    • SociallyDistant.Core.FileSystemProviders
      • TempFileSystemProvider
    • SociallyDistant.Core.Hacking
      • IPayload
      • Vulnerabilities
      • Vulnerability
    • SociallyDistant.Core.Missions
      • DangerLevel
      • IMission
      • IMissionContext
      • IMissionController
      • IMissionTask
      • IObjective
      • IObjectiveHandle
      • MissionEvent
      • MissionFailedException
      • MissionStartCondition
      • MissionTaskAttribute
      • MissionType
      • ObjectiveKind
      • ObjectiveResult
      • ObjectiveType
    • SociallyDistant.Core.Modules
      • Application
      • GameModule
      • IGameContext
      • IGameData
      • IGameDataWithCheckpoints
      • IGameRestorePoint
      • IModuleManager
      • INetworkSimulation
      • IUriManager
      • IUriSchemeHandler
      • IVirtualScreen
      • InitializationFlow
      • PlayerInfo
      • XnaHelpers
    • SociallyDistant.Core.News
      • Article
      • ArticleData
      • ArticleFlags
      • ArticleInfo
      • IArticleAsset
    • SociallyDistant.Core.OS
      • IKernel
    • SociallyDistant.Core.OS.Devices
      • ConsoleCapabilities
      • ConsoleDriver
      • ConsoleInputData
      • ConsoleWrapper
      • EntryBuilder
      • HostConsole
      • HostScreen
      • IAutoCompleteSource
      • IAutoCompletedConsole
      • IComputer
      • IConsoleDriver
      • IEnvironmentVariableProvider
      • IHackable
      • IInitProcess
      • IIterableEnvironmentVariableProvider
      • ISystemProcess
      • ISystemServiceProvider
      • ITextConsole
      • ITextConsoleWithPhysicalDisplay
      • IUser
      • KeyModifiers
      • LineEditor
      • LineWrapper
      • MultiCancellationTokenSource
      • NullConsole
      • NullScreen
      • PrivilegeLevel
      • RepeatableCancellationToken
      • SystemService
      • SystemServiceAttribute
    • SociallyDistant.Core.OS.FileSystems
      • EntryTypes
      • IDirectoryEntry
      • IFileEntry
      • IFileOverrider
      • IFileSystem
      • IFileSystemProvider
      • IFileSystemTable
      • IFileSystemTableEntry
      • IMountManager
      • IVirtualFileSystem
      • InMemoryDirectoryEntry
      • InMemoryFileEntry
      • InMemoryFileSystem
      • MountManager
      • NotifyingMemoryStream
      • ReadOnlyMemoryStream
      • VirtualFileSystem
    • SociallyDistant.Core.OS.FileSystems.Host
      • FileInputConsole
      • HostDirectoryEntry
      • HostFileEntry
      • HostJail
    • SociallyDistant.Core.OS.FileSystems.Immutable
      • ImmutableDirectoryEntry
      • ImmutableDirectoryTree
    • SociallyDistant.Core.OS.Network
      • ConnectionResultType
      • HackableDevice
      • HackableGenerationMethod
      • IAcceptNetworkClient<TNetworkClient>
      • IConnectionHandle
      • IHostNameResolver
      • INetworkAsset
      • INetworkClient
      • INetworkConnection
      • INetworkInterfaceEnumerator
      • INetworkNode
      • INetworkServer
      • IServerConnection
      • NetUtility
      • NetworkInterfaceInformation
      • NetworkResolveResult
      • NetworkServer<TNetworkClient, TServerConnection>
      • PingResult
      • PortResolution
      • PortScanResult
      • PortStatus
      • Subnet
    • SociallyDistant.Core.OS.Tasks
      • CommandAttribute
      • ICommandTask
      • ITaskManager
    • SociallyDistant.Core.Programs
      • ProgramController
      • ProgramController.ProgramContext
    • SociallyDistant.Core.Shell
      • CommonColor
      • IIconDescriptor
      • IProgram
      • IShellContext
      • IShellOverlay
      • ITutorialOverlay
      • IconDescriptorFactory
      • SociallyDistantExtensions
      • TextIconDescriptor
      • TextureIconDescriptor
    • SociallyDistant.Core.Shell.Common
      • CompositeIcon
      • INotificationGroup
      • INotificationManager
      • NotificationGroups
    • SociallyDistant.Core.Shell.InfoPanel
      • IInfoPanelService
      • InfoPanelCheckList
      • InfoPanelCheckListItem
      • InfoPanelCheckListState
      • InfoWidgetCreationData
      • InfoWidgetData
    • SociallyDistant.Core.Shell.Windowing
      • CaptionButtonStyle
      • CaptionButtonType
      • IBringWindowToFocus
      • IMessageDialog
      • IUpdateDesiredPositions
      • IWindow
      • IWindowGroup
      • MessageBoxButtonData
      • MessageBoxButtons
      • MessageBoxType
      • MessageDialogResult
      • Window
      • Window.ThemeProperties
      • Window.VisualState
      • WindowCaptionButton
      • WindowCaptionButton.ThemeProperties
      • WindowCaptionButton.VisualState
      • WindowHints
    • SociallyDistant.Core.Shortcuts
      • ShortcutManager
    • SociallyDistant.Core.Social
      • AvatarSize
      • ChannelIconData
      • ICharacterGenerator
      • IChatChannel
      • IChatGroup
      • IChatMember
      • IDirectConversation
      • IGuild
      • IGuildList
      • IMailMessage
      • IMailThread
      • INarrativeThread
      • INewsArticle
      • INewsManager
      • IProfile
      • ISocialService
      • IUserMessage
      • NarrativeThread
    • SociallyDistant.Core.UI
      • GuiDebugService
      • GuiService
      • LucideIcons
    • SociallyDistant.Core.UI.Common
      • Avatar
      • CompositeIconWidget
      • DecorativeBlock
      • DecorativeBlock.VisualState
      • Emblem
      • Emblem.LayoutProperties
      • Emblem.VisualState
      • ListItemWithHeader
      • SimpleField
      • ToolbarIcon
    • SociallyDistant.Core.UI.Console
      • ConsoleLineEditor
      • ConsoleSizeMode
      • ConsoleThemeProperties
      • ITextScreen
      • TextScreen
      • TextScreenExtensions
    • SociallyDistant.Core.UI.Effects
      • BackgroundBlurProperties
      • BackgroundBlurWidgetEffect
      • DefaultAvatarColorizer
      • DefaultAvatarProperties
      • MonoGameEffect
    • SociallyDistant.Core.UI.Recycling
      • AvatarWidgetBuilder
      • AvatarWidgetController
      • DropdownWidgetBuilder
      • DropdownWidgetController
      • IRecyclableWidgetBuilder
      • ISectionWidgetBuilder
      • ImageWidgetBuilder
      • ImageWidgetController
      • InputFieldWidgetBuilder
      • InputFieldWidgetController
      • LabelWidgetBuilder
      • LabelWidgetController
      • ListItemWidgetBuilder<T>
      • ListItemWidgetController<T>
      • SectionWidgetBuilder
      • SectionWidgetController
      • SliderWidgetBuilder
      • SliderWidgetController
      • SwitchWidgetBuilder
      • SwitchWidgetController
      • TwoLineListItemWithIcon
      • WidgetBuilder
    • SociallyDistant.Core.UI.Recycling.SettingsWidgets
      • CompletionListWidget
      • CompletionListWidget.ThemeProperties
      • CompletionListWidget.VisualState
      • Cycler
      • FormField
      • FormField.LayoutProperties
      • FormField.VisualState
      • SectionTitle
      • SettingsFieldWidgetBuilder
      • SettingsFieldWidgetController
      • WidgetListSettingsUiBuilder
    • SociallyDistant.Core.UI.Shell
      • TrayAction
    • SociallyDistant.Core.UI.VisualStyles
      • ChatMessageThemeProperties
      • ChatMessageVisualState
      • DockLayoutProperties
      • DockVisualState
      • IChatMessageBox
      • IChatMessageRenderer
      • IDockIconView
      • InputFieldType
      • SociallyDistantVisualStyle
      • SociallyDistantVisualStyle.CodeEditorStyle
      • SociallyDistantVisualStyle.DropdownButtonStyle
      • StatusBarLayoutProperties
      • StatusBarVisualState
      • UserStyle
      • WidgetBackgrounds
      • WidgetForegrounds
    • SociallyDistant.Core.UI.Widgets
      • BlurredOverlay
      • BlurredOverlay.VisualState

    Class TextScreen

    Socially Distant's console renderer. Used for the in-game Terminal.

    Inheritance
    object
    Widget
    TextScreen
    Implements
    IFontFamilyProvider
    IInspectable
    ITextScreen
    IUpdateThemeProperties
    IMouseDownHandler
    IMouseScrollHandler
    IKeyCharHandler
    IKeyDownHandler
    IDragStartHandler
    IDragHandler
    IDragEndHandler
    IMouseHandler
    IGainFocusHandler
    ILoseFocusHandler
    IAccessibleDescription
    Inherited Members
    Widget.ChildCount
    Widget.EnumerateChildren()
    Widget.ContainsChild(Widget)
    Widget.BelongsToParent(Widget)
    Widget.WidgetRepainting
    Widget.IsLayoutValid
    Widget.UniqueId
    Widget.ComputedTransformMatrix
    Widget.ClipSelf
    Widget.Rotation
    Widget.Scale
    Widget.PositionOffset
    Widget.InvalidateClipping(bool)
    Widget.ComputedPositionOffset
    Widget.BackgroundStyle
    Widget.RenderEffect
    Widget.IsFocused
    Widget.IsChildFocused
    Widget.ClippedContentArea
    Widget.ClippingMode
    Widget.Enabled
    Widget.RenderOpacity
    Widget.HierarchyEnabled
    Widget.ComputedOpacity
    Widget.VisualStyleOverride
    Widget.Parent
    Widget.Root
    Widget.GuiManager
    Widget.Children
    Widget.InvalidateGeometry(bool)
    Widget.GetVisualStyleOverride()
    Widget.RebuildClippingZone(GeometryHelper)
    Widget.BeforeRender()
    Widget.ShouldRenderChild(Widget)
    Widget.IsInsideClipRegion(Point)
    Widget.GetCustomProperty<T>()
    Widget.SetCustomProperty<T>(T)
    Widget.GetCustomProperties<T>()
    Widget.GetFont(PresetFontFamily)
    Widget.GiveFocus()
    Widget.Inspect(IInspector)
    Widget.IsVisible
    Widget.Visibility
    Widget.PaintArea
    Widget.Margin
    Widget.Padding
    Widget.MinimumWidth
    Widget.MinimumHeight
    Widget.MaximumWidth
    Widget.MaximumHeight
    Widget.MinimumSize
    Widget.MaximumSize
    Widget.HorizontalAlignment
    Widget.VerticalAlignment
    Widget.LayoutArea
    Widget.LayoutRoot
    Widget.GetTextColor(ref Color, Color?)
    Widget.GetThemeProperties<TThemeProperties>(ref TThemeProperties, InvalidationMode)
    Widget.InvalidateOwnLayout()
    Widget.Invalidate(InvalidationMode)
    Widget.InvalidateLayout()
    Widget.UpdateLayout(IGuiContext, LayoutRect)
    Widget.GetCachedContentSize(Point)
    Widget.PopoverLocation
    Widget.PopoverContent
    Widget.SendSignal<TSignal>(TSignal, SignalDirection)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SociallyDistant.Core.UI.Console
    Assembly: SociallyDistant.Framework.dll
    Syntax
    public class TextScreen : Widget, IFontFamilyProvider, IInspectable, ITextScreen, IUpdateThemeProperties, IMouseDownHandler, IMouseScrollHandler, IKeyCharHandler, IKeyDownHandler, IDragStartHandler, IDragHandler, IDragEndHandler, IMouseHandler, IGainFocusHandler, ILoseFocusHandler, IAccessibleDescription

    Properties

    AccessibleContent

    Gets a string of text representing the widget's content, in a screen-reader-friendly format.

    Declaration
    public string? AccessibleContent { get; }
    Property Value
    Type Description
    string

    Columns

    Gets the width of the screen, in characters.

    Declaration
    public int Columns { get; }
    Property Value
    Type Description
    int

    CursorLeft

    Gets the horizontal position of the cursor, in characters.

    Declaration
    public int CursorLeft { get; }
    Property Value
    Type Description
    int

    CursorTop

    Gets the vertical position of the cursor, in characters.

    Declaration
    public int CursorTop { get; }
    Property Value
    Type Description
    int

    DesiredColumns

    Gets or sets the amount of desired colums you would like the console to occupy.

    Declaration
    public int DesiredColumns { get; set; }
    Property Value
    Type Description
    int

    DesiredRows

    Gets or sets the desired amount of rows you'd like the console to occupy.

    Declaration
    public int DesiredRows { get; set; }
    Property Value
    Type Description
    int

    FontOverride

    Gets or sets a font family to use as the console font. If none is set, the monospace font for the current UI skin will be used.

    Declaration
    public IFontFamily? FontOverride { get; set; }
    Property Value
    Type Description
    IFontFamily
    Remarks
    <p>
        You may be tempted to use a variable-width font to see what it looks like. The game won't stop you from
        doing so, but you should have a first-aid kit ready for the inevitable and almost immediate typographical
        hell you will unleash on yourself and the surrounding planet. Seriously, do not even try. Why did we even
        bother exposing this fucking property?
    </p>
    

    HeightMode

    Gets or sets a ConsoleSizeMode indicating how the widget should report its layout height to the UI system.

    Declaration
    public ConsoleSizeMode HeightMode { get; set; }
    Property Value
    Type Description
    ConsoleSizeMode

    Rows

    Gets the height of the screen, in characters.

    Declaration
    public int Rows { get; }
    Property Value
    Type Description
    int

    Title

    Gets or sets the title of this text screen. Implementations or users of ITextScreen can display this text in other UI elements, such as a tab.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    string

    WidthMode

    Gets or sets a ConsoleSizeMode indicating how the widget should report its layout width to the UI system.

    Declaration
    public ConsoleSizeMode WidthMode { get; set; }
    Property Value
    Type Description
    ConsoleSizeMode

    Methods

    ArrangeChildren(IGuiContext, LayoutRect)

    Declaration
    protected override void ArrangeChildren(IGuiContext context, LayoutRect availableSpace)
    Parameters
    Type Name Description
    IGuiContext context
    LayoutRect availableSpace
    Overrides
    Widget.ArrangeChildren(IGuiContext, LayoutRect)

    ClearScreen()

    Clear the screen.

    Declaration
    public void ClearScreen()

    Fill(Rune, int, int, int, int)

    Fill a rectangular region of the screen with a specified Rune value.

    Declaration
    public void Fill(Rune rune, int x, int y, int width, int height)
    Parameters
    Type Name Description
    Rune rune

    The character to fill the rectangle with.

    int x

    The left column of the rectangle.

    int y

    The top row of the rectangle.

    int width

    The width, in columns, of the rectangle.

    int height

    The height, in rows, of the rectangle.

    GetContentSize(Point)

    Declaration
    protected override Point GetContentSize(Point availableSize)
    Parameters
    Type Name Description
    Point availableSize
    Returns
    Type Description
    Point
    Overrides
    Widget.GetContentSize(Point)

    GetSelectedText()

    Gets a string of text representing the current text selection.

    Declaration
    public string? GetSelectedText()
    Returns
    Type Description
    string

    The text highlighted on-screen.

    IsSelected(int, int)

    Determines whether the character at the specified location is selected.

    Declaration
    public bool IsSelected(int x, int y)
    Parameters
    Type Name Description
    int x

    The column to check.

    int y

    The row to check.

    Returns
    Type Description
    bool

    True if selected, false otherwise.

    OnDrag(MouseButtonEvent)

    Declaration
    public void OnDrag(MouseButtonEvent e)
    Parameters
    Type Name Description
    MouseButtonEvent e

    OnDragEnd(MouseButtonEvent)

    Declaration
    public void OnDragEnd(MouseButtonEvent e)
    Parameters
    Type Name Description
    MouseButtonEvent e

    OnDragStart(MouseButtonEvent)

    Declaration
    public void OnDragStart(MouseButtonEvent e)
    Parameters
    Type Name Description
    MouseButtonEvent e

    OnFocusGained(FocusEvent)

    Declaration
    public void OnFocusGained(FocusEvent e)
    Parameters
    Type Name Description
    FocusEvent e

    OnFocusLost(FocusEvent)

    Declaration
    public void OnFocusLost(FocusEvent e)
    Parameters
    Type Name Description
    FocusEvent e

    OnKeyChar(KeyCharEvent)

    Declaration
    public void OnKeyChar(KeyCharEvent e)
    Parameters
    Type Name Description
    KeyCharEvent e

    OnKeyDown(KeyEvent)

    Declaration
    public void OnKeyDown(KeyEvent e)
    Parameters
    Type Name Description
    KeyEvent e

    OnMouseDown(MouseButtonEvent)

    Declaration
    public void OnMouseDown(MouseButtonEvent e)
    Parameters
    Type Name Description
    MouseButtonEvent e

    OnMouseScroll(MouseScrollEvent)

    Declaration
    public void OnMouseScroll(MouseScrollEvent e)
    Parameters
    Type Name Description
    MouseScrollEvent e

    Print(in ReadOnlySpan<Rune>)

    Print the specified set of Rune values to the screen.

    Declaration
    public void Print(in ReadOnlySpan<Rune> unicodeRunes)
    Parameters
    Type Name Description
    ReadOnlySpan<Rune> unicodeRunes

    A set of Unicode characters to write.

    Print(string)

    Print the specified text to the screen.

    Declaration
    public void Print(string text)
    Parameters
    Type Name Description
    string text

    A string of text to write.

    ReadLine(IHistoryCollection?, CancellationToken?)

    Prompts the user to enter a line of text into the screen, creating a task that resolves with the entered text.

    Declaration
    public Task<string?> ReadLine(IHistoryCollection? historyCollection = null, CancellationToken? cancellationToken = null)
    Parameters
    Type Name Description
    IHistoryCollection historyCollection

    An optional IHistoryCollection containing command-line history, if applicable.

    CancellationToken? cancellationToken

    A cancellation token for interrupting the prompt.

    Returns
    Type Description
    Task<string>

    A task that resolves with the entered text. If a null string is returned, the screen doesn't support keyboard input.

    RebuildGeometry(GeometryHelper)

    Declaration
    protected override void RebuildGeometry(GeometryHelper geometry)
    Parameters
    Type Name Description
    GeometryHelper geometry
    Overrides
    Widget.RebuildGeometry(GeometryHelper)

    ResetBackgroundColor()

    Reset the cursor's background color to its default.

    Declaration
    public void ResetBackgroundColor()

    ResetCursorPosition()

    Move the cursor to the top-left.

    Declaration
    public void ResetCursorPosition()

    ResetFont()

    Reset the cursor's font style to its default.

    Declaration
    public void ResetFont()

    ResetForegroundColor()

    Reset the cursor's foreground color to its default.

    Declaration
    public void ResetForegroundColor()

    ResetTextEffects()

    Reset the cursor's text effects to the default.

    Declaration
    public void ResetTextEffects()

    ScrollDown(int)

    Scroll down by the specified number of rows.

    Declaration
    public void ScrollDown(int numberOfRows = 1)
    Parameters
    Type Name Description
    int numberOfRows

    A positive number of rows to scroll down.

    ScrollUp(int)

    Scroll up by the specified number of rows.

    Declaration
    public void ScrollUp(int numberOfRows = 1)
    Parameters
    Type Name Description
    int numberOfRows

    A positive number of rows to scroll.

    SetBackgroundColor(byte, byte, byte)

    Set the background color of the cursor to the specified true color.

    Declaration
    public void SetBackgroundColor(byte red, byte green, byte blue)
    Parameters
    Type Name Description
    byte red

    Value for the red channel.

    byte green

    Value for the green channel.

    byte blue

    Value for the blue channel.

    SetBackgroundColor(ConsoleColor)

    Set the background color of the cursor to the specified ConsoleColor value.

    Declaration
    public void SetBackgroundColor(ConsoleColor paletteColor)
    Parameters
    Type Name Description
    ConsoleColor paletteColor

    One of the 16 colors available in the ConsoleColor palette.

    SetCursorPosition(int, int)

    Move the cursor to a new position.

    Declaration
    public void SetCursorPosition(int left, int top)
    Parameters
    Type Name Description
    int left

    The new column for the cursor.

    int top

    The new row for the cursor.

    SetFont(bool, bool)

    Change the cursor's font style.

    Declaration
    public void SetFont(bool bold, bool italic)
    Parameters
    Type Name Description
    bool bold

    Value indicating whether text should be bold.

    bool italic

    Value indicating whether text should be italic.

    SetForegroundColor(byte, byte, byte)

    Set the foreground color of the cursor to the specified true color.

    Declaration
    public void SetForegroundColor(byte red, byte green, byte blue)
    Parameters
    Type Name Description
    byte red

    Value for the red channel.

    byte green

    Value for the green channel.

    byte blue

    Value for the blue channel.

    SetForegroundColor(ConsoleColor)

    Set the foreground color of the cursor to the specified ConsoleColor value.

    Declaration
    public void SetForegroundColor(ConsoleColor paletteColor)
    Parameters
    Type Name Description
    ConsoleColor paletteColor

    One of the 16 colors available in the ConsoleColor palette.

    SetTextEffects(bool, bool)

    Change the cursor's text effects.

    Declaration
    public void SetTextEffects(bool underline, bool strikeThrough)
    Parameters
    Type Name Description
    bool underline

    Value indicating whether text should be underlined.

    bool strikeThrough

    Value indicating whether text should be stricken out.

    UpdateThemeProperties()

    Retrieves layout properties from the visual style. Called by the UI system on every frame before layout updates occur. If layout properties change during this method call, the widget will automatically invalidate its own layout.

    Declaration
    public void UpdateThemeProperties()

    WaitForKey(CancellationToken?)

    Creates an awaitable task that resolves when a key is pressed.

    Declaration
    public Task<ConsoleInputData?> WaitForKey(CancellationToken? cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken? cancellationToken

    A cancellation token for cancelling the task.

    Returns
    Type Description
    Task<ConsoleInputData?>

    A Task<TResult> that resolves when a key is pressed inside this screen. A null value returned at task completion means that this screen doessn't support input.

    Write(Rune)

    Write the specified Rune value to the screen, and advance the cursor by one cell.

    Declaration
    public void Write(Rune rune)
    Parameters
    Type Name Description
    Rune rune

    The Unicode character to write to the screen.

    Events

    ConsoleKeyPressed

    An event that fires every time a valid console key is pressed.

    Declaration
    public event Action<ConsoleInputData>? ConsoleKeyPressed
    Event Type
    Type Description
    Action<ConsoleInputData>

    TitleChanged

    Declaration
    public event Action<string>? TitleChanged
    Event Type
    Type Description
    Action<string>

    Implements

    IFontFamilyProvider
    IInspectable
    ITextScreen
    IUpdateThemeProperties
    IMouseDownHandler
    IMouseScrollHandler
    IKeyCharHandler
    IKeyDownHandler
    IDragStartHandler
    IDragHandler
    IDragEndHandler
    IMouseHandler
    IGainFocusHandler
    ILoseFocusHandler
    IAccessibleDescription

    Extension Methods

    TextScreenExtensions.Fill(ITextScreen, char, int, int, int, int)
    In this article
    Back to top Generated by DocFX