LLDB mainline
lldb_private::Statusline Class Reference

#include <Statusline.h>

Public Member Functions

 Statusline (Debugger &debugger)
 ~Statusline ()
void Enable ()
 Reduce the scroll window and draw the statusline.
void Disable ()
 Hide the statusline and extend the scroll window.
void Redraw (bool update=true)
 Redraw the statusline.
void TerminalSizeChanged ()
 Inform the statusline that the terminal dimensions have changed.

Private Types

enum  ScrollWindowMode { EnableStatusline , DisableStatusline , ResizeStatusline }

Private Member Functions

void Draw (std::string msg)
 Draw the statusline with the given text.
void UpdateScrollWindow (ScrollWindowMode mode)
 Set the scroll window for the given mode.

Private Attributes

Debuggerm_debugger
std::string m_last_str
uint64_t m_terminal_width = 0
uint64_t m_terminal_height = 0

Detailed Description

Definition at line 17 of file Statusline.h.

Member Enumeration Documentation

◆ ScrollWindowMode

Enumerator
EnableStatusline 
DisableStatusline 
ResizeStatusline 

Definition at line 39 of file Statusline.h.

Constructor & Destructor Documentation

◆ Statusline()

Statusline::Statusline ( Debugger & debugger)

Definition at line 36 of file Statusline.cpp.

References Enable(), m_debugger, m_terminal_height, and m_terminal_width.

◆ ~Statusline()

Statusline::~Statusline ( )

Definition at line 42 of file Statusline.cpp.

References Disable().

Member Function Documentation

◆ Disable()

void Statusline::Disable ( )

Hide the statusline and extend the scroll window.

Definition at line 62 of file Statusline.cpp.

References DisableStatusline, and UpdateScrollWindow().

Referenced by ~Statusline().

◆ Draw()

void Statusline::Draw ( std::string msg)
private

◆ Enable()

void Statusline::Enable ( )

Reduce the scroll window and draw the statusline.

Definition at line 54 of file Statusline.cpp.

References EnableStatusline, Redraw(), and UpdateScrollWindow().

Referenced by Statusline().

◆ Redraw()

◆ TerminalSizeChanged()

void Statusline::TerminalSizeChanged ( )

Inform the statusline that the terminal dimensions have changed.

Definition at line 44 of file Statusline.cpp.

References m_debugger, m_terminal_height, m_terminal_width, Redraw(), ResizeStatusline, and UpdateScrollWindow().

◆ UpdateScrollWindow()

Member Data Documentation

◆ m_debugger

Debugger& lldb_private::Statusline::m_debugger
private

Definition at line 48 of file Statusline.h.

Referenced by Draw(), Redraw(), Statusline(), TerminalSizeChanged(), and UpdateScrollWindow().

◆ m_last_str

std::string lldb_private::Statusline::m_last_str
private

Definition at line 49 of file Statusline.h.

Referenced by Draw(), and Redraw().

◆ m_terminal_height

uint64_t lldb_private::Statusline::m_terminal_height = 0
private

Definition at line 51 of file Statusline.h.

Referenced by Draw(), Statusline(), TerminalSizeChanged(), and UpdateScrollWindow().

◆ m_terminal_width

uint64_t lldb_private::Statusline::m_terminal_width = 0
private

Definition at line 50 of file Statusline.h.

Referenced by Draw(), Statusline(), TerminalSizeChanged(), and UpdateScrollWindow().


The documentation for this class was generated from the following files: