Xfce
Foundation Classes |
Main Page | Index | Namespace List | Alphabetical List | Class List | File List |
#include <xfc/gtk/curve.hh>
Inheritance diagram for Xfc::Gtk::Curve:
Curve is a widget that allows the user to edit a curve covering a range of values. It is typically used to fine-tune color balances in graphics applications like the Gimp. Curve has 3 modes of operation - spline, linear and free. In spline mode the user places points on the curve which are automatically connected together into a smooth curve. In linear mode the user places points on the curve which are connected by straight lines. In free mode the user can draw the points of the curve freely, and they are not connected at all.
NOTE this widget is considered too specialized/little-used for GTK+, and will in the future be moved to some other package. If your application needs this widget, feel free to use it, as the widget does work and is useful in some applications; it's just not of general interest.
Xfc::Gtk::Curve::Curve | ( | GtkCurve * | curve, | |
bool | owns_reference = false | |||
) | [explicit, protected] |
Construct a new Curve from an existing GtkCurve.
curve | A pointer to a GtkCurve. | |
owns_reference | Set false if the initial reference count is floating, set true if it's not. |
Xfc::Gtk::Curve::Curve | ( | GtkCurve * | curve, | |
bool | owns_reference = false | |||
) | [explicit, protected] |
Construct a new Curve from an existing GtkCurve.
curve | A pointer to a GtkCurve. | |
owns_reference | Set false if the initial reference count is floating, set true if it's not. |
void Xfc::Gtk::Curve::get_vector | ( | int | count, | |
float | data[] | |||
) | const |
Returns a vector of points representing the curve.
count | The number of points to calculate. | |
data | The points. |
void Xfc::Gtk::Curve::set_gamma | ( | float | gamma | ) |
Recomputes the entire curve using the given gamma value.
gamma | The gamma value. |
void Xfc::Gtk::Curve::set_range | ( | float | min_x, | |
float | max_x, | |||
float | min_y, | |||
float | max_y | |||
) |
Sets the minimum and maximum x and y values of the curve.
min_x | The minimum x value. | |
max_x | The maximum x value. | |
min_y | The minimum y value. | |
max_y | The maximum y value. |
void Xfc::Gtk::Curve::set_vector | ( | int | count, | |
float | data[] | |||
) |
Sets the vector of points on the curve; the curve type is set to CURVE_TYPE_FREE.
count | The number of points. | |
data | The points on the curve. |
void Xfc::Gtk::Curve::set_curve_type | ( | CurveType | type | ) |
Sets the type of the curve.
type | The type of the curve. |
const CurveTypeChangedSignalType Xfc::Gtk::Curve::curve_type_changed_signal [static, protected] |
Curve type changed signal (see signal_curve_type_changed()).
Calls a slot with the signature:
< void function();
<
Copyright © 2004-2005 The XFC Development Team | XFC
4.3 |