]> git.saurik.com Git - wxWidgets.git/commitdiff
exposing common used button impl class
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 2 Nov 2012 10:06:06 +0000 (10:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 2 Nov 2012 10:06:06 +0000 (10:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/cocoa/private.h

index 998705a26458af2724da6decbda9c1520e86be61..ee8757b7139b6ed7ce760daa1580b0935f85cba3 100644 (file)
@@ -255,6 +255,24 @@ protected :
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxNonOwnedWindowCocoaImpl)
 };
 
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxNonOwnedWindowCocoaImpl)
 };
 
+DECLARE_WXCOCOA_OBJC_CLASS( wxNSButton );
+
+class wxButtonCocoaImpl : public wxWidgetCocoaImpl, public wxButtonImpl
+{
+public:
+    wxButtonCocoaImpl(wxWindowMac *wxpeer, wxNSButton *v);
+    virtual void SetBitmap(const wxBitmap& bitmap);
+#if wxUSE_MARKUP
+    virtual void SetLabelMarkup(const wxString& markup);
+#endif // wxUSE_MARKUP
+    
+    void SetPressedBitmap( const wxBitmap& bitmap );
+    void GetLayoutInset(int &left , int &top , int &right, int &bottom) const;
+    
+private:
+    NSButton *GetNSButton() const;
+};
+
 #ifdef __OBJC__
 
     WXDLLIMPEXP_CORE NSScreen* wxOSXGetMenuScreen();
 #ifdef __OBJC__
 
     WXDLLIMPEXP_CORE NSScreen* wxOSXGetMenuScreen();