macOS wxWidgetImpl constructor with flags
replacing bools with int flag
This commit is contained in:
@@ -50,8 +50,7 @@ class WXDLLIMPEXP_FWD_CORE wxDialog;
|
||||
class WXDLLIMPEXP_CORE wxWidgetCocoaImpl : public wxWidgetImpl
|
||||
{
|
||||
public :
|
||||
wxWidgetCocoaImpl( wxWindowMac* peer , WXWidget w, bool isRootControl, bool isUserPane, bool wantsUserKey ) ;
|
||||
wxWidgetCocoaImpl( wxWindowMac* peer , WXWidget w, bool isRootControl = false, bool isUserPane = false ) ;
|
||||
wxWidgetCocoaImpl( wxWindowMac* peer , WXWidget w, int flags = 0 ) ;
|
||||
wxWidgetCocoaImpl() ;
|
||||
~wxWidgetCocoaImpl();
|
||||
|
||||
|
@@ -216,8 +216,16 @@ protected :
|
||||
class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject
|
||||
{
|
||||
public :
|
||||
enum WidgetFlags
|
||||
{
|
||||
Widget_IsRoot = 0x0001,
|
||||
Widget_IsUserPane = 0x0002,
|
||||
Widget_UserKeyEvents = 0x0004,
|
||||
Widget_UserMouseEvents = 0x0008,
|
||||
};
|
||||
|
||||
wxWidgetImpl( wxWindowMac* peer , bool isRootControl, bool isUserPane, bool wantsUserKey );
|
||||
wxWidgetImpl( wxWindowMac* peer , bool isRootControl = false, bool isUserPane = false );
|
||||
wxWidgetImpl( wxWindowMac* peer , int flags = 0 );
|
||||
wxWidgetImpl();
|
||||
virtual ~wxWidgetImpl();
|
||||
|
||||
@@ -225,15 +233,14 @@ public :
|
||||
|
||||
bool IsRootControl() const { return m_isRootControl; }
|
||||
|
||||
// is a completely control that has all events handled in wx code, no built-ins
|
||||
// is a custom control that has all events handled in wx code, no built-ins
|
||||
bool IsUserPane() const { return m_isUserPane; }
|
||||
|
||||
// we are doing keyboard handling in wx code, other events might be handled natively
|
||||
virtual bool HasUserKeyHandling() const { return m_wantsUserKey; }
|
||||
|
||||
// we are doing mouse handling in wx code, other events might be handled natively
|
||||
// right now this is always in sync with HasUserKeyHandling
|
||||
virtual bool HasUserMouseHandling() const { return m_wantsUserKey; }
|
||||
virtual bool HasUserMouseHandling() const { return m_wantsUserMouse; }
|
||||
|
||||
wxWindowMac* GetWXPeer() const { return m_wxPeer; }
|
||||
|
||||
@@ -582,6 +589,7 @@ protected :
|
||||
bool m_isRootControl;
|
||||
bool m_isUserPane;
|
||||
bool m_wantsUserKey;
|
||||
bool m_wantsUserMouse;
|
||||
wxWindowMac* m_wxPeer;
|
||||
bool m_needsFocusRect;
|
||||
bool m_needsFrame;
|
||||
|
@@ -37,7 +37,7 @@ wxBitmap WXDLLIMPEXP_CORE wxOSXCreateSystemBitmap(const wxString& id, const wxSt
|
||||
class WXDLLIMPEXP_CORE wxWidgetIPhoneImpl : public wxWidgetImpl
|
||||
{
|
||||
public :
|
||||
wxWidgetIPhoneImpl( wxWindowMac* peer , WXWidget w, bool isRootControl = false, bool isUserPane = false ) ;
|
||||
wxWidgetIPhoneImpl( wxWindowMac* peer , WXWidget w, int flags = 0 ) ;
|
||||
wxWidgetIPhoneImpl() ;
|
||||
~wxWidgetIPhoneImpl();
|
||||
|
||||
|
Reference in New Issue
Block a user