mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
init container class
This commit is contained in:
parent
47bd3b5b8b
commit
3e24a6fb72
1
Makefile
1
Makefile
@ -7,6 +7,7 @@ LDFLAGS = `pkg-config --libs gtk4`
|
||||
TARGET = bin/Yoda
|
||||
SRCS = src/main.cpp\
|
||||
src/app/browser.cpp\
|
||||
src/app/browser/container.cpp\
|
||||
src/app/browser/header.cpp
|
||||
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
|
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…
x
Reference in New Issue
Block a user