Gtk2::ScaleButton(3)
π 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::AtkImplementorIfaceGtk2::BuildableGtk2::ActivatableGtk2::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) β theGtkAdjustmentthat 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: default0: readable / writable / private / static-nick / static-blurb) β the value of the scale. starts at0, 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 π
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
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms