mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init header title class
This commit is contained in:
parent
f6e855e4b2
commit
c8b7bef23c
3 changed files with 64 additions and 0 deletions
27
src/app/browser/header/title.cpp
Normal file
27
src/app/browser/header/title.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include "title.h"
|
||||
|
||||
namespace app
|
||||
{
|
||||
namespace browser
|
||||
{
|
||||
namespace header
|
||||
{
|
||||
// Construct
|
||||
Title::Title(
|
||||
Header *header
|
||||
) {
|
||||
// Init GTK
|
||||
this->gtk = gtk_box_new(
|
||||
GTK_ORIENTATION_HORIZONTAL,
|
||||
Title::SPACING
|
||||
);
|
||||
|
||||
gtk_widget_show(
|
||||
GTK_WIDGET(
|
||||
this->gtk
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
36
src/app/browser/header/title.h
Normal file
36
src/app/browser/header/title.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#ifndef APP_BROWSER_HEADER_TITLE_H
|
||||
#define APP_BROWSER_HEADER_TITLE_H
|
||||
|
||||
// Dependencies
|
||||
#include "../header.h"
|
||||
|
||||
namespace app
|
||||
{
|
||||
namespace browser
|
||||
{
|
||||
class Header;
|
||||
|
||||
namespace header
|
||||
{
|
||||
class Title
|
||||
{
|
||||
public:
|
||||
|
||||
// GTK
|
||||
GtkWidget *gtk;
|
||||
|
||||
// Defaults
|
||||
const gint SPACING = 0;
|
||||
|
||||
// Dependencies
|
||||
Header *header;
|
||||
|
||||
Title(
|
||||
Header *header
|
||||
);
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue