Gtk2::Ruler(3)
π NAME π
Gtk2::Ruler β bestie, it's a wrapper for GtkRuler β¨ it's giving "measuring tape but make it GUI" fr fr π
This page lives in the User Contributed Perl Documentation, and the whole vibe is Gtk2::Ruler(3), iykyk.
π¦ HIERARCHY π¦
okay so the family tree, and yes we're doing the whole thing, no skipping:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Ruler
look at her. four generations of iconic ancestry and she's the main character at the bottom π
πΈ INTERFACES πΈ
the interfaces she serves, periodt:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable
β¨ METHODS β¨
π $ruler->draw_pos
that's it. that's the whole call. no args, no drama, she just does the thing π«Ά
π $ruler->draw_ticks
same energy, no arguments, just vibes and tick marks β¨
π metrictype = $ruler->get_metric
hands you back the current metric type. lowkey the most chill getter ever π
π $ruler->set_metric ($metric)
sets the metric. she takes one lil argument:
$metric(Gtk2::MetricType) β the metric type you want, bestie
π (lower, upper, position, max_size) = $ruler->get_range
returns a whole lil squad of four values at once. iconic behaviour, honestly π
π $ruler->set_range ($lower, $upper, $position, $max_size)
sets all four at once. arguments, in order:
$lower(double)$upper(double)$position(double)$max_size(double)
π PROPERTIES π
every single one of these is readable / writable / private / static-nick / static-blurb, no cap. all five, same energy, go off queens π
'lower'(double : default 0 : readable / writable / private / static-nick / static-blurb) β lower limit of the ruler π'max-size'(double : default 0 : readable / writable / private / static-nick / static-blurb) β maximum size of the ruler π'metric'(Gtk2::MetricType : default "pixels" : readable / writable / private / static-nick / static-blurb) β the metric used for the ruler β¨'position'(double : default 0 : readable / writable / private / static-nick / static-blurb) β position of the mark on the ruler π―'upper'(double : default 0 : readable / writable / private / static-nick / static-blurb) β upper limit of the ruler πΈ
π ENUMS AND FLAGS π
π§ enum Gtk2::MetricType
the three options, bestie, and they are:
'pixels'/'GTK_PIXELS'β'inches'/'GTK_INCHES'β'centimeters'/'GTK_CENTIMETERS'β
π SEE ALSO π
go read these too, they're all linked up like a group chat:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team. π«Ά
This software is licensed under the LGPL. See Gtk2 for a full notice. (yes bestie, actually read it, it's the whole legal moment π)
aww and that's the whole page π₯Ή this doc was generated by perl v5.42.0 on 2025-07-25, and it's filed under Gtk2::Ruler(3) β slay, bye bestie, go measure something pretty πβ¨π
π¦ 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