Gtk2::Curve

Section: User Contributed Perl Documentation (3)
Updated: 2008-05-05
Index Return to Main Contents
 

NAME

Gtk2::Curve  

HIERARCHY

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

 

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface

 

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 : readable / writable / private)
Is this curve linear, spline interpolated, or free-form
'max-x' (Glib::Float : readable / writable / private)
Maximum possible X value
'max-y' (Glib::Float : readable / writable / private)
Maximum possible value for Y
'min-x' (Glib::Float : readable / writable / private)
Minimum possible value for X
'min-y' (Glib::Float : 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'
 

SEE ALSO

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

COPYRIGHT

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

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


 

Index

NAME
HIERARCHY
INTERFACES
METHODS
widget = Gtk2::Curve->new
$curve->set_curve_type ($type)
$curve->set_gamma ($gamma)
$curve->set_range ($min_x, $max_x, $min_y, $max_y)
$curve->reset
list = $curve->get_vector ($veclen=32)
$curve->set_vector (...)
PROPERTIES
SIGNALS
ENUMS AND FLAGS
enum Gtk2::CurveType
SEE ALSO
COPYRIGHT

linux.jgfs.net manual pages