1Gtk2::Curve(3)        User Contributed Perl Documentation       Gtk2::Curve(3)
2
3
4

NAME

6       Gtk2::Curve - wrapper for GtkCurve
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::DrawingArea
14                             +----Gtk2::Curve
15

INTERFACES

17         Glib::Object::_Unregistered::AtkImplementorIface
18         Gtk2::Buildable
19

METHODS

21   widget = Gtk2::Curve->new
22   $curve->set_curve_type ($type)
23       ·   $type (Gtk2::CurveType)
24
25   $curve->set_gamma ($gamma)
26       ·   $gamma (double)
27
28   $curve->set_range ($min_x, $max_x, $min_y, $max_y)
29       ·   $min_x (double)
30
31       ·   $max_x (double)
32
33       ·   $min_y (double)
34
35       ·   $max_y (double)
36
37   $curve->reset
38   list = $curve->get_vector ($veclen=32)
39       ·   $veclen (integer)
40
41       Returns a list of real numbers, the curve's vector.
42
43   $curve->set_vector (...)
44       ·   ... (list) of float's, the points of the curve
45

PROPERTIES

47       'curve-type' (Gtk2::CurveType : default "spline" : readable / writable
48       / private)
49           Is this curve linear, spline interpolated, or free-form
50
51       'max-x' (float : default 1 : readable / writable / private)
52           Maximum possible X value
53
54       'max-y' (float : default 1 : readable / writable / private)
55           Maximum possible value for Y
56
57       'min-x' (float : default 0 : readable / writable / private)
58           Minimum possible value for X
59
60       'min-y' (float : default 0 : readable / writable / private)
61           Minimum possible value for Y
62

SIGNALS

64       curve-type-changed (Gtk2::Curve)
65

ENUMS AND FLAGS

67   enum Gtk2::CurveType
68       ·   'linear' / 'GTK_CURVE_TYPE_LINEAR'
69
70       ·   'spline' / 'GTK_CURVE_TYPE_SPLINE'
71
72       ·   'free' / 'GTK_CURVE_TYPE_FREE'
73

SEE ALSO

75       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
76       Gtk2::DrawingArea
77
79       Copyright (C) 2003-2011 by the gtk2-perl team.
80
81       This software is licensed under the LGPL.  See Gtk2 for a full notice.
82
83
84
85perl v5.30.0                      2019-07-26                    Gtk2::Curve(3)
Impressum