File: statusba.h

package info (click to toggle)
sludge 2.2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,852 kB
  • sloc: cpp: 32,432; sh: 1,237; makefile: 634; xml: 284
file content (34 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
struct statusBar {
	char * text;
	statusBar * next;
};

struct statusStuff {
	statusBar * firstStatusBar;
	unsigned short alignStatus;
	int litStatus;
	int statusX, statusY;
	int statusR, statusG, statusB;
	int statusLR, statusLG, statusLB;
};

void initStatusBar ();

void setStatusBar (char * txt);
void clearStatusBar ();
void addStatusBar ();
void killLastStatus ();
void statusBarColour (unsigned char r, unsigned char g, unsigned char b);
void statusBarLitColour (unsigned char r, unsigned char g, unsigned char b);
void setLitStatus (int i);
const char * statusBarText ();
void positionStatus (int, int);
void drawStatusBar ();

// Load and save
bool loadStatusBars (FILE * fp);
void saveStatusBars (FILE * fp);

// For freezing
void restoreBarStuff (statusStuff * here);
statusStuff * copyStatusBarStuff (statusStuff * here);