ncmpc  0.31
Public Member Functions | Protected Member Functions
Page Class Referenceabstract

#include <Page.hxx>

Inheritance diagram for Page:
ListPage ProxyPage AlbumListPage ArtistListPage FileListPage TextPage

Public Member Functions

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 OnResize (Size size)=0
 
virtual void Paint () const =0
 
virtual void Update (struct mpdclient &, unsigned)
 
virtual bool OnCommand (struct mpdclient &c, Command cmd)=0
 
virtual const char * GetTitle (char *s, size_t size) const =0
 

Protected Member Functions

const SizeGetLastSize () const
 

Constructor & Destructor Documentation

◆ ~Page()

virtual Page::~Page ( )
virtualdefault

Member Function Documentation

◆ IsDirty()

bool Page::IsDirty ( ) const
inline

◆ SetDirty()

void Page::SetDirty ( bool  _dirty = true)
inline

◆ Resize()

void Page::Resize ( Size  new_size)
inline

◆ AddPendingEvents()

void Page::AddPendingEvents ( unsigned  events)
inline

◆ Update() [1/2]

void Page::Update ( struct mpdclient c)
inline

◆ GetLastSize()

const Size& Page::GetLastSize ( ) const
inlineprotected

◆ OnOpen()

virtual void Page::OnOpen ( struct mpdclient )
inlinevirtual

Reimplemented in ProxyPage.

◆ OnClose()

virtual void Page::OnClose ( )
inlinevirtual

Reimplemented in ProxyPage.

◆ OnResize()

virtual void Page::OnResize ( Size  size)
pure virtual

Implemented in ProxyPage, and ListPage.

◆ Paint()

virtual void Page::Paint ( ) const
pure virtual

◆ Update() [2/2]

virtual void Page::Update ( struct mpdclient ,
unsigned   
)
inlinevirtual

Reimplemented in AlbumListPage, ProxyPage, and ArtistListPage.

◆ OnCommand()

virtual bool Page::OnCommand ( struct mpdclient c,
Command  cmd 
)
pure virtual

Handle a command.

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

Implemented in FileListPage, TextPage, AlbumListPage, ProxyPage, ArtistListPage, and ListPage.

◆ GetTitle()

virtual const char* Page::GetTitle ( char *  s,
size_t  size 
) const
pure virtual

Implemented in AlbumListPage, ProxyPage, and ArtistListPage.


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