Mercurial > dwindows
comparison dw.h @ 1802:aedf5903db0a
Add DW_FCF_TEXTURED window style; relevant only for Mac port.
Remove NSTexturedBackgroundWindowMask from style in dw_window_new.
Add Copyright notice to winmain.c.
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 27 Sep 2012 05:09:10 +0000 |
parents | 9304241b7b33 |
children | 22225eb286e5 |
comparison
equal
deleted
inserted
replaced
1801:889f8d47761c | 1802:aedf5903db0a |
---|---|
141 #define DW_FCF_HIDEBUTTON FCF_HIDEBUTTON | 141 #define DW_FCF_HIDEBUTTON FCF_HIDEBUTTON |
142 #define DW_FCF_HIDEMAX FCF_HIDEMAX | 142 #define DW_FCF_HIDEMAX FCF_HIDEMAX |
143 #define DW_FCF_AUTOICON FCF_AUTOICON | 143 #define DW_FCF_AUTOICON FCF_AUTOICON |
144 #define DW_FCF_MAXIMIZE WS_MAXIMIZED | 144 #define DW_FCF_MAXIMIZE WS_MAXIMIZED |
145 #define DW_FCF_MINIMIZE WS_MINIMIZED | 145 #define DW_FCF_MINIMIZE WS_MINIMIZED |
146 #define DW_FCF_TEXTURED 0 | |
146 | 147 |
147 #define DW_CFA_BITMAPORICON CFA_BITMAPORICON | 148 #define DW_CFA_BITMAPORICON CFA_BITMAPORICON |
148 #define DW_CFA_STRING CFA_STRING | 149 #define DW_CFA_STRING CFA_STRING |
149 #define DW_CFA_ULONG CFA_ULONG | 150 #define DW_CFA_ULONG CFA_ULONG |
150 #define DW_CFA_TIME CFA_TIME | 151 #define DW_CFA_TIME CFA_TIME |
351 #define DW_FCF_HIDEBUTTON 0 | 352 #define DW_FCF_HIDEBUTTON 0 |
352 #define DW_FCF_HIDEMAX 0 | 353 #define DW_FCF_HIDEMAX 0 |
353 #define DW_FCF_AUTOICON 0 | 354 #define DW_FCF_AUTOICON 0 |
354 #define DW_FCF_MAXIMIZE 0 | 355 #define DW_FCF_MAXIMIZE 0 |
355 #define DW_FCF_MINIMIZE 0 | 356 #define DW_FCF_MINIMIZE 0 |
357 #define DW_FCF_TEXTURED (1 << 8) /* NSTexturedBackgroundWindowMask */ | |
356 | 358 |
357 #define DW_CFA_BITMAPORICON 1 | 359 #define DW_CFA_BITMAPORICON 1 |
358 #define DW_CFA_STRING (1 << 1) | 360 #define DW_CFA_STRING (1 << 1) |
359 #define DW_CFA_ULONG (1 << 2) | 361 #define DW_CFA_ULONG (1 << 2) |
360 #define DW_CFA_TIME (1 << 3) | 362 #define DW_CFA_TIME (1 << 3) |
527 #define DW_FCF_HIDEMAX (WS_MINIMIZEBOX|WS_MAXIMIZEBOX) | 529 #define DW_FCF_HIDEMAX (WS_MINIMIZEBOX|WS_MAXIMIZEBOX) |
528 #define DW_FCF_AUTOICON 0 | 530 #define DW_FCF_AUTOICON 0 |
529 #define DW_FCF_MAXIMIZE WS_MAXIMIZE | 531 #define DW_FCF_MAXIMIZE WS_MAXIMIZE |
530 #define DW_FCF_MINIMIZE WS_MINIMIZE | 532 #define DW_FCF_MINIMIZE WS_MINIMIZE |
531 #define DW_FCF_COMPOSITED 1 | 533 #define DW_FCF_COMPOSITED 1 |
534 #define DW_FCF_TEXTURED 0 | |
532 | 535 |
533 #define DW_CFA_BITMAPORICON 1 | 536 #define DW_CFA_BITMAPORICON 1 |
534 #define DW_CFA_STRING (1 << 1) | 537 #define DW_CFA_STRING (1 << 1) |
535 #define DW_CFA_ULONG (1 << 2) | 538 #define DW_CFA_ULONG (1 << 2) |
536 #define DW_CFA_TIME (1 << 3) | 539 #define DW_CFA_TIME (1 << 3) |
789 #define DW_FCF_HIDEBUTTON 0 | 792 #define DW_FCF_HIDEBUTTON 0 |
790 #define DW_FCF_HIDEMAX 0 | 793 #define DW_FCF_HIDEMAX 0 |
791 #define DW_FCF_AUTOICON (Ph_WM_RENDER_ASICON | ~Ph_WM_RENDER_ASAPP) | 794 #define DW_FCF_AUTOICON (Ph_WM_RENDER_ASICON | ~Ph_WM_RENDER_ASAPP) |
792 #define DW_FCF_MAXIMIZE 0 | 795 #define DW_FCF_MAXIMIZE 0 |
793 #define DW_FCF_MINIMIZE 0 | 796 #define DW_FCF_MINIMIZE 0 |
797 #define DW_FCF_TEXTURED 0 | |
794 | 798 |
795 #define DW_CFA_BITMAPORICON 1 | 799 #define DW_CFA_BITMAPORICON 1 |
796 #define DW_CFA_STRING (1 << 1) | 800 #define DW_CFA_STRING (1 << 1) |
797 #define DW_CFA_ULONG (1 << 2) | 801 #define DW_CFA_ULONG (1 << 2) |
798 #define DW_CFA_TIME (1 << 3) | 802 #define DW_CFA_TIME (1 << 3) |
971 #define DW_FCF_HIDEMAX (1 << 17) | 975 #define DW_FCF_HIDEMAX (1 << 17) |
972 #define DW_FCF_AUTOICON (1 << 18) | 976 #define DW_FCF_AUTOICON (1 << 18) |
973 #define DW_FCF_MAXIMIZE (1 << 19) | 977 #define DW_FCF_MAXIMIZE (1 << 19) |
974 #define DW_FCF_MINIMIZE (1 << 20) | 978 #define DW_FCF_MINIMIZE (1 << 20) |
975 #define DW_FCF_CLOSEBUTTON (1 << 21) | 979 #define DW_FCF_CLOSEBUTTON (1 << 21) |
980 #define DW_FCF_TEXTURED 0 | |
976 | 981 |
977 #define DW_CFA_BITMAPORICON 1 | 982 #define DW_CFA_BITMAPORICON 1 |
978 #define DW_CFA_STRING (1 << 1) | 983 #define DW_CFA_STRING (1 << 1) |
979 #define DW_CFA_ULONG (1 << 2) | 984 #define DW_CFA_ULONG (1 << 2) |
980 #define DW_CFA_TIME (1 << 3) | 985 #define DW_CFA_TIME (1 << 3) |
1435 #if defined(__has_feature) && !defined(__has_extension) | 1440 #if defined(__has_feature) && !defined(__has_extension) |
1436 #define __has_extension __has_feature | 1441 #define __has_extension __has_feature |
1437 #endif | 1442 #endif |
1438 | 1443 |
1439 /* Visual C */ | 1444 /* Visual C */ |
1440 #if defined(_MSC_VER) | 1445 #if defined(_MSC_VER) |
1441 # if _MSC_VER >= 1400 | 1446 # if _MSC_VER >= 1400 |
1442 # define DW_DEPRECATED(func, message) __declspec(deprecated(message)) func | 1447 # define DW_DEPRECATED(func, message) __declspec(deprecated(message)) func |
1443 # endif | 1448 # endif |
1444 /* Clang */ | 1449 /* Clang */ |
1445 #elif defined(__has_extension) | 1450 #elif defined(__has_extension) |
1446 # if __has_extension(attribute_deprecated_with_message) | 1451 # if __has_extension(attribute_deprecated_with_message) |
1447 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated (message))) | 1452 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated (message))) |
1448 # else | 1453 # else |
1449 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated)) | 1454 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated)) |
1450 # endif | 1455 # endif |
1451 /* GCC */ | 1456 /* GCC */ |
1452 #elif defined(__GNUC__) | 1457 #elif defined(__GNUC__) |
1453 # if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 | 1458 # if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 |
1454 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated (message))) | 1459 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated (message))) |
1455 # else | 1460 # else |
1456 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated)) | 1461 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated)) |
1457 # endif | 1462 # endif |
1458 #endif | 1463 #endif |