X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/376a8ce2d48ccc0aa438e2a02fdc58b099fd2106..42d0df0030abbac4ca11a78b2f529133e3c9d986:/include/wx/defs.h?ds=sidebyside diff --git a/include/wx/defs.h b/include/wx/defs.h index 3bf1cd275e..b18f62f9d5 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -292,6 +292,13 @@ typedef int wxWindowID; #define wx_reinterpret_cast(t, x) ((t)(x)) #endif +/* + This one is a wx invention: like static cast but used when we intentionally + truncate from a larger to smaller type, static_cast<> can't be used for it + as it results in warnings when using some compilers (SGI mipspro for example) + */ +#define wx_truncate_cast(t, x) ((t)(x)) + /* for consistency with wxStatic/DynamicCast defined in wx/object.h */ #define wxConstCast(obj, className) wx_const_cast(className *, obj) @@ -1616,10 +1623,8 @@ enum wxBackgroundStyle /* Standard menu IDs */ enum { -#if wxABI_VERSION >= 20602 /* no id matches this one when compared to it */ wxID_NONE = -3, -#endif /* id for a separator line in the menu (invalid for normal item) */ wxID_SEPARATOR = -2, @@ -1802,6 +1807,11 @@ enum wxHitTest /* Don't do parent client adjustments (for implementation only) */ #define wxSIZE_NO_ADJUSTMENTS 0x0008 +#if wxABI_VERSION >= 20602 +/* Change the window position even if it seems to be already correct */ +#define wxSIZE_FORCE 0x0010 +#endif // 2.6.2+ + /* ---------------------------------------------------------------------------- */ /* GDI descriptions */ /* ---------------------------------------------------------------------------- */