Package: gtk
Class gtk-frame
Superclassesgtk-bin, gtk-container, gtk-widget, gtk-buildable, g-object, common-lisp:standard-object, common-lisp:t Documented SubclassesDirect SlotsDetails The frame widget is a gtk-bin widget that surrounds its child with
a decorative frame and an optional label. ![]() If present, the label is drawn in a gap in the top side of the frame. The position of the label can be controlled with the function gtk-frame-label-align. GtkFrame as GtkBuildableExample: A UI definition fragment with a gtk-frame widget <object class="GtkFrame"> <child type="label"> <object class="GtkLabel" id="frame-label"/> </child> <child> <object class="GtkEntry" id="frame-content"/> </child> </object> CSS nodesframe ├── border[.flat] ├── <label widget> ╰── <child>The gtk-frame implementation has a main CSS node named frame and a subnode named border. The border node is used to draw the visible border. You can set the appearance of the border using CSS properties like border-style on the border node. The border node can be given the .flat style class, which is used by themes to disable drawing of the border. To do this from code, call the gtk-frame-shadow-type function with the :none value to add the .flat style class or any other shadow type to remove it. | Slot Access Functions
Inherited Slot Access FunctionsSee also |
*2021-5-23