File:  [HATARI the Atari ST Emulator] / hatari / src / includes / statusbar.h
Revision 1.1.1.6 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:59:29 2019 UTC (7 years, 1 month ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, HEAD
hatari 2.2.0

/*
  Hatari - statusbar.h
  
  This file is distributed under the GNU General Public License, version 2
  or at your option any later version. Read the file gpl.txt for details.
*/
#ifndef HATARI_STATUSBAR_H
#define HATARI_STATUSBAR_H

#include <SDL_video.h>

/* must correspond to max value returned by Statusbar_GetHeightForSize() */
#define STATUSBAR_MAX_HEIGHT (2*(2*8+2))

typedef enum {
	DRIVE_LED_A,
	DRIVE_LED_B,
	DRIVE_LED_HD
} drive_index_t;

typedef enum {
	LED_STATE_OFF,
	LED_STATE_ON,
	LED_STATE_ON_BUSY,
	MAX_LED_STATE
} drive_led_t;


extern int Statusbar_SetHeight(int ScreenWidth, int ScreenHeight);
extern int Statusbar_GetHeightForSize(int width, int height);
extern int Statusbar_GetHeight(void);
extern void Statusbar_EnableHDLed(drive_led_t state);
extern void Statusbar_SetFloppyLed(drive_index_t drive, drive_led_t state);

extern void Statusbar_Init(SDL_Surface *screen);
extern void Statusbar_UpdateInfo(void);
extern void Statusbar_AddMessage(const char *msg, Uint32 msecs);
extern void Statusbar_OverlayBackup(SDL_Surface *screen);
extern SDL_Rect* Statusbar_Update(SDL_Surface *screen, bool do_update);
extern void Statusbar_OverlayRestore(SDL_Surface *screen);

#endif /* HATARI_STATUSBAR_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.