home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
languages
/
northc_384
/
crender
/
menustrip.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-30
|
2KB
|
100 lines
/*
(c) 1990 S.Hawtin.
Permission is granted to copy this file provided
1) It is not used for commercial gain
2) This notice is included in all copies
3) Altered copies are marked as such
No liability is accepted for the contents of the file.
menustrip.h within NorthC render
*/
/* Define the data structures for the Render Menustrip,
I know that include files should not define data structures but this
makes "aif.c" that much cleaner
*/
/* The text for the items */
static struct IntuiText quit_text =
{
15,8,JAM1,0,1,NULL,"Quit",NULL
};
/* The MenuItem structures */
struct MenuItem quit_item =
{
NULL,
0,31,75,10,
ITEMTEXT|ITEMENABLED|HIGHCOMP,
0,(APTR) &quit_text,
NULL,0,NULL,MENUNULL,
};
#define QUIT_ITEM 3
static struct IntuiText req_text =
{
15,8,JAM1,0,1,NULL,"Controls",NULL
};
/* The MenuItem structures */
struct MenuItem req_item =
{
&quit_item,
0,21,75,10,
ITEMTEXT|ITEMENABLED|HIGHCOMP,
0,(APTR) &req_text,
NULL,0,NULL,MENUNULL,
};
#define REQ_ITEM 2
static struct IntuiText outline_text =
{
15,8,JAM1,LOWCHECKWIDTH,1,NULL,"WireFrm",NULL
};
/* The MenuItem structures */
struct MenuItem outline_item =
{
&req_item,
0,11,75,10,
ITEMTEXT|ITEMENABLED|CHECKIT|HIGHCOMP,
1,(APTR) &outline_text,
NULL,0,NULL,MENUNULL,
};
#define OUTLINE_ITEM 1
static struct IntuiText solid_text =
{
15,8,JAM1,LOWCHECKWIDTH,1,NULL,"Solid",NULL
};
/* The MenuItem structures */
struct MenuItem solid_item =
{
&outline_item,
0,1,75,10,
ITEMTEXT|ITEMENABLED|CHECKIT|CHECKED|HIGHCOMP,
2,(APTR) &solid_text,
NULL,0,NULL,MENUNULL,
};
#define SOLID_ITEM 0
struct Menu edit_menu =
{
NULL,
0,0,75,0,
MENUENABLED,
"Edit",
&solid_item
};
#define EDIT_MENU 0