---
name: "Gtk2::Curve"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::Curve"
---

# Gtk2::Curve(3pm)

wrapper for GtkCurve

## NAME

Gtk2::Curve - wrapper for GtkCurve

## HIERARCHY

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

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
```

## 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 : default "spline" : readable / writable / private)

  Is this curve linear, spline interpolated, or free-form

- 'max-x' (float : default 1 : readable / writable / private)

  Maximum possible X value

- 'max-y' (float : default 1 : readable / writable / private)

  Maximum possible value for Y

- 'min-x' (float : default 0 : readable / writable / private)

  Minimum possible value for X

- 'min-y' (float : default 0 : 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-2011 by the gtk2-perl team.

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