Browse Source

enshort common namespaces

CPP-GTK4
yggverse 4 months ago
parent
commit
0d624d3db7
  1. 45
      src/app/browser/header/bar/title.cpp
  2. 36
      src/app/browser/header/bar/title.h

45
src/app/browser/header/bar/title.cpp

@ -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
) )
); );
}
}
}
} }
} }

36
src/app/browser/header/bar/title.h

@ -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
{
class Title
{
public:
// GTK // GTK
GtkWidget *gtk; GtkWidget *gtk;
// Defaults // Defaults
const char* LABEL = "Yoda"; const char* LABEL = "Yoda";
// Dependencies // Dependencies
Bar *bar; Bar *bar;
Title( Title(
Bar *bar Bar *bar
); );
};
};
}; };
}; };
}; };

Loading…
Cancel
Save