enshort common namespaces

This commit is contained in:
yggverse 2024-08-05 18:15:32 +03:00
parent a830082b6b
commit 0d624d3db7
2 changed files with 33 additions and 48 deletions

View file

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

View file

@ -4,34 +4,28 @@
// Dependencies // Dependencies
#include "../bar.h" #include "../bar.h"
namespace app namespace app::browser::header
{ {
namespace browser class Bar;
namespace bar
{ {
namespace header class Title
{ {
class Bar; public:
namespace bar // GTK
{ GtkWidget *gtk;
class Title
{
public:
// GTK // Defaults
GtkWidget *gtk; const char* LABEL = "Yoda";
// Defaults // Dependencies
const char* LABEL = "Yoda"; Bar *bar;
// Dependencies Title(
Bar *bar; Bar *bar
);
Title(
Bar *bar
);
};
};
}; };
}; };
}; };