]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/core/private.h
more iPhone types
[wxWidgets.git] / include / wx / osx / core / private.h
index a35da2fb5fb3b985a3d8196028f3e04a462d7e28..0c3a9fb3ec9c089747f5d23ff848c05b52c13f9c 100644 (file)
@@ -95,12 +95,15 @@ class wxWidgetImpl;
 class wxNotebook;
 class wxTextCtrl;
 
+WXDLLIMPEXP_CORE wxWindowMac * wxFindWindowFromWXWidget(WXWidget inControl );
+
 #if wxOSX_USE_CARBON
 typedef wxMacControl wxWidgetImplType;
 #else
 typedef wxWidgetImpl wxWidgetImplType;
 #endif
 
+#if wxUSE_MENUS
 class wxMenuItemImpl : public wxObject 
 {
 public :
@@ -161,7 +164,7 @@ protected :
     
     DECLARE_ABSTRACT_CLASS(wxMenuItemImpl)
 } ;
-
+#endif
 
 
 class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject
@@ -202,6 +205,9 @@ public :
     virtual void        GetSize( int &width, int &height ) const = 0;
     virtual void        SetControlSize( wxWindowVariant variant ) = 0;
 
+    // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin)
+    virtual bool        IsFlipped() const { return true; }
+
     virtual void        SetNeedsDisplay( const wxRect* where = NULL ) = 0;
     virtual bool        GetNeedsDisplay() const = 0;
 
@@ -229,7 +235,9 @@ public :
 
     virtual wxInt32     GetValue() const = 0;
     virtual void        SetValue( wxInt32 v ) = 0;
+    virtual wxBitmap    GetBitmap() const = 0;
     virtual void        SetBitmap( const wxBitmap& bitmap ) = 0;
+    virtual void        SetBitmapPosition( wxDirection dir ) = 0;
     virtual void        SetupTabs( const wxNotebook &notebook ) =0;
     virtual void        GetBestRect( wxRect *r ) const = 0;
     virtual bool        IsEnabled() const = 0;
@@ -258,6 +266,8 @@ public :
     
     static void         Associate( WXWidget control, wxWidgetImpl *impl );
     
+    static WXWidget     FindFocus();
+    
     // static creation methods, must be implemented by all toolkits
     
     static wxWidgetImplType*    CreateUserPane( wxWindowMac* wxpeer, 
@@ -472,7 +482,9 @@ public :
    virtual void Set( CFStringRef value ) = 0;
     virtual void Set( const wxString& value ) = 0;
     virtual void Set( int value ) = 0;
+    virtual void Check( bool check );
     
+    virtual bool IsChecked() const;
     virtual int GetIntValue() const = 0;
     virtual wxString GetStringValue() const = 0;
 } ;
@@ -726,7 +738,7 @@ private :
 
 void wxMacCocoaRelease( void* obj );
 void wxMacCocoaAutorelease( void* obj );
-void wxMacCocoaRetain( void* obj );
+void* wxMacCocoaRetain( void* obj );
 
 
 #endif