Gtk2::Ruler(3) User Contributed Perl Documentation Gtk2::Ruler(3)

Gtk2::Ruler - wrapper for GtkRuler

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Ruler

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

$ruler->set_metric ($metric)

$metric (Gtk2::MetricType)

$ruler->set_range ($lower, $upper, $position, $max_size)

  • $lower (double)
  • $upper (double)
  • $position (double)
  • $max_size (double)

'lower' (double : default 0 : readable / writable / private / static-nick / static-blurb)
Lower limit of 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 mark on the ruler
'upper' (double : default 0 : readable / writable / private / static-nick / static-blurb)
Upper limit of ruler

  • 'pixels' / 'GTK_PIXELS'
  • 'inches' / 'GTK_INCHES'
  • 'centimeters' / 'GTK_CENTIMETERS'

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget

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

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

2022-05-29 perl v5.36.0