home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / opus / v5 / opussdk / amigaguide / dopus / gui.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  2KB  |  87 lines

  1. @DATABASE "dopus/gui.h"
  2. @MASTER   "opussdk:include/dopus/gui.h"
  3. @REMARK   (c) Dr Greg Perry and Jonathan Potter, GPSoftware 1996
  4. @REMARK   This file was initially created by ADtoHT 2.1 on 07-Sep-96 18:20:14
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "dopus/gui.h"
  8. @TOC "DopusSDK/MAIN"
  9.  
  10. @{"dopus/gui.h" LINK File}
  11.  
  12.  
  13. @{b}#defines@{ub}
  14.  
  15. @{"SCRI_LORES" LINK "dopus/gui.h/File" 12}  @{"SCROLL_HORIZ" LINK "dopus/gui.h/File" 41}  @{"SCROLL_NOIDCMP" LINK "dopus/gui.h/File" 39}  @{"SCROLL_VERT" LINK "dopus/gui.h/File" 40}
  16.  
  17. @ENDNODE
  18. @NODE File "dopus/gui.h"
  19. #ifndef _DOPUS_GUI
  20. #define _DOPUS_GUI
  21.  
  22. /*****************************************************************************
  23.  
  24.  GUI support
  25.  
  26.  *****************************************************************************/
  27.  
  28. // Screen Info
  29.  
  30. #define SCRI_LORES      (1<<0)
  31.  
  32. ULONG ScreenInfo(struct Screen *);
  33.  
  34.  
  35. // Drawing
  36. void DrawBox(struct RastPort *,struct Rectangle *,struct DrawInfo *,BOOL);
  37. void DrawFieldBox(struct RastPort *,struct Rectangle *,struct DrawInfo *);
  38.  
  39.  
  40. // Palette
  41. void LoadPalette32(struct ViewPort *,unsigned long *);
  42. void GetPalette32(struct ViewPort *,unsigned long *,unsigned short,short);
  43.  
  44.  
  45. // BOOPSI
  46. struct Gadget *FindBOOPSIGadget(struct List *,USHORT);
  47. void BOOPSIFree(struct List *);
  48.  
  49.  
  50. // Gadgets
  51. struct Gadget *AddScrollBars(struct Window *,struct List *,struct DrawInfo *,short);
  52. struct Gadget *CreateTitleGadget(struct Screen *,struct List *,BOOL,short,short,unsigned short);
  53. struct Gadget *FindGadgetType(struct Gadget *,UWORD);
  54. void FixTitleGadgets(struct Window *);
  55. void ActivateStrGad(struct Gadget *,struct Window *);
  56.  
  57. #define SCROLL_NOIDCMP  (1<<0)          // Don't send IDCMPUPDATE messages
  58. #define SCROLL_VERT     (1<<1)          // Vertical scroller
  59. #define SCROLL_HORIZ    (1<<2)          // Horizontal scroller
  60.  
  61. enum
  62. {
  63.         GAD_VERT_SCROLLER=2,    // Vertical scroller
  64.         GAD_VERT_ARROW_UP,
  65.         GAD_VERT_ARROW_DOWN,
  66.  
  67.         GAD_HORIZ_SCROLLER,     // Horizontal scroller
  68.         GAD_HORIZ_ARROW_LEFT,
  69.         GAD_HORIZ_ARROW_RIGHT,
  70. };
  71.  
  72.  
  73. // Bitmap routines
  74. struct BitMap *NewBitMap(ULONG,ULONG,ULONG,ULONG,struct BitMap *);
  75. void DisposeBitMap(struct BitMap *);
  76.  
  77.  
  78. // Find public screen node
  79. struct PubScreenNode *FindPubScreen(struct Screen *,BOOL);
  80.  
  81.  
  82. // Set busy pointer in a window
  83. void SetBusyPointer(struct Window *);
  84.  
  85. #endif
  86. @ENDNODE
  87.