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 / static-nick / static-blurb)
49           Is this curve linear, spline interpolated, or free-form
50
51       'max-x' (float : default 1 : readable / writable / private / static-
52       nick / static-blurb)
53           Maximum possible X value
54
55       'max-y' (float : default 1 : readable / writable / private / static-
56       nick / static-blurb)
57           Maximum possible value for Y
58
59       'min-x' (float : default 0 : readable / writable / private / static-
60       nick / static-blurb)
61           Minimum possible value for X
62
63       'min-y' (float : default 0 : readable / writable / private / static-
64       nick / static-blurb)
65           Minimum possible value for Y
66

SIGNALS

68       curve-type-changed (Gtk2::Curve)
69

ENUMS AND FLAGS

71   enum Gtk2::CurveType
72       •   'linear' / 'GTK_CURVE_TYPE_LINEAR'
73
74       •   'spline' / 'GTK_CURVE_TYPE_SPLINE'
75
76       •   'free' / 'GTK_CURVE_TYPE_FREE'
77

SEE ALSO

79       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
80       Gtk2::DrawingArea
81
83       Copyright (C) 2003-2011 by the gtk2-perl team.
84
85       This software is licensed under the LGPL.  See Gtk2 for a full notice.
86
87
88
89perl v5.32.1                      2021-01-27                    Gtk2::Curve(3)
Impressum