AutoCatGnome/gtkpp/Box.cpp

26 lines
500 B
C++

//
// Created by selim on 10.05.2022.
//
#include "Box.h"
namespace gtkpp {
Box::Box(GtkWidget *widget): Widget() {
_widget = widget;
}
Box::Box(GtkOrientation orientation, int spacing) : Widget() {
_widget = gtk_box_new(orientation, spacing);
}
void Box::append(const gtkpp::Widget& widget) {
gtk_box_append(GTK_BOX(_widget), widget.gobj());
}
void Box::append(GtkWidget *widget) {
gtk_box_append(GTK_BOX(_widget), widget);
}
}