'src/player_command.cxx',
'src/TitleBar.cxx',
'src/progress_bar.cxx',
- 'src/status_bar.cxx',
+ 'src/StatusBar.cxx',
'src/screen.cxx',
'src/screen_init.cxx',
'src/screen_paint.cxx',
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "status_bar.hxx"
+#include "StatusBar.hxx"
#include "options.hxx"
#include "colors.hxx"
#include "i18n.h"
#include <string.h>
void
-status_bar_init(struct status_bar *p, unsigned width, int y, int x)
+status_bar_init(StatusBar *p, unsigned width, int y, int x)
{
window_init(&p->window, 1, width, y, x);
}
void
-status_bar_deinit(struct status_bar *p)
+status_bar_deinit(StatusBar *p)
{
delwin(p->window.w);
}
void
-status_bar_clear_message(struct status_bar *p)
+status_bar_clear_message(StatusBar *p)
{
assert(p != nullptr);
#endif /* !NCMPC_MINI */
void
-status_bar_paint(struct status_bar *p, const struct mpd_status *status,
+status_bar_paint(StatusBar *p, const struct mpd_status *status,
const struct mpd_song *song)
{
WINDOW *w = p->window.w;
}
void
-status_bar_resize(struct status_bar *p, unsigned width, int y, int x)
+status_bar_resize(StatusBar *p, unsigned width, int y, int x)
{
p->window.cols = width;
wresize(p->window.w, 1, width);
static gboolean
status_bar_clear_message_cb(gpointer data)
{
- auto *p = (struct status_bar *)data;
+ auto *p = (StatusBar *)data;
assert(p->message_source_id != 0);
p->message_source_id = 0;
}
void
-status_bar_message(struct status_bar *p, const char *msg)
+status_bar_message(StatusBar *p, const char *msg)
{
WINDOW *w = p->window.w;
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef NCMPC_STATUS_BAR_H
-#define NCMPC_STATUS_BAR_H
+#ifndef NCMPC_STATUS_BAR_HXX
+#define NCMPC_STATUS_BAR_HXX
#include "window.hxx"
struct mpd_status;
struct mpd_song;
-struct status_bar {
+struct StatusBar {
struct window window;
guint message_source_id;
};
void
-status_bar_init(struct status_bar *p, unsigned width, int y, int x);
+status_bar_init(StatusBar *p, unsigned width, int y, int x);
void
-status_bar_deinit(struct status_bar *p);
+status_bar_deinit(StatusBar *p);
void
-status_bar_paint(struct status_bar *p, const struct mpd_status *status,
+status_bar_paint(StatusBar *p, const struct mpd_status *status,
const struct mpd_song *song);
void
-status_bar_resize(struct status_bar *p, unsigned width, int y, int x);
+status_bar_resize(StatusBar *p, unsigned width, int y, int x);
void
-status_bar_message(struct status_bar *p, const char *msg);
+status_bar_message(StatusBar *p, const char *msg);
void
-status_bar_clear_message(struct status_bar *p);
+status_bar_clear_message(StatusBar *p);
#endif
#include "window.hxx"
#include "TitleBar.hxx"
#include "progress_bar.hxx"
-#include "status_bar.hxx"
+#include "StatusBar.hxx"
#include "ncmpc_curses.h"
#include <mpd/client.h>
TitleBar title_bar;
struct window main_window;
struct progress_bar progress_bar;
- struct status_bar status_bar;
+ StatusBar status_bar;
using PageMap = std::map<const struct screen_functions *,
std::unique_ptr<Page>>;