wavelength 1.0.0
Loading...
Searching...
No Matches
playlistpanel.h
Go to the documentation of this file.
1#pragma once
2
5#include "script/dataarray.h"
6#include "ui/uipanel.h"
7
16public:
25 PlaylistPanel(DataArray *pData, const char *pszDir) : FocusChangePanel(pData, pszDir) {
26 }
27
34 ~PlaylistPanel() override {
35 }
36
46 static UIPanel *New(DataArray *pData, const char *pszDir) {
47 return new PlaylistPanel(pData, pszDir);
48 }
49
58 bool DispatchPriv(Message *pMsg) override;
59
66 void Focus() override;
67
74 void Unfocus() override;
75
76private:
87 bool HandleJoypad(JoypadInputMsg *pMsg);
88};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FocusChangePanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
~PlaylistPanel() override
Destroy the panel.
Definition playlistpanel.h:34
PlaylistPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Definition playlistpanel.h:25
bool DispatchPriv(Message *pMsg) override
Route the controller to HandleJoypad().
void Focus() override
Take the focus and move the cursor of the list.
void Unfocus() override
Lose the focus and dim the cursor of the list.
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition playlistpanel.h:46
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.