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

Gtk2::Adjustment - wrapper for GtkAdjustment

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Adjustment

  • $value (double)
  • $lower (double)
  • $upper (double)
  • $step_increment (double)
  • $page_increment (double)
  • $page_size (double)

$adjustment->clamp_page ($lower, $upper)

  • $lower (double)
  • $upper (double)

$adjustment->configure ($value, $lower, $upper, $step_increment, $page_increment, $page_size)

  • $value (double)
  • $lower (double)
  • $upper (double)
  • $step_increment (double)
  • $page_increment (double)
  • $page_size (double)

Since: gtk+ 2.14

$adjustment->set_lower ($newval)

$adjustment->set_page_increment ($newval)

$adjustment->set_page_size ($newval)

$adjustment->set_step_increment ($newval)

$adjustment->set_upper ($newval)

$newval (double)

These functions differ from the plain "->lower" etc setters in that they emit "notify" and "changed" signals if $newval is different from the current value.

The corresponding "get_lower" etc are not wrapped because they're the same as the "lower" etc field accessors above.

Since: gtk+ 2.14

double = $adjustment->value

double = $adjustment->value ($newval)

double = $adjustment->lower

double = $adjustment->lower ($newval)

double = $adjustment->upper

double = $adjustment->upper ($newval)

double = $adjustment->step_increment

double = $adjustment->step_increment ($newval)

double = $adjustment->page_increment

double = $adjustment->page_increment ($newval)

double = $adjustment->page_size

double = $adjustment->page_size ($newval)

$newval (double)

Get or set the six fields of a Gtk2::Adjustment.

The setter functions store $newval and return the old value. Note that they don't emit any signals; it's up to you to emit "notify" (because the fields are also properties) and "changed" or "value-changed", when you're ready.

double = $adjustment->get_value

$adjustment->set_value ($value)

$value (double)

'lower' (double : default 0 : readable / writable / private / static-nick / static-blurb)
The minimum value of the adjustment
'page-increment' (double : default 0 : readable / writable / private / static-nick / static-blurb)
The page increment of the adjustment
'page-size' (double : default 0 : readable / writable / private / static-nick / static-blurb)
The page size of the adjustment
'step-increment' (double : default 0 : readable / writable / private / static-nick / static-blurb)
The step increment of the adjustment
'upper' (double : default 0 : readable / writable / private / static-nick / static-blurb)
The maximum value of the adjustment
'value' (double : default 0 : readable / writable / private / static-nick / static-blurb)
The value of the adjustment

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

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