11 #define MGUI_RELEASE 0x414 22 #if !defined DJGPP_MGUI && !defined X11_MGUI && !defined BC_MGUI && !defined WIN_MGUI && !defined WGRX_MGUI && !defined W4GW_MGUI 23 #if defined __TURBOC__ 24 #if defined __DPMI32__ 26 #elif defined __DPMI16__ 28 #elif defined _Windows 30 #if defined __WIN32__ && !defined WIN32 37 #elif defined __CYGWIN32__ 42 #elif defined __MINGW32__ 51 #elif defined __RSXNT__ 55 #elif defined __GO32__ 65 #elif defined _WINDOWS 70 #elif defined __WATCOMC__ 74 #elif defined __WINDOWS__ 78 #elif defined METAWINDOW 91 #if defined __TURBOC__ || defined _MSC_VER || defined __WATCOMC__ || defined __LCC__ 93 #elif !defined WIN_MGUI 100 #include "keycodes.h" 108 #if defined __GNUC__ && !defined WIN32 109 #define stricmp strcasecmp 162 #if !defined _BASETSD_H_ && !defined _BASETSD_H && !defined __basetsd_h__ 167 typedef unsigned long CARD32;
168 typedef unsigned short CARD16;
169 typedef unsigned char CARD8;
186 #define NOCOLOR ((MTColor)~0) 188 #if !defined _MGUI_OBJECT_H 216 #if !defined(X11_MGUI) && !defined(WIN_MGUI) 222 typedef struct _Window *Window;
224 #elif defined WIN_MGUI 227 typedef void *Window;
255 #define CS_LIGHTER 140 274 #define E_KEY_PRESS 1 275 #define E_BUTTON_PRESS 2 276 #define E_BUTTON_RELEASE 3 278 #define E_WINDOW_ENTER 5 279 #define E_WINDOW_EXIT 6 284 #define E_AUTOSIZE 11 288 #define E_DESELECT 15 289 #define E_CONFIGURE 16 290 #define E_PARENT_MAP 17 291 #define E_PARENT_UNMAP 18 292 #define E_SET_COLOR 19 293 #define E_SET_SHADOW 20 294 #define E_SET_TEXT 21 295 #define E_GET_TEXT 22 296 #define E_WM_CLOSE 23 297 #define E_SET_SENS 24 298 #define E_SET_PARENT_SENS 25 299 #define E_GRAB_LOSE 26 300 #define E_SET_BG_IMAGE 27 301 #define E_MOUSE_WHEEL 28 302 #define E_SET_TRANSPARENCY 29 303 #define E_PARENT_CHANGED 30 315 #define EM_NO_EVENT 0L 316 #define EM_KEY_PRESS 1L 317 #define EM_BUTTON_PRESS (1L<<1) 318 #define EM_BUTTON_RELEASE (1L<<2) 319 #define EM_MOTION (1L<<3) 320 #define EM_WINDOW_ENTER (1L<<4) 321 #define EM_WINDOW_EXIT (1L<<5) 322 #define EM_EXPOSE (1L<<6) 323 #define EM_DESTROY (1L<<7) 324 #define EM_MAP (1L<<8) 325 #define EM_UNMAP (1L<<9) 326 #define EM_AUTOSIZE (1L<<10) 327 #define EM_RESIZE (1L<<11) 328 #define EM_MOVE (1L<<12) 329 #define EM_SELECT (1L<<13) 330 #define EM_DESELECT (1L<<14) 331 #define EM_CONFIGURE (1L<<15) 332 #define EM_PARENT_MAP (1L<<16) 333 #define EM_PARENT_UNMAP (1L<<17) 334 #define EM_SET_COLOR (1L<<18) 335 #define EM_SET_SHADOW (1L<<19) 336 #define EM_SET_TEXT (1L<<20) 337 #define EM_GET_TEXT (1L<<21) 338 #define EM_WM_CLOSE (1L<<22) 339 #define EM_SET_SENS (1L<<23) 340 #define EM_SET_PARENT_SENS (1L<<24) 341 #define EM_GRAB_LOSE (1L<<25) 342 #define EM_SET_BG_IMAGE (1L<<26) 343 #define EM_MOUSE_WHEEL (1L<<27) 344 #define EM_SET_TRANSPARENCY (1L<<28) 345 #define EM_PARENT_CHANGED (1L<<29) 348 #if !defined X11_MGUI || defined DOXYGEN 356 #define Button1Mask (1<<8) 357 #define Button2Mask (1<<9) 358 #define Button3Mask (1<<10) 382 #define ShiftMask (1<<0) 383 #define LockMask (1<<1) 384 #define ControlMask (1<<2) 386 #define AltMask (1<<3) 392 #define AltMask (1<<3) 397 #if defined BC_MGUI || defined __DPMI16__ || defined WIN_MGUI && !defined __WIN32__ && !defined _MSC_VER 860 #define MC_NONE (MTCursor)0 861 #define MC_UL_ARROW (MTCursor)1 862 #define MC_CROSSHAIR (MTCursor)2 863 #define MC_HOURGLASS (MTCursor)3 864 #define MC_HSIZE (MTCursor)4 865 #define MC_VSIZE (MTCursor)5 866 #define MC_NWSIZE (MTCursor)6 867 #define MC_NESIZE (MTCursor)7 877 #define DEFAULT_FONT 0 878 #define FIXED_SMALL 1 879 #define FIXED_MEDIUM 2 880 #define FIXED_LARGE 3 882 #define HELV_MEDIUM 5 883 #define TIMES_SMALL 6 884 #define TIMES_MEDIUM 7 886 #define TIMES_LARGE 9 893 #define SMALL_FONT FIXED_SMALL 894 #define MEDIUM_FONT FIXED_MEDIUM 895 #define LARGE_FONT FIXED_LARGE 896 #define TIMES_N_FONT TIMES_SMALL 897 #define TIMES_L_FONT TIMES_MEDIUM 898 #define HELV_N_FONT HELV_SMALL 899 #define HELV_L_FONT HELV_MEDIUM 916 #define RIGHT_ALIGN 1 917 #define CENTER_ALIGN 2 919 #define BOTTOM_ALIGN 4 920 #define UNDEF_ALIGN 0x3f 929 #define MO_FGCOLOR 0x2 930 #define MO_BGCOLOR 0x4 931 #define MO_SHADOW 0x8 933 #define MO_BG_IMAGE 0x20 934 #define MO_TRANSPARENCY 0x40 935 #define MO_COLOR (MO_FGCOLOR|MO_BGCOLOR) 946 #define BI_CENTERED 1 947 #define BI_SIZE_FORCING 2 957 #define WS_SHADOW_OUT 1 958 #define WS_SHADOW_IN 2 959 #define WS_ETCHED_IN 3 960 #define WS_ETCHED_OUT 4 967 #define WS_HATCHED_IN WS_ETCHED_IN 968 #define WS_HATCHED_OUT WS_ETCHED_OUT 982 #define OT_SCROLLBAR 7 984 #define OT_STATUSBAR 9 987 #define OT_MENUBAR 12 989 #define OT_DRAWAREA 14 990 #define OT_SPLITTER 15 997 typedef struct _mtnode *
MTNODE;
1010 #define SF_NO_FOCUS_CHANGE 0x1 1015 #define SF_SAVEUNDER 0x2 1019 #define SF_MODAL 0x4 1021 #define SF_POPUP 0x8 1025 #define SF_IGNORE_WM_CLOSE 0x10 1030 #define SF_UNMAP_ON_WM_CLOSE 0x20 1032 #define SF_NO_CLOSE 0x40 1034 #define SF_NO_MAXIMIZE 0x80 1036 #define SF_NO_MINIMIZE 0x100 1038 #define SF_NO_RESIZE 0x200 1040 #define SF_NO_W_RESIZE 0x400 1042 #define SF_NO_H_RESIZE 0x800 1051 #define DEF_POSITION -32768 1053 #define DEF_SIZE -32768 1061 #define NF_CONTAINER 0x1 1062 #define NF_TOGGLE 0x2 1073 #define DBF_ALLOW_RENAME 0x1 1075 #define DBF_ALLOW_CREATE 0x2 1077 #define DBF_ALLOW_DELETE 0x4 1086 #define MSPOOL_FULL_QUEUE -1 1087 #define MSPOOL_NOT_READY -2 1088 #define MSPOOL_FILE_ERR -3 1096 #define F_PREF_ATT_POS 0 1097 #define F_PREF_ATT_ROW 1 1098 #define F_PREF_ATT_COL 2 1099 #define F_PREF_ATT_TABLE 3 1106 #define F_ATT_NONE 0 1107 #define F_ATT_FORM 1 1146 #define SBLT_ELIST 2 1148 #define SBL_ITEM_SELECTED 0x1L 1149 #define SBL_ITEM_CHECKED 0x2L 1301 #define XLItemCheck(pxl) ((pxl)->misc |= SBL_ITEM_CHECKED) 1306 #define XLItemUncheck(pxl) ((pxl)->misc &= ~SBL_ITEM_CHECKED) 1320 #define SIGNED 0x100 1326 #define ALPHANUM (ALPHA|DIGIT) 1327 #define UPALPHA (ALPHA|UPPER) 1328 #define LOWALPHA (ALPHA|LOWER) 1330 #define S_INT (DIGIT|SIGNED) 1331 #define U_FLOAT (DIGIT|DOT) 1332 #define S_FLOAT (DIGIT|DOT|SIGNED) 1410 #define SE_WRITE 0x2 1433 #ifdef NO_MGUI_CB_PROTO 1439 #if defined UNIQUE_CB_PROTO || defined NO_MGUI_CB_PROTO 1545 #define PO_DEFAULT 0 1546 #define PO_PORTRAIT 1 1547 #define PO_LANDSCAPE 2 1567 typedef void *DOC_ID;
Window window
Window which the event is directed to.
int type
Event type (E_EXPOSE)
int parent_drawn
Flag stating whether the parent object has already drawn itself.
unsigned int keycode
Code for the pressed key.
unsigned char * IMAGE_DATA
int width
Size of the area to redraw.
Window window
Window which the event is directed to.
CARD8 mode
Image drawing mode (BI_TILED, BI_CENTERED, BI_SIZE_FORCING)
const char * close_button
MSetGetTextEvent setgettext
void(* MTREE_NODE_CB)(MTNODE node, void *ad)
Window/Object Resize Event.
void(* SOCKET_CB)(int s, unsigned event, void *data)
void(* NEW_BLOCK_CB)(MOBJECT obj, SBL_NEW_BLOCK *nbs, void *ad)
MSetShadowEvent setshadow
Used by the ItemSeek callback for 'Clip' and 'Skip' lists.
char * text
Pointer to the string to read text from (to store text to).
void(* MENU_ITEM_CB)(MENU_ITEM item, MVALUE status, void *ad)
int(* MTREE_NODE_RENAME_CB)(MTNODE node, const char *, void *ad)
int type
Event type (E_SET_COLOR)
void(* EDIT_CURS_CB)(MOBJECT edit, EDIT_CURS *ev, void *ad)
Cursor Position for the Edit Object.
void(* MTREE_POPUP_CB)(MTNODE node, int mx, int my, void *ad)
int type
Event type (E_SET_SENS, E_SET_PARENT_SENS)
MAnyWindowEvent MWMCloseEvent
Window Close Event.
int width
New Window/Object size.
int(* STRCMP_CB)(const char *, const char *)
MAnyWindowEvent MSelectEvent
void(* ITEM_SEEK_CB)(MOBJECT obj, SBL_ITEM_SEEK *iss, void *ad)
unsigned int state
Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask) ...
void(* DB_DIR_CHANGE_CB)(MOBJECT, const char *, void *)
void(* OBJ_STRING_CB)(MOBJECT obj, char *str, void *ad)
int(* DB_ACTION_CB)(MOBJECT, const char *, char *, void *)
int sensitive
Boolean flag representing the new sensitivity status.
Object Set background image Event.
CARD8 level
Transparency level (0-255)
Window window
Window which the event is directed to.
int type
Event type (E_SET_TRANSPARENCY)
unsigned int button
button pressed/released (Button1, Button2 or Button3), 0 if no button involved
void(* LIST_ACT_CB)(MOBJECT list, LIST_ACT *la, void *ad)
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
unsigned int data[576]
Conversion data buffer 64 samples * 8 channels * 2 bytes.
int type
Event type (E_SET_SHADOW)
int out_thick
External border thickness.
MAnyWindowEvent MDeSelectEvent
MAnyWindowEvent any_window_event
MSetSensitivity setsensitivity
MAnyWindowEvent MMapEvent
Window/Object Map Event.
DrawArea Object's resize data.
Object Set Sensitivity Event.
Value Change for the Edit Object.
void(* EDIT_CHANGE_CB)(MOBJECT edit, EDIT_CHANGE *ec, void *ad)
MTColor bgc
Background color.
void(* OBJ_EVENT_CB)(MOBJECT obj, MEvent *e, void *ad)
void(* LIST_SEL_CB)(MOBJECT list, LIST_SEL *la, void *ad)
MSetTransparencyEvent settransparency
MTColor fgc
Foreground color.
int type
Event type (E_RESIZE)
void(* EDIT_VAL_CB)(MOBJECT edit, EDIT_VAL *ev, void *ad)
MConfigureEvent configure
MSetBGImageEvent setbgimage
const char * bg_image_file
Data feed for Skip and Clip List objects.
int scroll_delta
scrolling lines (mouse wheel command)
MAnyWindowEvent MFocusEvent
Window/Object Focus Event.
Object Set/Get Text Event.
Window/Object Expose Event.
Validation data for the EditField Object.
void(* DRAWAREA_PREF_CB)(MOBJECT drawa, DRAWAREA_PREF *dp, void *ad)
void(* OBJ_VALUE_CB)(MOBJECT obj, MVALUE value, void *ad)
int in_thick
Internal border thickness.
MAnyWindowEvent MUnmapEvent
Window Unmap Event.
void(* MGUI_CB)(MOBJECT obj, void *od, void *ad)
int(* MTREE_NODE_DELETE_CB)(MTNODE node, void *ad)
struct MIMAGE_DESCR * mask
int type
Event type (E_SET_TEXT, E_GET_TEXT)
const char * filter_label
Object Set Transparency Event.
int type
Event type (E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_MOUSE_WHEEL)
Template for EditList Object's creation.
unsigned int state
buttons and key modifiers mask
Window window
Window which the event is directed to.
MIMAGE img
Background image.
int type
Event type (E_SET_BG_IMAGE)
int type
Event type (E_KEY_PRESS)
Window window
Window which the event is directed to.
int type
Event type (E_MOVE)
Window window
Window which the event is directed to.
void(* WM_CLOSE_CB)(MOBJECT obj, void *odata, void *cdata)
void(* TIMEOUT_CB)(TIMEOUT_ID id, void *data)