Mercurial > dwindows
comparison dw.h @ 283:54aafc134652
BOXVERT is now DW_VERT and BOXHORZ is now DW_HORZ. Also code cleanups,
and fixed SHIFT-TAB through splitbars. Simplified the TAB and SHIFT-TAB
handling code on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 17 Mar 2003 15:33:51 +0000 |
parents | 984db8aefd7f |
children | 4559a2fd2db2 |
comparison
equal
deleted
inserted
replaced
282:916045924784 | 283:54aafc134652 |
---|---|
317 | 317 |
318 #define DW_NOMENU NULL | 318 #define DW_NOMENU NULL |
319 #endif | 319 #endif |
320 | 320 |
321 typedef struct _item { | 321 typedef struct _item { |
322 /* Item type - Box or Item */ | 322 /* Item type - Box or Item */ |
323 int type; | 323 int type; |
324 /* Handle to Frame or Window */ | 324 /* Handle to Frame or Window */ |
325 HWND hwnd; | 325 HWND hwnd; |
326 /* Width and Height of static size */ | 326 /* Width and Height of static size */ |
327 int width, height, origwidth, origheight; | 327 int width, height, origwidth, origheight; |
328 /* Size Type - Static or Expand */ | 328 /* Size Type - Static or Expand */ |
329 int hsize, vsize; | 329 int hsize, vsize; |
330 /* Padding */ | 330 /* Padding */ |
331 int pad; | 331 int pad; |
332 /* Ratio of current item */ | 332 /* Ratio of current item */ |
333 float xratio, yratio; | 333 float xratio, yratio; |
334 } Item; | 334 } Item; |
335 | 335 |
336 typedef struct _box { | 336 typedef struct _box { |
337 #if defined(__WIN32__) || defined(WINNT) | 337 #if defined(__WIN32__) || defined(WINNT) |
338 ColorInfo cinfo; | 338 ColorInfo cinfo; |
340 PFNWP oldproc; | 340 PFNWP oldproc; |
341 UserData *root; | 341 UserData *root; |
342 HWND hwndtitle; | 342 HWND hwndtitle; |
343 int titlebar; | 343 int titlebar; |
344 #endif | 344 #endif |
345 /* Number of items in the box */ | 345 /* Number of items in the box */ |
346 int count; | 346 int count; |
347 /* Box type - horizontal or vertical */ | 347 /* Box type - horizontal or vertical */ |
348 int type; | 348 int type; |
349 /* Padding */ | 349 /* Padding */ |
350 int pad, parentpad; | 350 int pad, parentpad; |
351 /* Groupbox */ | 351 /* Groupbox */ |
352 HWND grouphwnd; | 352 HWND grouphwnd; |
353 /* Default item */ | 353 /* Default item */ |
354 HWND defaultitem; | 354 HWND defaultitem; |
355 /* Used as temporary storage in the calculation stage */ | 355 /* Used as temporary storage in the calculation stage */ |
356 int upx, upy, minheight, minwidth; | 356 int upx, upy, minheight, minwidth; |
357 /* Ratio in this box */ | 357 /* Ratio in this box */ |
358 float xratio, yratio, parentxratio, parentyratio; | 358 float xratio, yratio, parentxratio, parentyratio; |
359 /* Used for calculating individual item ratios */ | 359 /* Used for calculating individual item ratios */ |
360 int width, height; | 360 int width, height; |
361 /* Any combinations of flags describing the box */ | 361 /* Any combinations of flags describing the box */ |
564 typedef struct _dw_unix_event { | 564 typedef struct _dw_unix_event { |
565 pthread_mutex_t mutex; | 565 pthread_mutex_t mutex; |
566 pthread_cond_t event; | 566 pthread_cond_t event; |
567 pthread_t thread; | 567 pthread_t thread; |
568 int alive; | 568 int alive; |
569 int posted; | 569 int posted; |
570 } *HEV; | 570 } *HEV; |
571 typedef pthread_t DWTID; | 571 typedef pthread_t DWTID; |
572 typedef void * HMOD; | 572 typedef void * HMOD; |
573 | 573 |
574 typedef struct _hpixmap { | 574 typedef struct _hpixmap { |
575 unsigned long width, height; | 575 unsigned long width, height; |
576 GdkPixmap *pixmap; | 576 GdkPixmap *pixmap; |
577 HWND handle; | 577 HWND handle; |
578 } *HPIXMAP; | 578 } *HPIXMAP; |
579 | 579 |
580 typedef GtkWidget *HMENUI; | 580 typedef GtkWidget *HMENUI; |
581 | 581 |
582 #define DW_NOMENU NULL | 582 #define DW_NOMENU NULL |
595 #endif | 595 #endif |
596 | 596 |
597 #if !defined(__OS2__) && !defined(__EMX__) | 597 #if !defined(__OS2__) && !defined(__EMX__) |
598 typedef struct _CDATE | 598 typedef struct _CDATE |
599 { | 599 { |
600 UCHAR day; | 600 UCHAR day; |
601 UCHAR month; | 601 UCHAR month; |
602 USHORT year; | 602 USHORT year; |
603 } CDATE; | 603 } CDATE; |
604 typedef CDATE *PCDATE; | 604 typedef CDATE *PCDATE; |
605 | 605 |
606 typedef struct _CTIME | 606 typedef struct _CTIME |
607 { | 607 { |
608 UCHAR hours; | 608 UCHAR hours; |
609 UCHAR minutes; | 609 UCHAR minutes; |
610 UCHAR seconds; | 610 UCHAR seconds; |
611 UCHAR ucReserved; | 611 UCHAR ucReserved; |
612 } CTIME; | 612 } CTIME; |
613 typedef CTIME *PCTIME; | 613 typedef CTIME *PCTIME; |
614 #endif | 614 #endif |
615 | 615 |
616 #if defined(__OS2__) || defined(__WIN32__) || defined(WINNT) || defined(__EMX__) | 616 #if defined(__OS2__) || defined(__WIN32__) || defined(WINNT) || defined(__EMX__) |
651 #define DW_EXEC_GUI 1 | 651 #define DW_EXEC_GUI 1 |
652 | 652 |
653 #define DW_FILE_OPEN 0 | 653 #define DW_FILE_OPEN 0 |
654 #define DW_FILE_SAVE 1 | 654 #define DW_FILE_SAVE 1 |
655 | 655 |
656 #define BOXHORZ 0 | 656 #define DW_HORZ 0 |
657 #define BOXVERT 1 | 657 #define DW_VERT 1 |
658 | |
659 /* Obsolete, should disappear sometime */ | |
660 #define BOXHORZ DW_HORZ | |
661 #define BOXVERT DW_VERT | |
658 | 662 |
659 #define DW_SCROLL_UP 0 | 663 #define DW_SCROLL_UP 0 |
660 #define DW_SCROLL_DOWN 1 | 664 #define DW_SCROLL_DOWN 1 |
661 #define DW_SCROLL_TOP 2 | 665 #define DW_SCROLL_TOP 2 |
662 #define DW_SCROLL_BOTTOM 3 | 666 #define DW_SCROLL_BOTTOM 3 |