Class TimelinePane
Message log of the selected room: entries wrapped to the view width, colored by EntryKind, with day separators and pending messages last.
Inheritance
View
ListView
TimelinePane
Implements
IDesignable
IValue
Inherited Members
ListView.EnableForDesign()
ListView.GetDemoKeyStrokes()
ListView.SuspendCollectionChangedEvent()
ListView.ResumeSuspendCollectionChangedEvent()
ListView.OnRowRender(ListViewRowEventArgs)
ListView.MarkUnmarkSelectedItem()
ListView.UnmarkAll()
ListView.UnmarkAllButSelected()
ListView.GetAllMarkedItems()
ListView.EnsureSelectedItemVisible()
ListView.DefaultKeyBindings
ListView.MaxItemLength
ListView.Source
ListView.KeystrokeNavigator
ListView.MarkMultiple
ListView.ShowMarks
ListView.Value
ListView.SelectedItem
ListView.SourceChanged
ListView.CollectionChanged
ListView.RowRender
ListView.ValueChanging
ListView.ValueChanged
ListView.ValueChangedUntyped
View.NewMouseEvent(Mouse)
View.RaiseMouseEvent(Mouse)
View.GetAdornmentsThickness()
View.GetSupportedCommands()
View.InvokeCommands(Command[], ICommandBinding)
View.InvokeCommand(Command, ICommandBinding)
View.InvokeCommand(Command, ICommandContext)
View.InvokeCommand(Command)
View.DefaultAcceptHandler(ICommandContext)
View.DefaultActivateHandler(ICommandContext)
View.DefaultHotKeyHandler(ICommandContext)
View.GetContentWidth()
View.GetContentHeight()
View.GetContentSize()
View.GetWidthRequiredForSubViews()
View.GetAutoWidth()
View.GetAutoHeight()
View.GetHeightRequiredForSubViews()
View.ViewportToScreen()
View.GetViewportOffsetFromFrame()
View.Dispose()
View.ToString()
View.ToDebugString()
View.BeginInit()
View.EndInit()
View.OnEnabledChanged()
View.SetCursorNeedsUpdate()
View.DrawAdornments()
View.GetCurrentAttribute()
View.GetAttributeForRole(VisualRole)
View.SetAttribute(Attribute)
View.SetAttributeForRole(VisualRole)
View.GetClip()
View.SetClip(Region)
View.SetClipToScreen()
View.ExcludeFromClip(Region)
View.AddViewportToClip()
View.Draw(DrawContext)
View.ClearViewport(DrawContext)
View.DrawText(DrawContext)
View.DrawSubViews(DrawContext)
View.RenderLineCanvas(DrawContext)
View.GetScheme()
View.SetScheme(Scheme)
View.Add(View)
View.Add(params View[])
View.Remove(View)
View.RemoveAll()
View.RemoveAll<TView>()
View.GetTopSuperView(View, View)
View.MoveSubViewTowardsEnd(View)
View.MoveSubViewToEnd(View)
View.MoveSubViewTowardsStart(View)
View.MoveSubViewToStart(View)
View.AssignHotKeysToSubViews()
View.NewKeyDownEvent(Key)
View.NewKeyUpEvent(Key)
View.FrameToScreen()
View.Layout()
View.SetNeedsLayout()
View.GetContainerSize()
View.AdvanceFocus(NavigationDirection, TabBehavior?)
View.FocusDeepest(NavigationDirection, TabBehavior?)
View.OnCanFocusChanged()
View.ClearFocus()
View.SetFocus()
View.SetNeedsDraw()
View.MouseBindings
View.DefaultMouseBindings
View.ViewMouseBindings
View.MouseHoldRepeat
View.MousePositionTracking
View.MouseState
View.MouseHighlightStates
View.Margin
View.ShadowStyle
View.Border
View.BorderStyle
View.Padding
View.Arrangement
View.DefaultAcceptView
View.CommandsToBubbleUp
View.ContentSizeTracksViewport
View.ViewportSettings
View.Viewport
View.Data
View.Id
View.App
View.IsInitialized
View.Enabled
View.Visible
View.Title
View.Cursor
View.Diagnostics
View.LineCanvas
View.SuperViewRendersLineCanvas
View.SchemeName
View.HasScheme
View.SubViews
View.SuperView
View.HotKey
View.HotKeySpecifier
View.AssignHotKeys
View.UsedHotKeys
View.KeyBindings
View.HotKeyBindings
View.ViewKeyBindings
View.Frame
View.X
View.Y
View.Height
View.Width
View.NeedsLayout
View.ValidatePosDim
View.CanFocus
View.Focused
View.IsCurrentTop
View.MostFocused
View.HasFocus
View.PreviouslyFocused
View.TabStop
View.NeedsDraw
View.HorizontalScrollBar
View.VerticalScrollBar
View.PreserveTrailingSpaces
View.Text
View.TextAlignment
View.TextDirection
View.TextFormatter
View.VerticalTextAlignment
View.MouseEnter
View.MouseLeave
View.MouseHoldRepeatChanging
View.MouseHoldRepeatChanged
View.MouseEvent
View.MouseStateChanged
View.ShadowStyleChanged
View.BorderStyleChanged
View.CommandNotBound
View.Accepting
View.Accepted
View.Activating
View.Activated
View.HandlingHotKey
View.HotKeyCommand
View.ContentSizeChanging
View.ContentSizeChanged
View.ViewportChanged
View.Disposing
View.Initialized
View.EnabledChanged
View.VisibleChanging
View.VisibleChanged
View.TitleChanging
View.TitleChanged
View.GettingAttributeForRole
View.ClearingViewport
View.ClearedViewport
View.DrawingText
View.DrewText
View.DrawingContent
View.DrawingSubViews
View.DrawComplete
View.SchemeNameChanging
View.SchemeNameChanged
View.GettingScheme
View.SchemeChanging
View.SchemeChanged
View.SuperViewChanging
View.SuperViewChanged
View.SubViewAdding
View.SubViewAdded
View.SubViewRemoved
View.Removed
View.HotKeyChanged
View.KeyDown
View.KeyDownNotHandled
View.KeyUp
View.FrameChanged
View.HeightChanging
View.HeightChanged
View.WidthChanging
View.WidthChanged
View.SubViewLayout
View.SubViewsLaidOut
View.AdvancingFocus
View.CanFocusChanged
View.FocusedChanged
View.HasFocusChanging
View.HasFocusChanged
View.Pasting
View.Pasted
View.TextChanging
View.TextChanged
Namespace: Uniform.Chat.Terminal.Ui
Assembly: Uniform.Chat.dll
public sealed class TimelinePane : ListView, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable, IValue<int?>, IValue
Constructors
|
Edit this page
View Source
Declaration
Properties
|
Edit this page
View Source
Event ID-carrying entries, oldest first.
Declaration
public IReadOnlyList<TimelineEntry> Entries { get; }
Property Value
|
Edit this page
View Source
Timestamp of the oldest entry, for loading older history; null when empty.
Declaration
public long? OldestTimestamp { get; }
Property Value
|
Edit this page
View Source
Return preview lines for an image entry in the given columns and pane rows, e.g. ASCII art; null for none. Called on every rebuild, so it should cache.
Declaration
public Func<TimelineEntry, int, int, IReadOnlyList<string>?>? PreviewProvider { get; set; }
Property Value
|
Edit this page
View Source
SelectedEntry
Entry of the selected line, or null for separators and when nothing is selected.
Declaration
public TimelineEntry? SelectedEntry { get; }
Property Value
Methods
|
Edit this page
View Source
Append(IEnumerable<TimelineEntry>)
Append new entries, skipping ones already shown.
Declaration
public void Append(IEnumerable<TimelineEntry> items)
Parameters
|
Edit this page
View Source
Return a shown event by ID, e.g. to quote the message a reply answers.
Declaration
public ClientEvent? FindEvent(string eventId)
Parameters
| Type |
Name |
Description |
| string |
eventId |
|
Returns
|
Edit this page
View Source
PageDown()
Declaration
|
Edit this page
View Source
PageUp()
Declaration
|
Edit this page
View Source
Prepend(IEnumerable<TimelineEntry>)
Insert older entries before the current ones, keeping the view on the same line.
Declaration
public void Prepend(IEnumerable<TimelineEntry> items)
Parameters
|
Edit this page
View Source
Rebuild lines, e.g. after an image preview became available.
Declaration
|
Edit this page
View Source
Replace(TimelineEntry)
Replace the entry with the same event ID, e.g. after a redaction.
Declaration
public void Replace(TimelineEntry entry)
Parameters
|
Edit this page
View Source
Select the last message line, e.g. when focusing the pane to act on messages.
Declaration
|
Edit this page
View Source
SetEntries(IEnumerable<TimelineEntry>)
Replace all entries, e.g. when switching rooms.
Declaration
public void SetEntries(IEnumerable<TimelineEntry> items)
Parameters
|
Edit this page
View Source
SetPending(IEnumerable<TimelineEntry>)
Replace pending and failed own messages shown after the timeline.
Declaration
public void SetPending(IEnumerable<TimelineEntry> items)
Parameters
Implements
Terminal.Gui.ViewBase.IDesignable
Terminal.Gui.ViewBase.IValue<TValue>
Terminal.Gui.ViewBase.IValue