public void OnConsoleEntryAdded(CAbstractConsole console, ref CConsoleViewCellEntry entry) { CCycleArray <CConsoleViewCellEntry> Entries = this.Entries; // if unfiltered console entries overflow - we need to adjust indices and visible lines if (m_oldConsoleEntriesHeadIndex < Entries.HeadIndex) { m_oldConsoleEntriesHeadIndex = Entries.HeadIndex; int indicesHeadIndex = m_filteredIndices.HeadIndex; while (indicesHeadIndex < m_filteredIndices.Length && m_filteredIndices[indicesHeadIndex] < Entries.HeadIndex) { ++indicesHeadIndex; } m_filteredIndices.TrimToHeadIndex(indicesHeadIndex); m_consoleView.TrimCellsToHead(indicesHeadIndex); } int entryIndex = Entries.Length - 1; int entryArrayIndex = Entries.ToArrayIndex(entryIndex); if (Apply(ref Entries.InternalArray[entryArrayIndex])) { m_filteredIndices.Add(entryIndex); m_consoleView.OnConsoleEntryAdded(console, ref entry); } }
public CConsoleView(CAbstractConsole console, float width, float height) : base(console.Capacity, width, height) { m_console = console; this.ConsoleDelegate = this; this.DataSource = this; this.Delegate = this; m_textMeasure = CreateTextMeasure(); m_filteredDelegate = new CConsoleFilteredDelegate(this); ReloadData(); }
public void OnConsoleCleared(CAbstractConsole console) { ReloadData(); Repaint(); }
////////////////////////////////////////////////////////////////////////////// #region IConsoleDelegate implementation public void OnConsoleEntryAdded(CAbstractConsole console, ref CConsoleViewCellEntry entry) { ReloadNewData(); Repaint(); }
public void OnConsoleCleared(CAbstractConsole console) { ClearIndices(); m_consoleView.OnConsoleCleared(console); }
public void OnConsoleCleared(CAbstractConsole console) { }
////////////////////////////////////////////////////////////////////////////// #region IConsoleDelegate null implementation public void OnConsoleEntryAdded(CAbstractConsole console, ref CConsoleViewCellEntry entry) { }