gui/widgets/color_area.h file

Color picker for a channel strip.

Contents

Functions

G_DECLARE_FINAL_TYPE(ColorAreaWidget, color_area_widget, Z, COLOR_AREA_WIDGET, GtkWidget) typedef enum ColorAreaType
Type of ColorAreaWidget this is.
void color_area_widget_setup_generic(ColorAreaWidget* self, GdkRGBA* color)
Creates a generic color widget using the given color pointer.
void color_area_widget_setup_track(ColorAreaWidget* self, Track* track)
Creates a ColorAreaWidget for use inside TrackWidget implementations.
void color_area_widget_set_color(ColorAreaWidget* widget, GdkRGBA* color)
Changes the color.

Function documentation

G_DECLARE_FINAL_TYPE(ColorAreaWidget, color_area_widget, Z, COLOR_AREA_WIDGET, GtkWidget) typedef enum ColorAreaType

Type of ColorAreaWidget this is.

Generic, only fill with color.

Track, for use in TrackWidget implementations.

It will show an icon and an index inside the color box.

void color_area_widget_setup_generic(ColorAreaWidget* self, GdkRGBA* color)

Creates a generic color widget using the given color pointer.

FIXME currently not used, should be used instead of manually changing the color.

void color_area_widget_set_color(ColorAreaWidget* widget, GdkRGBA* color)

Changes the color.

Track types don't need to do this since the color is read directly from the Track.