mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init container class
This commit is contained in:
parent
47bd3b5b8b
commit
3e24a6fb72
3 changed files with 52 additions and 0 deletions
24
src/app/browser/container.cpp
Normal file
24
src/app/browser/container.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include "container.h"
|
||||
|
||||
namespace app
|
||||
{
|
||||
namespace browser
|
||||
{
|
||||
// Construct
|
||||
Container::Container(
|
||||
Browser *browser
|
||||
) {
|
||||
// Init GTK
|
||||
this->gtk = gtk_box_new(
|
||||
GTK_ORIENTATION_VERTICAL,
|
||||
Container::SPACING
|
||||
);
|
||||
|
||||
gtk_widget_show(
|
||||
GTK_WIDGET(
|
||||
this->gtk
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
27
src/app/browser/container.h
Normal file
27
src/app/browser/container.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef APP_BROWSER_CONTAINER_H
|
||||
#define APP_BROWSER_CONTAINER_H
|
||||
|
||||
#include "../browser.h"
|
||||
|
||||
namespace app
|
||||
{
|
||||
class Browser;
|
||||
|
||||
namespace browser
|
||||
{
|
||||
class Container
|
||||
{
|
||||
public:
|
||||
|
||||
GtkWidget *gtk;
|
||||
|
||||
const gint SPACING = 0;
|
||||
|
||||
Container(
|
||||
Browser *browser
|
||||
);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue