LLDB  mainline
Public Member Functions | Protected Attributes | List of all members
curses::Window Class Reference
Collaboration diagram for curses::Window:
Collaboration graph
[legend]

Public Member Functions

 Window (const char *name)
 
 Window (const char *name, WINDOW *w, bool del=true)
 
 Window (const char *name, const Rect &bounds)
 
virtual ~Window ()
 
void Reset (WINDOW *w=nullptr, bool del=true)
 
void AttributeOn (attr_t attr)
 
void AttributeOff (attr_t attr)
 
void Box (chtype v_char=ACS_VLINE, chtype h_char=ACS_HLINE)
 
void Clear ()
 
void Erase ()
 
Rect GetBounds ()
 
int GetChar ()
 
int GetCursorX ()
 
int GetCursorY ()
 
Rect GetFrame ()
 
Point GetParentOrigin ()
 
Size GetSize ()
 
int GetParentX ()
 
int GetParentY ()
 
int GetMaxX ()
 
int GetMaxY ()
 
int GetWidth ()
 
int GetHeight ()
 
void MoveCursor (int x, int y)
 
void MoveWindow (int x, int y)
 
void Resize (int w, int h)
 
void Resize (const Size &size)
 
void PutChar (int ch)
 
void PutCString (const char *s, int len=-1)
 
void Refresh ()
 
void DeferredRefresh ()
 
void SetBackground (int color_pair_idx)
 
void UnderlineOn ()
 
void UnderlineOff ()
 
void PutCStringTruncated (const char *s, int right_pad)
 
void MoveWindow (const Point &origin)
 
void SetBounds (const Rect &bounds)
 
void Printf (const char *format,...) __attribute__((format(printf
 
void va_start (args, format)
 
 vwprintw (m_window, format, args)
 
 va_end (args)
 
void Touch ()
 
WindowSP CreateSubWindow (const char *name, const Rect &bounds, bool make_active)
 
bool RemoveSubWindow (Window *window)
 
WindowSP FindSubWindow (const char *name)
 
void RemoveSubWindows ()
 
WINDOW * get ()
 
 operator WINDOW * ()
 
void DrawTitleBox (const char *title, const char *bottom_message=nullptr)
 
virtual void Draw (bool force)
 
bool CreateHelpSubwindow ()
 
virtual HandleCharResult HandleChar (int key)
 
bool SetActiveWindow (Window *window)
 
WindowSP GetActiveWindow ()
 
bool GetCanBeActive () const
 
void SetCanBeActive (bool b)
 
const WindowDelegateSPGetDelegate () const
 
void SetDelegate (const WindowDelegateSP &delegate_sp)
 
WindowGetParent () const
 
bool IsActive () const
 
void SelectNextWindowAsActive ()
 
const char * GetName () const
 

Protected Attributes

std::string m_name
 
WINDOW * m_window
 
PANEL * m_panel
 
Windowm_parent
 
Windows m_subwindows
 
WindowDelegateSP m_delegate_sp
 
uint32_t m_curr_active_window_idx
 
uint32_t m_prev_active_window_idx
 
bool m_delete
 
bool m_needs_update
 
bool m_can_activate
 
bool m_is_subwin
 

Detailed Description

Definition at line 861 of file IOHandler.cpp.

Constructor & Destructor Documentation

◆ Window() [1/3]

curses::Window::Window ( const char *  name)
inline

Definition at line 863 of file IOHandler.cpp.

◆ Window() [2/3]

curses::Window::Window ( const char *  name,
WINDOW *  w,
bool  del = true 
)
inline

Definition at line 869 of file IOHandler.cpp.

◆ Window() [3/3]

curses::Window::Window ( const char *  name,
const Rect bounds 
)
inline

◆ ~Window()

virtual curses::Window::~Window ( )
inlinevirtual

Definition at line 887 of file IOHandler.cpp.

Member Function Documentation

◆ AttributeOff()

void curses::Window::AttributeOff ( attr_t  attr)
inline

◆ AttributeOn()

void curses::Window::AttributeOn ( attr_t  attr)
inline

◆ Box()

void curses::Window::Box ( chtype  v_char = ACS_VLINE,
chtype  h_char = ACS_HLINE 
)
inline

Definition at line 914 of file IOHandler.cpp.

Referenced by curses::Menu::WindowDelegateDraw().

◆ Clear()

void curses::Window::Clear ( )
inline

Definition at line 917 of file IOHandler.cpp.

◆ CreateHelpSubwindow()

bool curses::Window::CreateHelpSubwindow ( )
inline

◆ CreateSubWindow()

WindowSP curses::Window::CreateSubWindow ( const char *  name,
const Rect bounds,
bool  make_active 
)
inline

◆ DeferredRefresh()

void curses::Window::DeferredRefresh ( )
inline

◆ Draw()

virtual void curses::Window::Draw ( bool  force)
inlinevirtual

Definition at line 1119 of file IOHandler.cpp.

◆ DrawTitleBox()

void curses::Window::DrawTitleBox ( const char *  title,
const char *  bottom_message = nullptr 
)
inline

◆ Erase()

void curses::Window::Erase ( )
inline

◆ FindSubWindow()

WindowSP curses::Window::FindSubWindow ( const char *  name)
inline

Definition at line 1054 of file IOHandler.cpp.

◆ get()

WINDOW* curses::Window::get ( )
inline

Definition at line 1077 of file IOHandler.cpp.

◆ GetActiveWindow()

WindowSP curses::Window::GetActiveWindow ( )
inline

Definition at line 1218 of file IOHandler.cpp.

References lldb_private::IOHandler::IsActive(), and UINT32_MAX.

◆ GetBounds()

Rect curses::Window::GetBounds ( )
inline

Definition at line 919 of file IOHandler.cpp.

◆ GetCanBeActive()

bool curses::Window::GetCanBeActive ( ) const
inline

Definition at line 1245 of file IOHandler.cpp.

◆ GetChar()

int curses::Window::GetChar ( )
inline

Definition at line 922 of file IOHandler.cpp.

◆ GetCursorX()

int curses::Window::GetCursorX ( )
inline

◆ GetCursorY()

int curses::Window::GetCursorY ( )
inline

Definition at line 924 of file IOHandler.cpp.

Referenced by curses::Menu::DrawMenuTitle().

◆ GetDelegate()

const WindowDelegateSP& curses::Window::GetDelegate ( ) const
inline

Definition at line 1249 of file IOHandler.cpp.

◆ GetFrame()

Rect curses::Window::GetFrame ( )
inline

Definition at line 925 of file IOHandler.cpp.

◆ GetHeight()

int curses::Window::GetHeight ( )
inline

◆ GetMaxX()

int curses::Window::GetMaxX ( )
inline

Definition at line 932 of file IOHandler.cpp.

Referenced by SourceFileWindowDelegate::WindowDelegateDraw().

◆ GetMaxY()

int curses::Window::GetMaxY ( )
inline

Definition at line 933 of file IOHandler.cpp.

Referenced by SourceFileWindowDelegate::WindowDelegateDraw().

◆ GetName()

const char* curses::Window::GetName ( ) const
inline

◆ GetParent()

Window* curses::Window::GetParent ( ) const
inline

◆ GetParentOrigin()

Point curses::Window::GetParentOrigin ( )
inline

Definition at line 928 of file IOHandler.cpp.

◆ GetParentX()

int curses::Window::GetParentX ( )
inline

Definition at line 930 of file IOHandler.cpp.

◆ GetParentY()

int curses::Window::GetParentY ( )
inline

Definition at line 931 of file IOHandler.cpp.

◆ GetSize()

Size curses::Window::GetSize ( )
inline

Definition at line 929 of file IOHandler.cpp.

◆ GetWidth()

int curses::Window::GetWidth ( )
inline

◆ HandleChar()

virtual HandleCharResult curses::Window::HandleChar ( int  key)
inlinevirtual

Definition at line 1173 of file IOHandler.cpp.

References curses::eKeyNotHandled.

◆ IsActive()

bool curses::Window::IsActive ( ) const
inline

Definition at line 1257 of file IOHandler.cpp.

Referenced by ValueObjectListDelegate::DisplayRows(), and TreeItem::Draw().

◆ MoveCursor()

void curses::Window::MoveCursor ( int  x,
int  y 
)
inline

◆ MoveWindow() [1/2]

void curses::Window::MoveWindow ( int  x,
int  y 
)
inline

Definition at line 937 of file IOHandler.cpp.

References MoveWindow().

Referenced by MoveWindow().

◆ MoveWindow() [2/2]

void curses::Window::MoveWindow ( const Point origin)
inline

◆ operator WINDOW *()

curses::Window::operator WINDOW * ( )
inline

Definition at line 1079 of file IOHandler.cpp.

◆ Printf()

void curses::Window::Printf ( const char *  format,
  ... 
)

◆ PutChar()

void curses::Window::PutChar ( int  ch)
inline

◆ PutCString()

void curses::Window::PutCString ( const char *  s,
int  len = -1 
)
inline

◆ PutCStringTruncated()

void curses::Window::PutCStringTruncated ( const char *  s,
int  right_pad 
)
inline

◆ Refresh()

void curses::Window::Refresh ( )
inline

Definition at line 944 of file IOHandler.cpp.

◆ RemoveSubWindow()

bool curses::Window::RemoveSubWindow ( Window window)
inline

◆ RemoveSubWindows()

void curses::Window::RemoveSubWindows ( )
inline

Definition at line 1064 of file IOHandler.cpp.

References UINT32_MAX.

◆ Reset()

void curses::Window::Reset ( WINDOW *  w = nullptr,
bool  del = true 
)
inline

Definition at line 892 of file IOHandler.cpp.

◆ Resize() [1/2]

void curses::Window::Resize ( int  w,
int  h 
)
inline

Definition at line 938 of file IOHandler.cpp.

◆ Resize() [2/2]

void curses::Window::Resize ( const Size size)
inline

Definition at line 939 of file IOHandler.cpp.

References curses::Size::height, and curses::Size::width.

◆ SelectNextWindowAsActive()

void curses::Window::SelectNextWindowAsActive ( )
inline

Definition at line 1264 of file IOHandler.cpp.

References UINT32_MAX.

Referenced by ApplicationDelegate::WindowDelegateHandleChar().

◆ SetActiveWindow()

bool curses::Window::SetActiveWindow ( Window window)
inline

Definition at line 1205 of file IOHandler.cpp.

References m_panel.

◆ SetBackground()

void curses::Window::SetBackground ( int  color_pair_idx)
inline

◆ SetBounds()

void curses::Window::SetBounds ( const Rect bounds)
inline

◆ SetCanBeActive()

void curses::Window::SetCanBeActive ( bool  b)
inline

Definition at line 1247 of file IOHandler.cpp.

◆ SetDelegate()

void curses::Window::SetDelegate ( const WindowDelegateSP delegate_sp)
inline

Definition at line 1251 of file IOHandler.cpp.

◆ Touch()

void curses::Window::Touch ( )
inline

Definition at line 997 of file IOHandler.cpp.

◆ UnderlineOff()

void curses::Window::UnderlineOff ( )
inline

Definition at line 953 of file IOHandler.cpp.

◆ UnderlineOn()

void curses::Window::UnderlineOn ( )
inline

Definition at line 952 of file IOHandler.cpp.

◆ va_end()

curses::Window::va_end ( args  )

◆ va_start()

void curses::Window::va_start ( args  ,
format   
)

◆ vwprintw()

curses::Window::vwprintw ( m_window  ,
format  ,
args   
)

Member Data Documentation

◆ m_can_activate

bool curses::Window::m_can_activate
protected

Definition at line 1319 of file IOHandler.cpp.

◆ m_curr_active_window_idx

uint32_t curses::Window::m_curr_active_window_idx
protected

Definition at line 1315 of file IOHandler.cpp.

◆ m_delegate_sp

WindowDelegateSP curses::Window::m_delegate_sp
protected

Definition at line 1314 of file IOHandler.cpp.

◆ m_delete

bool curses::Window::m_delete
protected

Definition at line 1317 of file IOHandler.cpp.

◆ m_is_subwin

bool curses::Window::m_is_subwin
protected

Definition at line 1320 of file IOHandler.cpp.

◆ m_name

std::string curses::Window::m_name
protected

Definition at line 1309 of file IOHandler.cpp.

◆ m_needs_update

bool curses::Window::m_needs_update
protected

Definition at line 1318 of file IOHandler.cpp.

◆ m_panel

PANEL* curses::Window::m_panel
protected

Definition at line 1311 of file IOHandler.cpp.

Referenced by SetActiveWindow().

◆ m_parent

Window* curses::Window::m_parent
protected

Definition at line 1312 of file IOHandler.cpp.

◆ m_prev_active_window_idx

uint32_t curses::Window::m_prev_active_window_idx
protected

Definition at line 1316 of file IOHandler.cpp.

◆ m_subwindows

Windows curses::Window::m_subwindows
protected

Definition at line 1313 of file IOHandler.cpp.

◆ m_window

WINDOW* curses::Window::m_window
protected

Definition at line 1310 of file IOHandler.cpp.


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