gtk :: GtkContainer :: defaultinit
# Base class for widgets which contain other widgets
# See: https://developer.gnome.org/gtk3/stable/GtkContainer.html
extern class GtkContainer `{GtkContainer *`}
super GtkWidget
# Add a widget to the container
fun add(widget: GtkWidget) `{
gtk_container_add(self, widget);
`}
# Remove the widget from the container
fun remove(widget: GtkWidget) `{
gtk_container_remove(self, widget);
`}
# Get the resize mode of the container
fun resize_mode: GtkResizeMode `{
return gtk_container_get_resize_mode(self);
`}
# Set the resize mode of the container
fun resize_mode=(resize_mode: GtkResizeMode) `{
gtk_container_set_resize_mode(self, resize_mode);
`}
end
lib/gtk/v3_4/gtk_core.nit:158,1--182,3