---
name: "Gtk2::IconSize"
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::IconSize"
---

# Gtk2::IconSize(3pm)

wrapper for GtkIconSize

## NAME

Gtk2::IconSize - wrapper for GtkIconSize

## HIERARCHY

```
  Glib::Enum
  +----Gtk2::IconSize
```

## METHODS

### iconsize = Gtk2::IconSize-\>from\_name ($name)

- •

  `$name` (string)

### (width, height) = Gtk2::IconSize-\>lookup ($size)

- •

  `$size` (Gtk2::IconSize)

### (width, height) = Gtk2::IconSize-\>lookup\_for\_settings ($settings, $size)

- •

  `$settings` (Gtk2::Settings)

- •

  `$size` (Gtk2::IconSize)

Since: gtk+ 2.2

### iconsize = Gtk2::IconSize-\>register ($name, $width, $height)

- •

  `$name` (string)

- •

  `$width` (integer)

- •

  `$height` (integer)

### Gtk2::IconSize-\>register\_alias ($alias, $target)

- •

  `$alias` (string)

- •

  `$target` (Gtk2::IconSize)

## ENUMS AND FLAGS

### enum Gtk2::IconSize

- •

  'invalid' / 'GTK\_ICON\_SIZE\_INVALID'

- •

  'menu' / 'GTK\_ICON\_SIZE\_MENU'

- •

  'small-toolbar' / 'GTK\_ICON\_SIZE\_SMALL\_TOOLBAR'

- •

  'large-toolbar' / 'GTK\_ICON\_SIZE\_LARGE\_TOOLBAR'

- •

  'button' / 'GTK\_ICON\_SIZE\_BUTTON'

- •

  'dnd' / 'GTK\_ICON\_SIZE\_DND'

- •

  'dialog' / 'GTK\_ICON\_SIZE\_DIALOG'

## SEE ALSO

Gtk2, Glib::Enum

## COPYRIGHT

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

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