/*! \file display_shared.hch * * \brief Datastructures and defines for usage when interacting with the * display library. * * \section project Project information. * Graphic Equalizer 2\n * \author * \date 20041011 * \version 0.1 * * \section copyright Copyright * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved * * \section history Change history * 20041011: \n Initial version * ********************************************************************/ #ifndef _DISPLAY_SHARED_HCH #define _DISPLAY_SHARED_HCH 1 /*! \struct skin_info_t * \brief Structure containing the four boundry limits of an area and * maximal two colors per area. */ typedef struct { unsigned 11 left; /*!< leftmost point registerd in the area */ unsigned 11 right; /*!< rightmost point registerd in the area */ unsigned 11 bottom; /*!< lowest point registerd in the area */ unsigned 11 top; /*!< highest point registerd in the area */ unsigned 24 color_primary; /*!< primary color for this area */ unsigned 24 color_secondary; /*!< optionally an area can have a second color */ } skininfo_t; /*! \struct skindata_t * \brief This struct contains all area- dimensions and color information * for the skin. */ typedef struct { skininfo_t waveform; /*!< We store all information about the waveform area here. */ skininfo_t spectrum; /*!< We store all information about the spectrum analyzer area here. */ skininfo_t volume; /*!< We store all information about the volume control area here. */ skininfo_t inputgain; /*!< We store all information about the inputgain area here. */ skininfo_t equalizer; /*!< We store all information about the equalizerbars here. */ } skindata_t; #define AREA_WAVEFORM 0x01 /*!< Waveform area. */ #define AREA_VOLUME_YAXIS 0x02 /*!< Volume control on the Y plane. */ #define AREA_SPECTRUM_ANALYZER 0x03 /*!< Spectrum Analyzer area. */ #define BUTTON_LOG 0x04 /*!< Logarithmic display button. */ #define BUTTON_DEMO 0x05 /*!< Demo preset button. */ #define BUTTON_RESET 0x06 /*!< Reset presets button. */ #define BUTTON_PRESET_1 0x07 /*!< Button for switching to preset 1 */ #define BUTTON_PRESET_2 0x08 /*!< Button for switching to preset 2 */ #define BUTTON_PRESET_3 0x09 /*!< Button for switching to preset 3 */ #define BUTTON_PRESET_4 0x0a /*!< Button for switching to preset 4 */ #define BUTTON_PRESET_5 0x0b /*!< Button for switching to preset 5 */ #define BUTTON_PRESET_6 0x0c /*!< Button for switching to preset 6 */ #define BUTTON_PRECISE 0x0d /*!< | 'Precise' selection Button */ #define BUTTON_CONVEX_HALF 0x0f /*!< /\ 'Convex' mode Button */ #define BUTTON_CONVEX_FULL 0x11 /*!< / - \ 'Convex' mode Button*/ #define BUTTON_HELP 0x12 /*!< Button to display help screen. */ #define BUTTON_MODE 0x13 /*!< Button to switch to graphical mode. */ #define BUTTON_OPTION 0x14 /*!< Button to display options screen. */ #define BUTTON_ABOUT 0x15 /*!< Button to change about screen. */ #define AREA_ABOUT_BOTTOM 0x16 /*!< Bottom half of about area */ #define AREA_ABOUT_TOP 0x17 /*!< Top half of about area */ #define BUTTON_URL_FONTYS 0x18 /*!< Url for Fontys in about screen */ #define BUTTON_URL_TASS 0x19 /*!< Url for TASS in about screen */ #define BUTTON_URL_TRANSFER 0x1a /*!< Url for Transfer in about screen */ #define BUTTON_URL_CELOXICA 0x1b /*!< Url for Celoxica in about screen */ #define BUTTON_URL_DETAILS 0x1c /*!< Url for Details in about screen */ #define BUTTON_EXIT_TO_SKIN 0x1d /*!< Button that exits the current screen and returns to the normal 'skin' screen */ #define AREA_INPUTGAIN_YAXIS 0x1e /*!< Input Gain control on the Y plane. */ #define AREA_AUDIO_PLAYER 0x1f /*!< Background of audio player area */ #define BUTTON_PREV_TRACK 0x20 /*!< Button to skip to previous track in built in audio. */ #define BUTTON_PLAY 0x21 /*!< Button to play built in audio. */ #define BUTTON_PAUSE 0x22 /*!< Button to pause built in audio. */ #define BUTTON_STOP 0x23 /*!< Button to stop built in audio. */ #define BUTTON_NEXT_TRACK 0x24 /*!< Button to skip to next track in built in audio. */ #define BUTTON_REPEAT 0x25 /*!< Button to toggle repeat all/track in built in audio. */ #define BUTTON_INPUT_SELECT 0x26 /*!< Button to toggle between audio inputs*/ #define AREA_INPUT_SELECT_TEXT 0x27 /*!< Button to toggle between audio inputs*/ #define AREA_MASK_END 0x7e /*!< Area in mask determining the end of the area beeing drawn */ #define AREA_EQUALIZER_MIN 0x80 /*!< First bar of the Equalizer Area. */ #define AREA_EQUALIZER_MAX 0xff /*!< Last bar of the Equalizer Area. */ #else #error "ERROR file display_shared.hch multiple times included" #endif /* --- _DISPLAY_SHARED_HCH --- */