Browse Source

init page class

CPP-GTK4
yggverse 4 months ago
parent
commit
0a7090ec50
  1. 1
      Makefile
  2. 27
      src/app/browser/container/page.cpp
  3. 30
      src/app/browser/container/page.h

1
Makefile

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

27
src/app/browser/container/page.cpp

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

30
src/app/browser/container/page.h

@ -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
Loading…
Cancel
Save