Mercurial > dwindows
comparison dw.h @ 24:d9e87e8bcf1d
Updated dynamic windows to build with EMX.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 17 Aug 2001 11:44:05 +0000 |
parents | 6a246b3bb14f |
children | f3bf96c2786d |
comparison
equal
deleted
inserted
replaced
23:2932f9d2c7d5 | 24:d9e87e8bcf1d |
---|---|
305 } Item; | 305 } Item; |
306 | 306 |
307 typedef struct _box { | 307 typedef struct _box { |
308 #if defined(__WIN32__) || defined(WINNT) | 308 #if defined(__WIN32__) || defined(WINNT) |
309 ColorInfo cinfo; | 309 ColorInfo cinfo; |
310 #elif defined(__OS2__) | 310 #elif defined(__OS2__) || defined(__EMX__) |
311 PFNWP oldproc; | 311 PFNWP oldproc; |
312 #endif | 312 #endif |
313 /* Number of items in the box */ | 313 /* Number of items in the box */ |
314 int count; | 314 int count; |
315 /* Box type - horizontal or vertical */ | 315 /* Box type - horizontal or vertical */ |
553 #define DW_RED_VALUE(a) (a & DW_RED_MASK) | 553 #define DW_RED_VALUE(a) (a & DW_RED_MASK) |
554 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) | 554 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) |
555 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) | 555 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) |
556 #define DW_RGB(a, b, c) (0xFF000000 | a | b << 8 | c << 16) | 556 #define DW_RGB(a, b, c) (0xFF000000 | a | b << 8 | c << 16) |
557 | 557 |
558 #ifdef __OS2__ | 558 #if defined(__OS2__) || defined(__EMX__) |
559 #define DW_OS2_RGB(a) ((DW_RED_VALUE(a) << 16) | (DW_GREEN_VALUE(a) << 8) | DW_BLUE_VALUE(a)) | 559 #define DW_OS2_RGB(a) ((DW_RED_VALUE(a) << 16) | (DW_GREEN_VALUE(a) << 8) | DW_BLUE_VALUE(a)) |
560 #endif | 560 #endif |
561 | 561 |
562 /* Public function prototypes */ | 562 /* Public function prototypes */ |
563 void dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); | 563 void dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); |
564 void dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); | 564 void dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); |
565 #if !defined(__OS2__) && !defined(__WIN32__) | 565 #if !defined(__OS2__) && !defined(__WIN32__) && !defined(__EMX__) |
566 int dw_int_init(DWResources *res, int newthread, int argc, char *argv[]); | 566 int dw_int_init(DWResources *res, int newthread, int argc, char *argv[]); |
567 #define dw_init(a, b, c) dw_int_init(&_resources, a, b, c) | 567 #define dw_init(a, b, c) dw_int_init(&_resources, a, b, c) |
568 #else | 568 #else |
569 int dw_init(int newthread, int argc, char *argv[]); | 569 int dw_init(int newthread, int argc, char *argv[]); |
570 #endif | 570 #endif |