1 /* Emacs style mode select -*- C++ -*-
2 *-----------------------------------------------------------------------------
5 * PrBoom a Doom port merged with LxDoom and LSDLDoom
6 * based on BOOM, a modified and improved DOOM engine
7 * Copyright (C) 1999 by
8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 * Copyright (C) 1999-2000 by
10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
28 * The status bar widget definitions and prototypes
30 *-----------------------------------------------------------------------------*/
35 // We are referring to patches.
37 #include "v_video.h" // color ranges
40 // Background and foreground screen numbers
46 // Typedefs of widgets
53 // upper right-hand corner
54 // of the number (right-justified)
58 // max # of digits in number
64 // pointer to current value
67 // pointer to boolean stating
68 // whether to update number
71 // list of patches for 0-9
78 // Percent widget ("child" of number widget,
79 // or, more precisely, contains a number widget.)
85 // percent sign graphic
89 // Multiple Icon widget
92 // center-justified location of icons
99 // pointer to current icon
102 // pointer to boolean stating
103 // whether to update icon
114 // Binary Icon widget
118 // center-justified location of icon
125 // pointer to current icon status
128 // pointer to boolean
129 // stating whether to update icon
132 const patchnum_t
* p
; // icon
133 int data
; // user data
137 // Widget creation, access, and update routines
140 // Initializes widget library.
141 // More precisely, initialize STMINUS,
142 // everything else is done somewhere else.
144 void STlib_init(void);
146 // Number widget routines
151 const patchnum_t
* pl
,
162 // Percent widget routines
163 void STlib_initPercent
167 const patchnum_t
* pl
,
170 const patchnum_t
* percent
);
173 void STlib_updatePercent
179 // Multiple Icon widget routines
180 void STlib_initMultIcon
184 const patchnum_t
* il
,
189 void STlib_updateMultIcon
193 // Binary Icon widget routines
195 void STlib_initBinIcon
203 void STlib_updateBinIcon