|
|
1.1 root 1: /*
2: Hatari - statusbar.h
3:
1.1.1.3 root 4: This file is distributed under the GNU General Public License, version 2
5: or at your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
7: #ifndef HATARI_STATUSBAR_H
8: #define HATARI_STATUSBAR_H
9:
1.1.1.6 ! root 10: #include <SDL_video.h>
1.1 root 11:
1.1.1.5 root 12: /* must correspond to max value returned by Statusbar_GetHeightForSize() */
13: #define STATUSBAR_MAX_HEIGHT (2*(2*8+2))
14:
1.1 root 15: typedef enum {
16: DRIVE_LED_A,
17: DRIVE_LED_B,
18: DRIVE_LED_HD
19: } drive_index_t;
20:
1.1.1.3 root 21: typedef enum {
22: LED_STATE_OFF,
23: LED_STATE_ON,
24: LED_STATE_ON_BUSY,
25: MAX_LED_STATE
26: } drive_led_t;
27:
28:
1.1 root 29: extern int Statusbar_SetHeight(int ScreenWidth, int ScreenHeight);
1.1.1.2 root 30: extern int Statusbar_GetHeightForSize(int width, int height);
1.1 root 31: extern int Statusbar_GetHeight(void);
1.1.1.3 root 32: extern void Statusbar_EnableHDLed(drive_led_t state);
33: extern void Statusbar_SetFloppyLed(drive_index_t drive, drive_led_t state);
1.1 root 34:
35: extern void Statusbar_Init(SDL_Surface *screen);
36: extern void Statusbar_UpdateInfo(void);
37: extern void Statusbar_AddMessage(const char *msg, Uint32 msecs);
38: extern void Statusbar_OverlayBackup(SDL_Surface *screen);
1.1.1.4 root 39: extern SDL_Rect* Statusbar_Update(SDL_Surface *screen, bool do_update);
1.1 root 40: extern void Statusbar_OverlayRestore(SDL_Surface *screen);
41:
42: #endif /* HATARI_STATUSBAR_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.