---
name: "Gtk2::ButtonBox"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::ButtonBox"
---

# Gtk2::ButtonBox(3pm)

wrapper for GtkButtonBox

## NAME

Gtk2::ButtonBox - wrapper for GtkButtonBox

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Box
                           +----Gtk2::ButtonBox
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Orientable
```

## METHODS

### boolean = $widget-\>get\_child\_secondary ($child)

- •

  `$child` (Gtk2::Widget)

Since: gtk+ 2.4

### $widget-\>set\_child\_secondary ($child, $is\_secondary)

- •

  `$child` (Gtk2::Widget)

- •

  `$is_secondary` (boolean)

### buttonboxstyle = $widget-\>get\_layout

### $widget-\>set\_layout ($layout\_style)

- •

  `$layout_style` (Gtk2::ButtonBoxStyle)

## PROPERTIES

- 'layout-style' (Gtk2::ButtonBoxStyle : default "default-style" : readable / writable / private)

  How to lay out the buttons in the box. Possible values are: default, spread, edge, start and end

## CHILD PROPERTIES

- 'secondary' (boolean : default false : readable / writable / private)

  If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons

## STYLE PROPERTIES

- 'child-internal-pad-x' (integer : default 4 : readable / private)

  Amount to increase child's size on either side

- 'child-internal-pad-y' (integer : default 0 : readable / private)

  Amount to increase child's size on the top and bottom

- 'child-min-height' (integer : default 27 : readable / private)

  Minimum height of buttons inside the box

- 'child-min-width' (integer : default 85 : readable / private)

  Minimum width of buttons inside the box

## ENUMS AND FLAGS

### enum Gtk2::ButtonBoxStyle

- •

  'default-style' / 'GTK\_BUTTONBOX\_DEFAULT\_STYLE'

- •

  'spread' / 'GTK\_BUTTONBOX\_SPREAD'

- •

  'edge' / 'GTK\_BUTTONBOX\_EDGE'

- •

  'start' / 'GTK\_BUTTONBOX\_START'

- •

  'end' / 'GTK\_BUTTONBOX\_END'

- •

  'center' / 'GTK\_BUTTONBOX\_CENTER'

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
