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

# Gtk2::IconSource(3pm)

wrapper for GtkIconSource

## NAME

Gtk2::IconSource - wrapper for GtkIconSource

## HIERARCHY

```
  Glib::Boxed
  +----Gtk2::IconSource
```

## METHODS

### iconsource = Gtk2::IconSource-\>new

### textdirection = $source-\>get\_direction

### $source-\>set\_direction ($direction)

- •

  `$direction` (Gtk2::TextDirection)

### boolean = $source-\>get\_direction\_wildcarded

### $source-\>set\_direction\_wildcarded ($setting)

- •

  `$setting` (boolean)

### localized file name = $source-\>get\_filename

### $source-\>set\_filename ($filename)

- •

  `$filename` (localized file name)

### string = $source-\>get\_icon\_name

Since: gtk+ 2.4

### $source-\>set\_icon\_name ($icon\_name)

- •

  `$icon_name` (string)

Since: gtk+ 2.4

### pixbuf or undef = $source-\>get\_pixbuf

### $source-\>set\_pixbuf ($pixbuf)

- •

  `$pixbuf` (Gtk2::Gdk::Pixbuf)

### iconsize = $source-\>get\_size

### $source-\>set\_size ($size)

- •

  `$size` (Gtk2::IconSize)

### boolean = $source-\>get\_size\_wildcarded

### $source-\>set\_size\_wildcarded ($setting)

- •

  `$setting` (boolean)

### statetype = $source-\>get\_state

### $source-\>set\_state ($state)

- •

  `$state` (Gtk2::StateType)

### boolean = $source-\>get\_state\_wildcarded

### $source-\>set\_state\_wildcarded ($setting)

- •

  `$setting` (boolean)

## 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'

### enum Gtk2::StateType

- •

  'normal' / 'GTK\_STATE\_NORMAL'

- •

  'active' / 'GTK\_STATE\_ACTIVE'

- •

  'prelight' / 'GTK\_STATE\_PRELIGHT'

- •

  'selected' / 'GTK\_STATE\_SELECTED'

- •

  'insensitive' / 'GTK\_STATE\_INSENSITIVE'

### enum Gtk2::TextDirection

- •

  'none' / 'GTK\_TEXT\_DIR\_NONE'

- •

  'ltr' / 'GTK\_TEXT\_DIR\_LTR'

- •

  'rtl' / 'GTK\_TEXT\_DIR\_RTL'

## SEE ALSO

Gtk2, Glib::Boxed

## COPYRIGHT

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

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