---
name: "Gnome2::Bonobo::Dock"
section: "3pm"
platform: "linux"
package: "libgnome2-perl"
version: "1.046-3+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::Bonobo::Dock"
---

# Gnome2::Bonobo::Dock(3pm)

wrapper for BonoboDock

## NAME

Gnome2::Bonobo::Dock - wrapper for BonoboDock

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gnome2::Bonobo::Dock
```

## INTERFACES

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

## METHODS

### widget = Gnome2::Bonobo::Dock-\>new

### $dock-\>add\_floating\_item ($widget, $x, $y, $orientation)

- •

  `$widget` (Gnome2::Bonobo::DockItem)

- •

  `$x` (integer)

- •

  `$y` (integer)

- •

  `$orientation` (Gtk2::Orientation)

### boolean = $dock-\>add\_from\_layout ($layout)

- •

  `$layout` (Gnome2::Bonobo::DockLayout)

### $dock-\>add\_item ($item, $placement, $band\_num, $position, $offset, $in\_new\_band)

- •

  `$item` (Gnome2::Bonobo::DockItem)

- •

  `$placement` (Gnome2::Bonobo::DockPlacement)

- •

  `$band_num` (integer)

- •

  `$position` (integer)

- •

  `$offset` (integer)

- •

  `$in_new_band` (boolean)

### $dock-\>allow\_floating\_items ($enable)

- •

  `$enable` (boolean)

### widget = $dock-\>get\_client\_area

### $dock-\>set\_client\_area ($widget)

- •

  `$widget` (Gtk2::Widget)

### list = $dock-\>get\_item\_by\_name ($name)

- •

  `$name` (string)

Returns a BonoboDockItem, a BonoboDockPlacement and three unsigned integers corresponding to num\_band, band\_position and offset.

### docklayout = $dock-\>get\_layout

## SIGNALS

- **layout-changed** (Gnome2::Bonobo::Dock)

  ## ENUMS AND FLAGS

### enum Gnome2::Bonobo::DockPlacement

- •

  'top' / 'BONOBO\_DOCK\_TOP'

- •

  'right' / 'BONOBO\_DOCK\_RIGHT'

- •

  'bottom' / 'BONOBO\_DOCK\_BOTTOM'

- •

  'left' / 'BONOBO\_DOCK\_LEFT'

- •

  'floating' / 'BONOBO\_DOCK\_FLOATING'

### enum Gtk2::Orientation

- •

  'horizontal' / 'GTK\_ORIENTATION\_HORIZONTAL'

- •

  'vertical' / 'GTK\_ORIENTATION\_VERTICAL'

## SEE ALSO

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

## COPYRIGHT

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

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