/** * \file * * * \brief Generic editor for (volume/gain/contrast/...) setting. * * \author Stefano Fedrigo */ #ifndef GUI_LEVELEDIT_H #define GUI_LEVELEDIT_H //#include /* Type for level_init */ #define LEVELEDIT_NOBAR 0 /**< Edit number only, without bar nor units */ #define LEVELEDIT_SINGLE 1 /**< Single channel editing */ #define LEVELEDIT_DOUBLE 2 /**< Double channel editing */ /* Fwd decl */ struct Bitmap; struct LevelEdit; /** Type for callback used to set meter levels */ typedef void level_set_callback(void); /** Type for callback used to customize display of units */ typedef void display_callback(struct LevelEdit *); /** * State of a level meter */ typedef struct LevelEdit { int type; /*