home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / source / colorw.lha / color.h < prev    next >
C/C++ Source or Header  |  1987-10-12  |  3KB  |  81 lines

  1.  
  2. /* *** color.h **************************************************************
  3.  *
  4.  * ColorWindow Routine  --  Include File
  5.  *     from Book 1 of the Amiga Programmers' Suite by RJ Mical
  6.  *
  7.  * Copyright (C) 1986, 1987, Robert J. Mical
  8.  * All Rights Reserved.
  9.  *
  10.  * Created for Amiga developers.
  11.  * Any or all of this code can be used in any program as long as this
  12.  * entire copyright notice is retained, ok?  Thanks.
  13.  *
  14.  * HISTORY      NAME            DESCRIPTION
  15.  * -----------  --------------  --------------------------------------------
  16.  * 3 Jan 87     RJ >:-{)*       Clean-up for release      
  17.  * 27 Feb 86    =RJ Mical=      Modified these routines for Zaphod
  18.  * January 86   =RJ=            Modified the originals for Mandelbrot
  19.  * Late 85      =RJ=            Created the color window for Graphicraft
  20.  *
  21.  * *********************************************************************** */
  22.  
  23.  
  24.  
  25. #include <prosuite\prosuite.h>
  26.  
  27.  
  28.  
  29. /* === The definitions for ColorWindow =================================*/
  30. #define COLOR_KNOB_BODY    0x1000
  31.  
  32. /* Extra width to make room for numeric readout */
  33. #define NEW_EXTRALEFT      24
  34.  
  35. #define COLORWINDOW_WIDTH  (208 + NEW_EXTRALEFT)
  36. #define COLORWINDOW_HEIGHT 91
  37.  
  38. #define CHARACTER_WIDTH    8
  39. #define CHARACTER_HEIGHT   8
  40.  
  41. #define COLOR_BOX_LEFT     7
  42. #define COLOR_BOX_TOP      6
  43. #define COLOR_BOX_RIGHT    (COLOR_BOX_LEFT + 15)
  44. #define COLOR_BOX_BOTTOM   (COLOR_BOX_TOP + 29)
  45. #define COLOR_COLOR_TOP    45
  46. #define COLOR_PROP_LEFT    41
  47. #define COLOR_PROP_TOP     4
  48. #define COLOR_PROP_WIDTH   165
  49. #define COLOR_PROP_HEIGHT  10
  50. #define COLOR_CLUSTER_LEFT 144
  51. #define COLOR_CLUSTER_TOP  41
  52. #define COLOR_CLUSTER_WIDTH   (CHARACTER_WIDTH * 6 + 10 + NEW_EXTRALEFT)
  53. #define COLOR_CLUSTER_HEIGHT  9
  54. #define COLOR_HSL_TOP      COLOR_PROP_TOP
  55. #define COLOR_HSL_LEFT     (COLOR_PROP_LEFT - 14)
  56.  
  57. #define COLOR_VALUE_X      (COLOR_PROP_LEFT + COLOR_PROP_WIDTH + 4)
  58. #define COLOR_VALUE_REDY   (COLOR_PROP_TOP + 1 + 6)
  59. #define COLOR_VALUE_GREENY (COLOR_VALUE_REDY + COLOR_PROP_HEIGHT + 1)
  60. #define COLOR_VALUE_BLUEY  (COLOR_VALUE_GREENY + COLOR_PROP_HEIGHT + 1)
  61.  
  62. /* GREEN and RED are out of order to facilitate the color cycle window sharing
  63.  * these gadgets with the color palette window (color cycle uses the gadgets
  64.  * only down to the COLOR_GREEN gadget)
  65.  * (And that's why, in case you have always been wondering.  Now the
  66.  * next mystery is:  why didn't I explain this before?)
  67.  */
  68. #define COLOR_COPY            0
  69. #define COLOR_RANGE           1
  70. #define COLOR_OK              2
  71. #define COLOR_CANCEL          3
  72. #define COLOR_GREEN           4
  73. #define COLOR_RED             5
  74. #define COLOR_BLUE            6
  75. #define COLOR_HSL_RGB         7
  76. #define COLOR_GADGETS_COUNT   8
  77.  
  78. #define RGBHSL_SIZE  29    /* Number of words per image */
  79.  
  80.  
  81.