home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / Triton / Source / prefs / Triton.h < prev    next >
C/C++ Source or Header  |  1998-05-23  |  2KB  |  84 lines

  1. /*
  2.  *  OpenTriton -- A free release of the triton.library source code
  3.  *  Copyright (C) 1993-1998  Stefan Zeiger
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20.  
  21.  
  22. struct TR_AppPrefs
  23. {
  24.   UBYTE version;
  25.   BOOL  frames_width;
  26.   UBYTE frames_title;
  27.   UWORD frames_type[5];
  28.   BOOL  frames_raised[5];
  29.   ULONG pentype[8];
  30.   ULONG pendata[8];
  31.   ULONG imgtype[4];
  32.   ULONG imgdata[4];
  33.   UBYTE pubscreen[32];
  34.   ULONG flags;
  35. };
  36.  
  37. // Prefs version
  38. #define TR_PREFSVERSION         3
  39.  
  40. // Prefs flags
  41. #define TRPF_RETURNARROW        0x00000001L
  42. #define TRPF_SIMPLEREFRESH      0x00000002L
  43.  
  44. // Image types
  45. #define TRIT_BFPATTERN          0L
  46. #define TRIT_GRAPHICSPEN        1L
  47. #define TRIT_TRITONIMAGE        100L
  48.  
  49. #ifndef TR_EXTERNAL_ONLY
  50. struct TR_AppPrefs TR_DefaultAppPrefs=
  51. {
  52.   TR_PREFSVERSION,
  53.   1,2,
  54.   BBFT_BUTTON,BBFT_ICONDROPBOX,BBFT_RIDGE,BBFT_BUTTON,BBFT_BUTTON,
  55.   TRUE,TRUE,FALSE,FALSE,FALSE,
  56.   TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,TRPT_SYSTEMPEN,
  57.   TEXTPEN,HIGHLIGHTTEXTPEN,BACKGROUNDPEN,FILLPEN,BACKGROUNDPEN,BACKGROUNDPEN,TEXTPEN,TEXTPEN,
  58.   TRIT_BFPATTERN,TRIT_BFPATTERN,TRIT_BFPATTERN,TRIT_BFPATTERN,
  59.   TRBF_NONE,TRBF_SHINE_BACKGROUND,TRBF_NONE,TRBF_FILL,
  60.   NULL,
  61.   NULL
  62. };
  63. #endif
  64.  
  65. struct TR_ScreenNode
  66. {
  67.   struct Node node;
  68.   UBYTE version;
  69.   ULONG id;
  70.   UBYTE pubname[32];
  71.   UBYTE title[124];
  72.   UBYTE fontname[32];
  73.   ULONG fontsize;
  74.   ULONG flags;
  75.   ULONG screenmode;
  76.   ULONG width;
  77.   ULONG height;
  78.   ULONG depth;
  79.   ULONG backfilltype;
  80.   UBYTE backfillname[124];
  81.   struct Screen *screen;
  82.   struct Window *backfillwindow;
  83. };
  84.