ncmpc  0.30
Public Member Functions | Protected Attributes
ListPage Class Reference

#include <ListPage.hxx>

Inheritance diagram for ListPage:
Page AlbumListPage ArtistListPage FileListPage TextPage

Public Member Functions

 ListPage (WINDOW *w, Size size)
 
void OnResize (Size size) override
 
bool OnCommand (struct mpdclient &, command_t cmd) override
 
- Public Member Functions inherited from Page
virtual ~Page ()=default
 
bool IsDirty () const
 
void SetDirty (bool _dirty=true)
 
void Resize (Size new_size)
 
void AddPendingEvents (unsigned events)
 
void Update (struct mpdclient &c)
 
virtual void OnOpen (struct mpdclient &)
 
virtual void OnClose ()
 
virtual void Paint () const =0
 
virtual void Update (struct mpdclient &, unsigned)
 
virtual const char * GetTitle (char *s, size_t size) const =0
 

Protected Attributes

ListWindow lw
 

Additional Inherited Members

- Protected Member Functions inherited from Page
const SizeGetLastSize () const
 

Detailed Description

An abstract Page implementation which shows a ListWindow.

Constructor & Destructor Documentation

◆ ListPage()

ListPage::ListPage ( WINDOW *  w,
Size  size 
)
inline

Member Function Documentation

◆ OnResize()

void ListPage::OnResize ( Size  size)
inlineoverridevirtual

Implements Page.

◆ OnCommand()

bool ListPage::OnCommand ( struct mpdclient c,
command_t  cmd 
)
inlineoverridevirtual

Handle a command.

Returns
true if the command should not be handled by the ncmpc core

Implements Page.

Reimplemented in TextPage.

Field Documentation

◆ lw

ListWindow ListPage::lw
protected

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