Gtk2::Curve(3)
π Gtk2::Curve β bestie, it's a curve widget
okay so this is Gtk2::Curve, and it's literally just the Perl wrapper for GtkCurve. that's it, that's the whole name section, we move. β¨
(also hi, this page lives in the User Contributed Perl Documentation section of the manual, section 3, and yes it's the Gtk2::Curve(3) page you were looking for π«Ά)
πΈ HIERARCHY πΈ
this is the family tree, the ancestry, the lineage, and you gotta respect it:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::DrawingArea
+----Gtk2::Curve
so Gtk2::Curve is a Gtk2::DrawingArea is a Gtk2::Widget is a Gtk2::Object is a Glib::InitiallyUnowned is a Glib::Object. generational wealth fr fr. π
π¦ INTERFACES π¦
it also rocks these interfaces, like accessories but for objects:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
β¨ METHODS β¨
π widget = Gtk2::Curve->new
make a brand new curve. that's the whole vibe. slay.
π
$curve->set_curve_type ($type)
sets what kind of curve this is.
$type(aGtk2::CurveType)
π $curve->set_gamma ($gamma)
sets the gamma, bestie.
$gamma(double)
π $curve->set_range ($min_x, $max_x, $min_y, $max_y)
the range. the whole range. all four of them.
$min_x(double)$max_x(double)$min_y(double)$max_y(double)
π§ $curve->reset
boom. reset. back to square one, no questions asked.
β list = $curve->get_vector ($veclen=32)
returns a list of real numbers β that's the curve's vector, the actual data of the whole thing.
$veclen(integer) β and heads up, it defaults to32
π $curve->set_vector (...)
sets the vector. so like, the points of the curve.
...(list) offloat's, the points of the curve
π PROPERTIES π
'curve-type' (Gtk2::CurveType : default "spline" : readable / writable / private / static-nick / static-blurb)
Is this curve linear, spline interpolated, or free-form
'max-x' (float : default 1 : readable / writable / private / static-nick / static-blurb)
Maximum possible X value
'max-y' (float : default 1 : readable / writable / private / static-nick / static-blurb)
Maximum possible value for Y
'min-x' (float : default 0 : readable / writable / private / static-nick / static-blurb)
Minimum possible value for X
'min-y' (float : default 0 : readable / writable / private / static-nick / static-blurb)
Minimum possible value for Y
π₯ SIGNALS π₯
curve-type-changed(Gtk2::Curve)
that's the one. it fires, you handle it, iconic behavior.
π ENUMS AND FLAGS π
enum Gtk2::CurveType
the three moods a curve can be in:
'linear'/GTK_CURVE_TYPE_LINEAR'spline'/GTK_CURVE_TYPE_SPLINE'free'/GTK_CURVE_TYPE_FREE
π«Ά SEE ALSO π«Ά
go read these next, iykyk:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::DrawingArea
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
bestie real talk: that's a real license, respect it, read Gtk2 for the full notice π
and that's the whole page, no cap. this was Gtk2::Curve(3) from perl v5.42.0, dated 2025-07-25. mwah, go make something pretty πΈπ
β¨
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms