mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
init page class
This commit is contained in:
parent
c0e27fa551
commit
0a7090ec50
3 changed files with 58 additions and 0 deletions
1
Makefile
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
Normal file
27
src/app/browser/container/page.cpp
Normal 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
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
30
src/app/browser/container/page.h
Normal file
30
src/app/browser/container/page.h
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue