libmxp.h | libmxp.h | |||
---|---|---|---|---|
skipping to change at line 30 | skipping to change at line 30 | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
enum attribs { | enum attribs { | |||
Bold = 0x01, | Bold = 0x01, | |||
Italic = 0x02, | Italic = 0x02, | |||
Underline = 0x04, | Underline = 0x04, | |||
Strikeout = 0x08 | Strikeout = 0x08 | |||
}; | }; | |||
struct RGB { | typedef struct { | |||
unsigned char r, g, b; | unsigned char r, g, b; | |||
}; | } RGB; | |||
struct mxpResult { | typedef struct { | |||
int type; //result type | int type; //result type | |||
void *data; //result data, contents depend on result type | void *data; //result data, contents depend on result type | |||
}; | } mxpResult; | |||
/** PUBLIC API for the library */ | /** PUBLIC API for the library */ | |||
typedef void * MXPHANDLER; | typedef void * MXPHANDLER; | |||
/** create a new MXP handler */ | /** create a new MXP handler */ | |||
MXPHANDLER mxpCreateHandler (); | MXPHANDLER mxpCreateHandler (); | |||
/** destroy a previously created MXP handler */ | /** destroy a previously created MXP handler */ | |||
void mxpDestroyHandler (MXPHANDLER handler); | void mxpDestroyHandler (MXPHANDLER handler); | |||
skipping to change at line 160 | skipping to change at line 160 | |||
Left = 1, | Left = 1, | |||
Right, | Right, | |||
Bottom, | Bottom, | |||
Top, | Top, | |||
Middle | Middle | |||
}; | }; | |||
//for type 13 | //for type 13 | |||
struct internalWindowStruct { | struct internalWindowStruct { | |||
char *name, *title; | char *name, *title; | |||
alignType align; | enum alignType align; | |||
char scrolling; | char scrolling; | |||
}; | }; | |||
//for type 16 | //for type 16 | |||
struct moveStruct { | struct moveStruct { | |||
int x, y; | int x, y; | |||
}; | }; | |||
//for type 18 | //for type 18 | |||
struct relocateStruct { | struct relocateStruct { | |||
char *server; | char *server; | |||
int port; | int port; | |||
}; | }; | |||
//for type 20 | //for type 20 | |||
struct imageStruct { | struct imageStruct { | |||
char *fname, *url, *type; | char *fname, *url, *type; | |||
int height, width, hspace, vspace; | int height, width, hspace, vspace; | |||
alignType align; | enum alignType align; | |||
}; | }; | |||
//for type 22 | //for type 22 | |||
struct gaugeStruct { | struct gaugeStruct { | |||
char *variable, *maxvariable, *caption; | char *variable, *maxvariable, *caption; | |||
RGB color; | RGB color; | |||
}; | }; | |||
//for type 23 | //for type 23 | |||
struct statStruct { | struct statStruct { | |||
End of changes. 6 change blocks. | ||||
6 lines changed or deleted | 6 lines changed or added | |||