Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
color_area.h File Reference

Color picker for a channel strip. More...

#include <gtk/gtk.h>
Include dependency graph for color_area.h:

Go to the source code of this file.

Data Structures

struct  ColorAreaWidget
 

Macros

#define COLOR_AREA_WIDGET_TYPE   (color_area_widget_get_type ())
 

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.
 

Variables

 ColorAreaType
 

Detailed Description

Color picker for a channel strip.

Definition in file color_area.h.

Macro Definition Documentation

◆ COLOR_AREA_WIDGET_TYPE

#define COLOR_AREA_WIDGET_TYPE   (color_area_widget_get_type ())

Definition at line 17 of file color_area.h.

Function Documentation

◆ color_area_widget_set_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.

◆ color_area_widget_setup_generic()

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.

◆ G_DECLARE_FINAL_TYPE()

G_DECLARE_FINAL_TYPE ( ColorAreaWidget ,
color_area_widget ,
Z ,
COLOR_AREA_WIDGET ,
GtkWidget  )

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.

Definition at line 18 of file color_area.h.

Variable Documentation

◆ ColorAreaType

ColorAreaType

Definition at line 39 of file color_area.h.