init bar title

This commit is contained in:
yggverse 2024-08-05 18:11:04 +03:00
parent 18c3b8b72c
commit a830082b6b
5 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,33 @@
#include "title.h"
namespace app
{
namespace browser
{
namespace header
{
namespace bar
{
// Construct
Title::Title(
Bar *bar
) {
// Init dependencies
this->bar = bar;
// Init GTK
this->gtk = gtk_label_new(
Title::LABEL
);
// Render
gtk_widget_show(
GTK_WIDGET(
this->gtk
)
);
}
}
}
}
}

View file

@ -0,0 +1,39 @@
#ifndef APP_BROWSER_HEADER_BAR_TITLE_H
#define APP_BROWSER_HEADER_BAR_TITLE_H
// Dependencies
#include "../bar.h"
namespace app
{
namespace browser
{
namespace header
{
class Bar;
namespace bar
{
class Title
{
public:
// GTK
GtkWidget *gtk;
// Defaults
const char* LABEL = "Yoda";
// Dependencies
Bar *bar;
Title(
Bar *bar
);
};
};
};
};
};
#endif