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

# Gtk2::ScaleButton(3pm)

wrapper for GtkScaleButton

## NAME

Gtk2::ScaleButton - wrapper for GtkScaleButton

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gtk2::ScaleButton
```

## INTERFACES

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

## METHODS

### widget = Gtk2::ScaleButton-\>new ($size, $min, $max, $step, ...)

- •

  `$size` (Gtk2::IconSize)

- •

  `$min` (double)

- •

  `$max` (double)

- •

  `$step` (double)

- •

  ... (list)

### adjustment = $button-\>get\_adjustment

### $button-\>set\_adjustment ($adjustment)

- •

  `$adjustment` (Gtk2::Adjustment)

### $button-\>set\_icons (...)

- •

  ... (list)

### widget = $button-\>get\_minus\_button

Since: gtk+ 2.14

### orientation = $button-\>get\_orientation

Since: gtk+ 2.14

### $button-\>set\_orientation ($orientation)

- •

  `$orientation` (Gtk2::Orientation)

Since: gtk+ 2.14

### widget = $button-\>get\_plus\_button

Since: gtk+ 2.14

### widget = $button-\>get\_popup

Since: gtk+ 2.14

### double = $button-\>get\_value

### $button-\>set\_value ($value)

- •

  `$value` (double)

## PROPERTIES

- 'adjustment' (Gtk2::Adjustment : default undef : readable / writable / private)

  The GtkAdjustment that contains the current value of this scale button object

- 'icons' (Glib::Strv : default undef : readable / writable / private)

  List of icon names

- 'size' (Gtk2::IconSize : default "small-toolbar" : readable / writable / private)

  The icon size

- 'value' (double : default 0 : readable / writable / private)

  The value of the scale

## SIGNALS

- **popdown** (Gtk2::ScaleButton)

  - **popup** (Gtk2::ScaleButton)

  - **value-changed** (Gtk2::ScaleButton, double)

  ## 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::Orientation

- •

  'horizontal' / 'GTK\_ORIENTATION\_HORIZONTAL'

- •

  'vertical' / 'GTK\_ORIENTATION\_VERTICAL'

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button

## COPYRIGHT

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

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