changed wxSystemSettings::HasFrameDecorations to more general GetCapability(index)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,8 +36,8 @@ public:
|
||||
// Get a system metric, e.g. scrollbar size
|
||||
static int GetSystemMetric(int index);
|
||||
|
||||
// Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
|
||||
static bool HasFrameDecorations() { return TRUE; }
|
||||
// Return true if the port has certain feature
|
||||
static bool GetCapability(int index);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -36,8 +36,8 @@ public:
|
||||
// Get a system metric, e.g. scrollbar size
|
||||
static int GetSystemMetric(int index);
|
||||
|
||||
// Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
|
||||
static bool HasFrameDecorations() { return TRUE; }
|
||||
// Return true if the port has certain feature
|
||||
static bool GetCapability(int index);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -128,8 +128,9 @@ public:
|
||||
// Get a system metric, e.g. scrollbar size
|
||||
static int GetSystemMetric(int index);
|
||||
|
||||
// Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
|
||||
static bool HasFrameDecorations() { return TRUE; }
|
||||
// Return true if the port has certain feature
|
||||
static bool GetCapability(int index);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -37,8 +37,8 @@ public:
|
||||
// Get a system metric, e.g. scrollbar size
|
||||
static int GetSystemMetric(int index);
|
||||
|
||||
// Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
|
||||
static bool HasFrameDecorations() { return FALSE; }
|
||||
// Return true if the port has certain feature
|
||||
static bool GetCapability(int index);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -37,8 +37,9 @@ public:
|
||||
// Get a system metric, e.g. scrollbar size
|
||||
static int GetSystemMetric(int index);
|
||||
|
||||
// Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
|
||||
static bool HasFrameDecorations() { return TRUE; }
|
||||
// Return true if the port has certain feature
|
||||
static bool GetCapability(int index);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -33,9 +33,8 @@ public:
|
||||
// Get a system metric, e.g. scrollbar size
|
||||
static int GetSystemMetric(int index);
|
||||
|
||||
// Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
|
||||
static bool HasFrameDecorations() { return TRUE; }
|
||||
|
||||
// Return true if the port has certain feature
|
||||
static bool GetCapability(int index);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -24,7 +24,7 @@ public:
|
||||
static wxColour GetSystemColour(int index);
|
||||
static wxFont GetSystemFont(int index);
|
||||
static int GetSystemMetric(int index);
|
||||
static bool HasFrameDecorations() { return TRUE; }
|
||||
static bool GetCapability(int index);
|
||||
}; // end of CLASS wxSystemSettings
|
||||
|
||||
#endif
|
||||
|
@@ -106,6 +106,10 @@
|
||||
#define wxSYS_SHOW_SOUNDS 36
|
||||
#define wxSYS_SWAP_BUTTONS 37
|
||||
|
||||
// Platform capabilities
|
||||
#define wxSYS_CAN_DRAW_FRAME_DECORATIONS 1
|
||||
#define wxSYS_CAN_ICONIZE_FRAME 2
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#include "wx/msw/settings.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
|
Reference in New Issue
Block a user