|
|
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:
10: #include <SDL.h>
11: #include "main.h"
12:
1.1.1.5 ! root 13: /* must correspond to max value returned by Statusbar_GetHeightForSize() */
! 14: #define STATUSBAR_MAX_HEIGHT (2*(2*8+2))
! 15:
1.1 root 16: typedef enum {
17: DRIVE_LED_A,
18: DRIVE_LED_B,
19: DRIVE_LED_HD
20: } drive_index_t;
21:
1.1.1.3 root 22: typedef enum {
23: LED_STATE_OFF,
24: LED_STATE_ON,
25: LED_STATE_ON_BUSY,
26: MAX_LED_STATE
27: } drive_led_t;
28:
29:
1.1 root 30: extern int Statusbar_SetHeight(int ScreenWidth, int ScreenHeight);
1.1.1.2 root 31: extern int Statusbar_GetHeightForSize(int width, int height);
1.1 root 32: extern int Statusbar_GetHeight(void);
1.1.1.3 root 33: extern void Statusbar_EnableHDLed(drive_led_t state);
34: extern void Statusbar_SetFloppyLed(drive_index_t drive, drive_led_t state);
1.1 root 35:
36: extern void Statusbar_Init(SDL_Surface *screen);
37: extern void Statusbar_UpdateInfo(void);
38: extern void Statusbar_AddMessage(const char *msg, Uint32 msecs);
39: extern void Statusbar_OverlayBackup(SDL_Surface *screen);
1.1.1.4 root 40: extern SDL_Rect* Statusbar_Update(SDL_Surface *screen, bool do_update);
1.1 root 41: extern void Statusbar_OverlayRestore(SDL_Surface *screen);
42:
43: #endif /* HATARI_STATUSBAR_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.