1Gtk2::Curve(3) User Contributed Perl Documentation Gtk2::Curve(3)
2
3
4
6 Gtk2::Curve - wrapper for GtkCurve
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::DrawingArea
14 +----Gtk2::Curve
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18 Gtk2::Buildable
19
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
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
64 curve-type-changed (Gtk2::Curve)
65
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
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.1 2020-01-30 Gtk2::Curve(3)