33 #include <mpd/client.h> 47 static constexpr
int title_y = 0, title_x = 0;
49 static constexpr
int progress_x = 0;
50 static constexpr
int status_x = 0;
52 constexpr
explicit Layout(
Size _size)
55 constexpr
unsigned GetMainRows()
const {
56 return GetProgressY() - main_y;
59 constexpr
Size GetMainSize()
const {
60 return {size.
width, GetMainRows()};
63 constexpr
int GetProgressY()
const {
64 return GetStatusY() - 1;
67 constexpr
int GetStatusY()
const {
86 std::unique_ptr<Page>>;
88 PageMap::iterator current_page = pages.begin();
123 return &page == current_page->second.get();
131 void Paint(
bool main_dirty);
141 void NextMode(
struct mpdclient &c,
int offset);
144 bool OnWelcomeTimer();
unsigned welcome_source_id
Definition: screen.hxx:104
gcc_pure bool IsVisible(const Page &page) const
Definition: screen.hxx:122
Definition: screen.hxx:43
std::list< std::string > History
Definition: History.hxx:26
void Paint(bool main_dirty)
Definition: screen_interface.hxx:30
StatusBar status_bar
Definition: screen.hxx:82
Definition: Window.hxx:28
std::string findbuf
Definition: screen.hxx:96
Point GetMainPosition() const
Definition: screen.hxx:113
Definition: mpdclient.hxx:17
Window main_window
Definition: screen.hxx:76
Definition: StatusBar.hxx:36
void Switch(const struct screen_functions &sf, struct mpdclient &c)
static constexpr unsigned GetHeight()
Definition: TitleBar.hxx:36
Definition: TitleBar.hxx:27
void Swap(struct mpdclient &c, const struct mpd_song *song)
void Update(struct mpdclient &c)
unsigned width
Definition: Size.hxx:27
unsigned height
Definition: Size.hxx:27
PageMap::iterator MakePage(const struct screen_functions &sf)
History find_history
Definition: screen.hxx:97
#define gcc_pure
Definition: Compiler.h:101
command_t
Definition: command.hxx:35
void Init(struct mpdclient *c)
void OnCommand(struct mpdclient &c, command_t cmd)
Definition: ProgressBar.hxx:25