aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/forms/formtabs.h
blob: a3602f3d98fdd7d90b0a3ad1048d547969b9cc20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __FORMTABS_H__
#define __FORMTABS_H__

typedef struct {
	FormPtr srcP;
	UInt16 first;
	UInt16 last;
} TabDataType, *TabDataPtr;

typedef struct {
	UInt16 count, active;
	Coord width;
	TabDataPtr tabs;
} TabType, *TabPtr;

typedef void (TabProc)(FormType *);

TabType	*TabNewTabs		(UInt16 cnt);
void 	 TabDeleteTabs	(TabType *tabP);
Err 	 TabAddContent	(FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscID, TabProc *preInit = 0);
void 	 TabSetActive	(FormType *frmP, TabType *tabP, UInt16 num);

#endif