Gtk2::Curve(3pm)

Gtk2::Curve3pm

Wrapper for gtkcurve

Hierarchy

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::DrawingArea
                      +----Gtk2::Curve

Interfaces

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

Methods

widget = Gtk2::Curve->new

$curve->set_curve_type ($type)

•

$type (Gtk2::CurveType)

$curve->set_gamma ($gamma)

•

$gamma (double)

$curve->set_range ($min_x, $max_x, $min_y, $max_y)

•

$min_x (double)

•

$max_x (double)

•

$min_y (double)

•

$max_y (double)

$curve->reset

list = $curve->get_vector ($veclen=32)

•

$veclen (integer)

Returns a list of real numbers, the curve's vector.

$curve->set_vector (...)

•

... (list) of float's, the points of the curve

Properties

'curve-type' (Gtk2::CurveType : default "spline" : readable / writable / private)

Is this curve linear, spline interpolated, or free-form

'max-x' (float : default 1 : readable / writable / private)

Maximum possible X value

'max-y' (float : default 1 : readable / writable / private)

Maximum possible value for Y

'min-x' (float : default 0 : readable / writable / private)

Minimum possible value for X

'min-y' (float : default 0 : readable / writable / private)

Minimum possible value for Y

Signals

curve-type-changed (Gtk2::Curve)

Enums and flags

enum Gtk2::CurveType

•

'linear' / 'GTK_CURVE_TYPE_LINEAR'

•

'spline' / 'GTK_CURVE_TYPE_SPLINE'

•

'free' / 'GTK_CURVE_TYPE_FREE'

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.