/* GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see . */ /* * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #include "config.h" #include #include "gtkframe.h" #include "gtklabel.h" #include "gtkprivate.h" #include "gtktypebuiltins.h" #include "gtkbuildable.h" #include "gtkwidgetprivate.h" #include "gtklabel.h" /** * GtkFrame: * * `GtkFrame` is a widget that surrounds its child with a decorative * frame and an optional label. * * ![An example GtkFrame](frame.png) * * If present, the label is drawn inside the top edge of the frame. * The horizontal position of the label can be controlled with * [method@Gtk.Frame.set_label_align]. * * `GtkFrame` clips its child. You can use this to add rounded corners * to widgets, but be aware that it also cuts off shadows. * * # GtkFrame as GtkBuildable * * The `GtkFrame` implementation of the `GtkBuildable` interface supports * placing a child in the label position by specifying “label” as the * “type” attribute of a element. A normal content child can * be specified without specifying a type attribute. * * An example of a UI definition fragment with GtkFrame: * ```xml * * * * * * * * * ``` * * # CSS nodes * * ``` * frame * ├──