.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::SpinButton 3pm" .TH Gtk2::SpinButton 3pm "2019-09-16" "perl v5.28.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::SpinButton \- wrapper for GtkSpinButton .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 6 \& Glib::Object \& +\-\-\-\-Glib::InitiallyUnowned \& +\-\-\-\-Gtk2::Object \& +\-\-\-\-Gtk2::Widget \& +\-\-\-\-Gtk2::Entry \& +\-\-\-\-Gtk2::SpinButton .Ve .SH "INTERFACES" .IX Header "INTERFACES" .Vb 4 \& Glib::Object::_Unregistered::AtkImplementorIface \& Gtk2::Buildable \& Gtk2::Editable \& Gtk2::CellEditable .Ve .SH "METHODS" .IX Header "METHODS" .ie n .SS "widget = Gtk2::SpinButton\->\fBnew\fP ($adjustment, $climb_rate, $digits)" .el .SS "widget = Gtk2::SpinButton\->\fBnew\fP ($adjustment, \f(CW$climb_rate\fP, \f(CW$digits\fP)" .IX Subsection "widget = Gtk2::SpinButton->new ($adjustment, $climb_rate, $digits)" .IP "\(bu" 4 \&\f(CW$adjustment\fR (Gtk2::Adjustment) .IP "\(bu" 4 \&\f(CW$climb_rate\fR (double) .IP "\(bu" 4 \&\f(CW$digits\fR (integer) .ie n .SS "widget = Gtk2::SpinButton\->\fBnew_with_range\fP ($min, $max, $step)" .el .SS "widget = Gtk2::SpinButton\->\fBnew_with_range\fP ($min, \f(CW$max\fP, \f(CW$step\fP)" .IX Subsection "widget = Gtk2::SpinButton->new_with_range ($min, $max, $step)" .IP "\(bu" 4 \&\f(CW$min\fR (double) .IP "\(bu" 4 \&\f(CW$max\fR (double) .IP "\(bu" 4 \&\f(CW$step\fR (double) .ie n .SS "adjustment = $spin_button\->\fBget_adjustment\fP" .el .SS "adjustment = \f(CW$spin_button\fP\->\fBget_adjustment\fP" .IX Subsection "adjustment = $spin_button->get_adjustment" .ie n .SS "$spin_button\->\fBset_adjustment\fP ($adjustment)" .el .SS "\f(CW$spin_button\fP\->\fBset_adjustment\fP ($adjustment)" .IX Subsection "$spin_button->set_adjustment ($adjustment)" .IP "\(bu" 4 \&\f(CW$adjustment\fR (Gtk2::Adjustment) .ie n .SS "$spin_button\->\fBconfigure\fP ($adjustment, $climb_rate, $digits)" .el .SS "\f(CW$spin_button\fP\->\fBconfigure\fP ($adjustment, \f(CW$climb_rate\fP, \f(CW$digits\fP)" .IX Subsection "$spin_button->configure ($adjustment, $climb_rate, $digits)" .IP "\(bu" 4 \&\f(CW$adjustment\fR (Gtk2::Adjustment) .IP "\(bu" 4 \&\f(CW$climb_rate\fR (double) .IP "\(bu" 4 \&\f(CW$digits\fR (integer) .ie n .SS "integer = $spin_button\->\fBget_digits\fP" .el .SS "integer = \f(CW$spin_button\fP\->\fBget_digits\fP" .IX Subsection "integer = $spin_button->get_digits" .ie n .SS "$spin_button\->\fBset_digits\fP ($digits)" .el .SS "\f(CW$spin_button\fP\->\fBset_digits\fP ($digits)" .IX Subsection "$spin_button->set_digits ($digits)" .IP "\(bu" 4 \&\f(CW$digits\fR (integer) .ie n .SS "(step, page) = $spin_button\->\fBget_increments\fP" .el .SS "(step, page) = \f(CW$spin_button\fP\->\fBget_increments\fP" .IX Subsection "(step, page) = $spin_button->get_increments" .ie n .SS "$spin_button\->\fBset_increments\fP ($step, $page)" .el .SS "\f(CW$spin_button\fP\->\fBset_increments\fP ($step, \f(CW$page\fP)" .IX Subsection "$spin_button->set_increments ($step, $page)" .IP "\(bu" 4 \&\f(CW$step\fR (double) .IP "\(bu" 4 \&\f(CW$page\fR (double) .ie n .SS "boolean = $spin_button\->\fBget_numeric\fP" .el .SS "boolean = \f(CW$spin_button\fP\->\fBget_numeric\fP" .IX Subsection "boolean = $spin_button->get_numeric" .ie n .SS "$spin_button\->\fBset_numeric\fP ($numeric)" .el .SS "\f(CW$spin_button\fP\->\fBset_numeric\fP ($numeric)" .IX Subsection "$spin_button->set_numeric ($numeric)" .IP "\(bu" 4 \&\f(CW$numeric\fR (boolean) .ie n .SS "(min, max) = $spin_button\->\fBget_range\fP" .el .SS "(min, max) = \f(CW$spin_button\fP\->\fBget_range\fP" .IX Subsection "(min, max) = $spin_button->get_range" .ie n .SS "$spin_button\->\fBset_range\fP ($min, $max)" .el .SS "\f(CW$spin_button\fP\->\fBset_range\fP ($min, \f(CW$max\fP)" .IX Subsection "$spin_button->set_range ($min, $max)" .IP "\(bu" 4 \&\f(CW$min\fR (double) .IP "\(bu" 4 \&\f(CW$max\fR (double) .ie n .SS "boolean = $spin_button\->\fBget_snap_to_ticks\fP" .el .SS "boolean = \f(CW$spin_button\fP\->\fBget_snap_to_ticks\fP" .IX Subsection "boolean = $spin_button->get_snap_to_ticks" .ie n .SS "$spin_button\->\fBset_snap_to_ticks\fP ($snap_to_ticks)" .el .SS "\f(CW$spin_button\fP\->\fBset_snap_to_ticks\fP ($snap_to_ticks)" .IX Subsection "$spin_button->set_snap_to_ticks ($snap_to_ticks)" .IP "\(bu" 4 \&\f(CW$snap_to_ticks\fR (boolean) .ie n .SS "$spin_button\->\fBspin\fP ($direction, $increment)" .el .SS "\f(CW$spin_button\fP\->\fBspin\fP ($direction, \f(CW$increment\fP)" .IX Subsection "$spin_button->spin ($direction, $increment)" .IP "\(bu" 4 \&\f(CW$direction\fR (Gtk2::SpinType) .IP "\(bu" 4 \&\f(CW$increment\fR (double) .ie n .SS "$spin_button\->\fBupdate\fP" .el .SS "\f(CW$spin_button\fP\->\fBupdate\fP" .IX Subsection "$spin_button->update" .ie n .SS "spinbuttonupdatepolicy = $spin_button\->\fBget_update_policy\fP" .el .SS "spinbuttonupdatepolicy = \f(CW$spin_button\fP\->\fBget_update_policy\fP" .IX Subsection "spinbuttonupdatepolicy = $spin_button->get_update_policy" .ie n .SS "$spin_button\->\fBset_update_policy\fP ($policy)" .el .SS "\f(CW$spin_button\fP\->\fBset_update_policy\fP ($policy)" .IX Subsection "$spin_button->set_update_policy ($policy)" .IP "\(bu" 4 \&\f(CW$policy\fR (Gtk2::SpinButtonUpdatePolicy) .ie n .SS "integer = $spin_button\->\fBget_value_as_int\fP" .el .SS "integer = \f(CW$spin_button\fP\->\fBget_value_as_int\fP" .IX Subsection "integer = $spin_button->get_value_as_int" .ie n .SS "double = $spin_button\->\fBget_value\fP" .el .SS "double = \f(CW$spin_button\fP\->\fBget_value\fP" .IX Subsection "double = $spin_button->get_value" .ie n .SS "$spin_button\->\fBset_value\fP ($value)" .el .SS "\f(CW$spin_button\fP\->\fBset_value\fP ($value)" .IX Subsection "$spin_button->set_value ($value)" .IP "\(bu" 4 \&\f(CW$value\fR (double) .ie n .SS "boolean = $spin_button\->\fBget_wrap\fP" .el .SS "boolean = \f(CW$spin_button\fP\->\fBget_wrap\fP" .IX Subsection "boolean = $spin_button->get_wrap" .ie n .SS "$spin_button\->\fBset_wrap\fP ($wrap)" .el .SS "\f(CW$spin_button\fP\->\fBset_wrap\fP ($wrap)" .IX Subsection "$spin_button->set_wrap ($wrap)" .IP "\(bu" 4 \&\f(CW$wrap\fR (boolean) .SH "PROPERTIES" .IX Header "PROPERTIES" .IP "'adjustment' (Gtk2::Adjustment : default undef : readable / writable / private)" 4 .IX Item "'adjustment' (Gtk2::Adjustment : default undef : readable / writable / private)" The adjustment that holds the value of the spinbutton .IP "'climb\-rate' (double : default 0 : readable / writable / private)" 4 .IX Item "'climb-rate' (double : default 0 : readable / writable / private)" The acceleration rate when you hold down a button .IP "'digits' (Glib::UInt : default 0 : readable / writable / private)" 4 .IX Item "'digits' (Glib::UInt : default 0 : readable / writable / private)" The number of decimal places to display .IP "'numeric' (boolean : default false : readable / writable / private)" 4 .IX Item "'numeric' (boolean : default false : readable / writable / private)" Whether non-numeric characters should be ignored .IP "'snap\-to\-ticks' (boolean : default false : readable / writable / private)" 4 .IX Item "'snap-to-ticks' (boolean : default false : readable / writable / private)" Whether erroneous values are automatically changed to a spin button's nearest step increment .ie n .IP "'update\-policy' (Gtk2::SpinButtonUpdatePolicy : default ""always"" : readable / writable / private)" 4 .el .IP "'update\-policy' (Gtk2::SpinButtonUpdatePolicy : default ``always'' : readable / writable / private)" 4 .IX Item "'update-policy' (Gtk2::SpinButtonUpdatePolicy : default always : readable / writable / private)" Whether the spin button should update always, or only when the value is legal .IP "'value' (double : default 0 : readable / writable / private)" 4 .IX Item "'value' (double : default 0 : readable / writable / private)" Reads the current value, or sets a new value .IP "'wrap' (boolean : default false : readable / writable / private)" 4 .IX Item "'wrap' (boolean : default false : readable / writable / private)" Whether a spin button should wrap upon reaching its limits .SH "STYLE PROPERTIES" .IX Header "STYLE PROPERTIES" .ie n .IP "'shadow\-type' (Gtk2::ShadowType : default ""in"" : readable / private)" 4 .el .IP "'shadow\-type' (Gtk2::ShadowType : default ``in'' : readable / private)" 4 .IX Item "'shadow-type' (Gtk2::ShadowType : default in : readable / private)" Style of bevel around the spin button .SH "SIGNALS" .IX Header "SIGNALS" .IP "\fBchange-value\fR (Gtk2::SpinButton, Gtk2::ScrollType)" 4 .IX Item "change-value (Gtk2::SpinButton, Gtk2::ScrollType)" .PD 0 .IP "integer = \fBinput\fR (Gtk2::SpinButton, gpointer)" 4 .IX Item "integer = input (Gtk2::SpinButton, gpointer)" .IP "boolean = \fBoutput\fR (Gtk2::SpinButton)" 4 .IX Item "boolean = output (Gtk2::SpinButton)" .IP "\fBvalue-changed\fR (Gtk2::SpinButton)" 4 .IX Item "value-changed (Gtk2::SpinButton)" .IP "\fBwrapped\fR (Gtk2::SpinButton)" 4 .IX Item "wrapped (Gtk2::SpinButton)" .PD .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Gtk2::ScrollType" .IX Subsection "enum Gtk2::ScrollType" .IP "\(bu" 4 \&'none' / '\s-1GTK_SCROLL_NONE\s0' .IP "\(bu" 4 \&'jump' / '\s-1GTK_SCROLL_JUMP\s0' .IP "\(bu" 4 \&'step\-backward' / '\s-1GTK_SCROLL_STEP_BACKWARD\s0' .IP "\(bu" 4 \&'step\-forward' / '\s-1GTK_SCROLL_STEP_FORWARD\s0' .IP "\(bu" 4 \&'page\-backward' / '\s-1GTK_SCROLL_PAGE_BACKWARD\s0' .IP "\(bu" 4 \&'page\-forward' / '\s-1GTK_SCROLL_PAGE_FORWARD\s0' .IP "\(bu" 4 \&'step\-up' / '\s-1GTK_SCROLL_STEP_UP\s0' .IP "\(bu" 4 \&'step\-down' / '\s-1GTK_SCROLL_STEP_DOWN\s0' .IP "\(bu" 4 \&'page\-up' / '\s-1GTK_SCROLL_PAGE_UP\s0' .IP "\(bu" 4 \&'page\-down' / '\s-1GTK_SCROLL_PAGE_DOWN\s0' .IP "\(bu" 4 \&'step\-left' / '\s-1GTK_SCROLL_STEP_LEFT\s0' .IP "\(bu" 4 \&'step\-right' / '\s-1GTK_SCROLL_STEP_RIGHT\s0' .IP "\(bu" 4 \&'page\-left' / '\s-1GTK_SCROLL_PAGE_LEFT\s0' .IP "\(bu" 4 \&'page\-right' / '\s-1GTK_SCROLL_PAGE_RIGHT\s0' .IP "\(bu" 4 \&'start' / '\s-1GTK_SCROLL_START\s0' .IP "\(bu" 4 \&'end' / '\s-1GTK_SCROLL_END\s0' .SS "enum Gtk2::SpinButtonUpdatePolicy" .IX Subsection "enum Gtk2::SpinButtonUpdatePolicy" .IP "\(bu" 4 \&'always' / '\s-1GTK_UPDATE_ALWAYS\s0' .IP "\(bu" 4 \&'if\-valid' / '\s-1GTK_UPDATE_IF_VALID\s0' .SS "enum Gtk2::SpinType" .IX Subsection "enum Gtk2::SpinType" .IP "\(bu" 4 \&'step\-forward' / '\s-1GTK_SPIN_STEP_FORWARD\s0' .IP "\(bu" 4 \&'step\-backward' / '\s-1GTK_SPIN_STEP_BACKWARD\s0' .IP "\(bu" 4 \&'page\-forward' / '\s-1GTK_SPIN_PAGE_FORWARD\s0' .IP "\(bu" 4 \&'page\-backward' / '\s-1GTK_SPIN_PAGE_BACKWARD\s0' .IP "\(bu" 4 \&'home' / '\s-1GTK_SPIN_HOME\s0' .IP "\(bu" 4 \&'end' / '\s-1GTK_SPIN_END\s0' .IP "\(bu" 4 \&'user\-defined' / '\s-1GTK_SPIN_USER_DEFINED\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Entry .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the \s-1LGPL.\s0 See Gtk2 for a full notice.