home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / Time_module / includes / Clock_IPC.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-20  |  1.6 KB  |  62 lines

  1.  
  2. /* This header does contain all stuff needed to reach the clock
  3.    with IPC commands (without any includes, these must be included
  4.     before (!) this file).
  5.     
  6.     You may mix different arguments in one command, but do not forget
  7.     to supply the needed values !
  8.     
  9.     Only the way to get the IPC handle is yours (Jon, how about the
  10.     list appended to the DOpus Public Semaphore... ? ).
  11. */
  12.  
  13. typedef struct
  14. {
  15.     struct IBox ibox;        // use Top and Left as normal, but
  16.                              // Width = APen and Height = BPen !!!
  17.     
  18.     struct TextAttr txtattr; // to pass all font related stuff
  19.                              // use ta_Flags for the DrawMode
  20.                                      // (so is it a value less :-) ) 
  21.                                      
  22.     char fontname[32];       // no need to set the pointer of txtattr...
  23.     
  24.     char picture[256];
  25.     
  26.     char alarm[12];
  27.     
  28.     ULONG command;           // preparing here
  29.     ULONG flags; 
  30.     
  31. }  IPC_CMDData;
  32.  
  33.  
  34. #define  LEFT_PASSED   1 << 0
  35. #define   TOP_PASSED   1 << 1
  36. #define   NEW_FONT     1 << 3
  37. #define   NEW_SIZE     1 << 4
  38. #define  APEN_PASSED   1 << 5
  39. #define  BPEN_PASSED   1 << 6
  40. #define  MODE_PASSED   1 << 7
  41. #define STYLE_PASSED   1 << 8
  42. #define     BG_PLAIN   1 << 9
  43. #define     BG_TRANS   1 << 10
  44. #define       BG_PIC      1 << 11
  45. #define       BORDER   1 << 12
  46. #define        ALARM   1 << 13
  47. #define        SOUND   1 << 14
  48.  
  49. #define   CLOCK_QUIT   1 << 15
  50.  
  51. #define    BORDER_ON   1 << 21
  52. #define   BORDER_OFF   1 << 22
  53. #define   ALARM_DONE   1 << 23
  54. #define   WRING_DONE   1 << 24
  55. #define     SOUND_ON   1 << 25
  56. #define    SOUND_OFF   1 << 26
  57. #define    ALARM_ON    1 << 27
  58. #define    ALARM_OFF   1 << 28
  59.  
  60.  
  61.  
  62.