Gtk2::Scale(3pm)

Gtk2::Scale3pm

Wrapper for gtkscale

Hierarchy

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Range
                      +----Gtk2::Scale

Interfaces

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

Methods

$scale->add_mark ($value, $position, $markup)

•

$value (double)

•

$position (Gtk2::PositionType)

•

$markup (string or undef)

Since: gtk+ 2.16

$scale->clear_marks

Since: gtk+ 2.16

integer = $scale->get_digits

$scale->set_digits ($digits)

•

$digits (integer)

boolean = $scale->get_draw_value

$scale->set_draw_value ($draw_value)

•

$draw_value (boolean)

layout = $scale->get_layout

Since: gtk+ 2.4

(x, y) = $scale->get_layout_offsets

Since: gtk+ 2.4

positiontype = $scale->get_value_pos

$scale->set_value_pos ($pos)

•

$pos (Gtk2::PositionType)

Properties

'digits' (integer : default 1 : readable / writable / private)

The number of decimal places that are displayed in the value

'draw-value' (boolean : default true : readable / writable / private)

Whether the current value is displayed as a string next to the slider

'value-pos' (Gtk2::PositionType : default "top" : readable / writable / private)

The position in which the current value is displayed

Style properties

'slider-length' (integer : default 31 : readable / private)

Length of scale's slider

'value-spacing' (integer : default 2 : readable / private)

Space between value text and the slider/trough area

Signals

string = format-value (Gtk2::Scale, double)

Enums and flags

enum Gtk2::PositionType

•

'left' / 'GTK_POS_LEFT'

•

'right' / 'GTK_POS_RIGHT'

•

'top' / 'GTK_POS_TOP'

•

'bottom' / 'GTK_POS_BOTTOM'

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.