Scrolled TTY-like window for logging, etc.  
 More...
#include <tty_scroll.h>
|  | 
| void | DrawLine (wxDC &dc, const Logline &ll, int data_pos, int y) | 
|  | Draw a single line in the log window. 
 | 
|  | 
| virtual void | OnDraw (wxDC &dc) | 
|  | 
| void | OnSize (wxSizeEvent &event) | 
|  | 
Scrolled TTY-like window for logging, etc. 
Definition at line 69 of file tty_scroll.h.
◆ TtyScroll()
      
        
          | TtyScroll::TtyScroll | ( | wxWindow * | parent, | 
        
          |  |  | int | n_lines | 
        
          |  | ) |  |  | 
      
 
Create a TtyScroll instance. 
- Parameters
- 
  
    | parent | Parent window |  | n_lines | Number of visible lines i. e., window height. |  
 
Definition at line 135 of file tty_scroll.cpp.
 
 
◆ Add()
  
  | 
        
          | void TtyScroll::Add | ( | const Logline & | line | ) |  |  | virtual | 
 
Add a line to bottom of window, typically discarding top-most line. 
Subject to checks with respect to paused state and filter possibly discarding argument line. 
Definition at line 152 of file tty_scroll.cpp.
 
 
◆ CopyToClipboard()
      
        
          | void TtyScroll::CopyToClipboard | ( |  | ) | const | 
      
 
 
◆ DrawLine()
  
  | 
        
          | void TtyScroll::DrawLine | ( | wxDC & | dc, |  
          |  |  | const Logline & | ll, |  
          |  |  | int | data_pos, |  
          |  |  | int | y |  
          |  | ) |  |  |  | protected | 
 
Draw a single line in the log window. 
Definition at line 96 of file tty_scroll.cpp.
 
 
◆ GetFilter()
Return current display filter. 
Definition at line 97 of file tty_scroll.h.
 
 
◆ OnDraw()
  
  | 
        
          | void TtyScroll::OnDraw | ( | wxDC & | dc | ) |  |  | protectedvirtual | 
 
 
◆ OnSize()
  
  | 
        
          | void TtyScroll::OnSize | ( | wxSizeEvent & | event | ) |  |  | protected | 
 
 
◆ Pause()
  
  | 
        
          | void TtyScroll::Pause | ( | bool | pause | ) |  |  | inline | 
 
Set the window to ignore Add() or not depending on pause. 
Definition at line 88 of file tty_scroll.h.
 
 
◆ SetColors()
      
        
          | void TtyScroll::SetColors | ( | std::unique_ptr< ColorByState > | color_by_state | ) |  | 
      
 
 
◆ SetFilter()
◆ SetQuickFilter()
  
  | 
        
          | void TtyScroll::SetQuickFilter | ( | const std::string | s | ) |  |  | inline | 
 
Apply a quick filter directly matched against lines. 
Definition at line 100 of file tty_scroll.h.
 
 
◆ m_color_by_state
◆ m_filter
◆ m_is_paused
  
  | 
        
          | bool TtyScroll::m_is_paused |  | protected | 
 
 
◆ m_line_height
  
  | 
        
          | wxCoord TtyScroll::m_line_height |  | protected | 
 
 
◆ m_lines
  
  | 
        
          | std::deque<Logline> TtyScroll::m_lines |  | protected | 
 
 
◆ m_n_lines
  
  | 
        
          | size_t TtyScroll::m_n_lines |  | protected | 
 
 
◆ m_quick_filter
  
  | 
        
          | std::string TtyScroll::m_quick_filter |  | protected | 
 
 
◆ m_text_width
  
  | 
        
          | wxCoord TtyScroll::m_text_width |  | protected | 
 
 
The documentation for this class was generated from the following files: