init page class

This commit is contained in:
yggverse 2024-08-05 04:34:40 +03:00
parent c0e27fa551
commit 0a7090ec50
3 changed files with 58 additions and 0 deletions

View File

@ -8,6 +8,7 @@ TARGET = bin/Yoda
SRCS = src/main.cpp\
src/app/browser.cpp\
src/app/browser/container.cpp\
src/app/browser/container/page.cpp\
src/app/browser/container/tab.cpp\
src/app/browser/header.cpp

View File

@ -0,0 +1,27 @@
#include "page.h"
namespace app
{
namespace browser
{
namespace container
{
// Construct
Page::Page(
Container *container
) {
// Init GTK
this->gtk = gtk_box_new(
GTK_ORIENTATION_VERTICAL,
Page::SPACING
);
gtk_widget_show(
GTK_WIDGET(
this->gtk
)
);
}
}
}
}

View File

@ -0,0 +1,30 @@
#ifndef APP_BROWSER_CONTAINER_PAGE_H
#define APP_BROWSER_CONTAINER_PAGE_H
#include "../container.h"
namespace app
{
namespace browser
{
class Container;
namespace container
{
class Page
{
public:
GtkWidget *gtk;
const gint SPACING = 0;
Page(
Container *container
);
};
};
};
};
#endif