---
name: "Goo::Canvas::Widget"
section: "3pm"
platform: "linux"
package: "libgoo-canvas-perl"
version: "0.06-2+b3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Goo::Canvas::Widget"
---

# Goo::Canvas::Widget(3pm)

wrapper for GooCanvasWidget

## NAME

Goo::Canvas::Widget - wrapper for GooCanvasWidget

## HIERARCHY

```
  Glib::Object
  +----Goo::Canvas::ItemSimple
       +----Goo::Canvas::Widget
```

## INTERFACES

```
  Goo::Canvas::Item
```

## METHODS

### item = Goo::Canvas::Widget-\>new ($parent, $widget, $x, $y, $width, $height, ...)

- •

  `$parent` (Goo::Canvas::Item)

- •

  `$widget` (Gtk2::Widget)

- •

  `$x` (double)

- •

  `$y` (double)

- •

  `$width` (double)

- •

  `$height` (double)

- •

  ... (list)

## PROPERTIES

- 'anchor' (Gtk2::AnchorType : default "north-west" : readable / writable)

  How to position the widget relative to the item's x and y coordinate settings

- 'height' (double : default -1 : readable / writable)

  The height of the widget, or -1 to use its requested height

- 'widget' (Gtk2::Widget : default undef : readable / writable)

  The widget to place in the canvas

- 'width' (double : default -1 : readable / writable)

  The width of the widget, or -1 to use its requested width

- 'x' (double : default 0 : readable / writable)

  The x coordinate of the widget

- 'y' (double : default 0 : readable / writable)

  The y coordinate of the widget

## ENUMS AND FLAGS

### enum Gtk2::AnchorType

- •

  'center' / 'GTK\_ANCHOR\_CENTER'

- •

  'north' / 'GTK\_ANCHOR\_NORTH'

- •

  'north-west' / 'GTK\_ANCHOR\_NORTH\_WEST'

- •

  'north-east' / 'GTK\_ANCHOR\_NORTH\_EAST'

- •

  'south' / 'GTK\_ANCHOR\_SOUTH'

- •

  'south-west' / 'GTK\_ANCHOR\_SOUTH\_WEST'

- •

  'south-east' / 'GTK\_ANCHOR\_SOUTH\_EAST'

- •

  'west' / 'GTK\_ANCHOR\_WEST'

- •

  'east' / 'GTK\_ANCHOR\_EAST'

- •

  'n' / 'GTK\_ANCHOR\_N'

- •

  'nw' / 'GTK\_ANCHOR\_NW'

- •

  'ne' / 'GTK\_ANCHOR\_NE'

- •

  's' / 'GTK\_ANCHOR\_S'

- •

  'sw' / 'GTK\_ANCHOR\_SW'

- •

  'se' / 'GTK\_ANCHOR\_SE'

- •

  'w' / 'GTK\_ANCHOR\_W'

- •

  'e' / 'GTK\_ANCHOR\_E'

## SEE ALSO

Glib::Object, Goo::Canvas::ItemSimple

## COPYRIGHT

Copyright (C) 2014 Gtk2-Perl Team
