Gtk2::ScaleButton(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– Gtk2::ScaleButton β€” bestie edition πŸ’–

okay so. Gtk2::ScaleButton is literally just a lil wrapper around GtkScaleButton and I am obsessed. it's that iconic button that pops open a scale so you can drag a value around, and honestly? it's giving main character energy. this is the Gtk2::ScaleButton(3) page, from the User Contributed Perl Documentation, and we're gonna get through it together 🫢


🌸 NAME 🌸

Gtk2::ScaleButton β€” a wrapper for GtkScaleButton, no cap. that's it. that's the name. slay.


πŸ¦‹ HIERARCHY πŸ¦‹

look at this family tree bestie, it's a whole lineage πŸ’…

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

so yeah, it inherits from Gtk2::Button, which is a Gtk2::Bin, which is a Gtk2::Container, which is a Gtk2::Widget, which is a Gtk2::Object, which is a Glib::InitiallyUnowned, which is a Glib::Object. generational wealth fr fr πŸ‘‘


✨ INTERFACES ✨

these are the vibes it implements, the little personas it puts on:

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

πŸŽ€ METHODS πŸŽ€

here's where it gets juicy. every method, every arg, nothing skipped, because I would never do you like that πŸ’–

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

the constructor, the origin story. here's what you're handing it:

  • $size (Gtk2::IconSize)
  • $min (double)
  • $max (double)
  • $step (double)
  • ... (list)

🌟 adjustment = $button->get_adjustment

🌟 $button->set_adjustment ($adjustment)

  • $adjustment (Gtk2::Adjustment)

get it, set it, the classic duo 🫢

🌟 $button->set_icons (...)

  • ... (list)

🌟 widget = $button->get_minus_button

Since: gtk+ 2.14 β€” yes bestie, this one is a newer addition, respect the timeline ⭐

🌟 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)

that's the whole method list, all eleven of them, accounted for πŸ’…


πŸ’œ PROPERTIES πŸ’œ

the property tea β˜• every single attribute tag included, because details are the whole point:

  • 'adjustment' (Gtk2::Adjustment : default undef : readable / writable / private / static-nick / static-blurb) β€” the GtkAdjustment that contains the current value of this scale button object. it's the keeper of the value, the vault 🏦
  • 'icons' (Glib::Strv : default undef : readable / writable / private / static-nick / static-blurb) β€” a list of icon names ✨
  • 'size' (Gtk2::IconSize : default "small-toolbar" : readable / writable / private / static-nick / static-blurb) β€” the icon size. default is "small-toolbar", cute and compact 🌸
  • 'value' (double : default 0 : readable / writable / private / static-nick / static-blurb) β€” the value of the scale. starts at 0, humble beginnings 🐣

πŸ”₯ SIGNALS πŸ”₯

when it yells, you listen:

  • 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

two enums, fully delivered, no crumbs left behind πŸ’…


🧚 SEE ALSO 🧚

if you wanna go down the rabbit hole (and you should, iykyk):

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


Copyright (C) 2003-2011 by the gtk2-perl team. πŸ’–

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

okay legal bestie moment: that's the actual license, don't skip it, it's literally the law πŸ™ˆ

and that's the whole page, you ate it πŸ“ this was Gtk2::ScaleButton(3) from the User Contributed Perl Documentation, generated with perl v5.42.0 back on 2025-07-25. periodt. go build something iconic bestie πŸ¦‹βœ¨

πŸ“¦ where this page comes from