3 #ifndef IMAGES_TITLEBAR_H
4 #define IMAGES_TITLEBAR_H
7 /************************************************************/
8 /* Public definitions for the "titlebar image" BOOPSI class */
9 /************************************************************/
11 /* This macro can be used to compute the correct position for a gadget */
12 /* to be placed into the titlebar. "tbi" is a pointer to a "tbiclass" */
13 /* instance and "num" is the number of gadgets (zoom, depth...) that */
14 /* will be at the right side of the new gadget. For instance, if your */
15 /* window has both a zoom gadget and a depth gadget, you can compute */
16 /* the position of a new titlebar gadget with TBI_RELPOS(tbi,2). */
17 /* If there's instead only a depth gadget, you'll use TBI_RELPOS(tbi,1). */
18 /* Note: the new gadget MUST have the GFLG_RELRIGHT flag set. */
20 #define TBI_RELPOS(tbi,num) (1 - ((1 + (num)) * ((tbi)->Width - 1)))
22 /* Attributes defined by the "tbiclass" image class */
24 #define TBIA_Dummy (TAG_USER + 0x0B0000)
25 #define TBIA_ContentsBox (TBIA_Dummy + 0x0001) /* Get inner size (V40.12) */
27 /* Types of titlebar gadget images available */
29 #define POPUPIMAGE (101)
30 #define MUIIMAGE (102)
31 #define SNAPSHOTIMAGE (103)
32 #define ICONIFYIMAGE (104)
33 #define PADLOCKIMAGE (105)
34 #define TBFRAMEIMAGE (106)
37 /***********************************************************/
38 /* Public structures for the "titlebar image" BOOPSI class */
39 /***********************************************************/