]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/window.h
Get(Class)DefaultAttributes() for wxGTK controls
[wxWidgets.git] / include / wx / mac / carbon / window.h
index 5ec518e4a70cce0fc22d5ce0a0ea69d757049875..1b3dda550381ff6d63ea2958a439e647df36b283 100644 (file)
@@ -79,6 +79,8 @@ public:
 
     virtual void Refresh( bool eraseBackground = TRUE,
                           const wxRect *rect = (const wxRect *) NULL );
+    virtual void Freeze() ;
+    virtual void Thaw() ;
 
     virtual bool SetCursor( const wxCursor &cursor );
     virtual bool SetFont( const wxFont &font ) ;
@@ -182,9 +184,12 @@ public:
     
     virtual void        MacVisibilityChanged() ;
     virtual void        MacEnabledStateChanged() ;
+    virtual void        MacHiliteChanged() ;
+    virtual wxInt32     MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
     
     bool                MacIsReallyShown() ;
     bool                MacIsReallyEnabled() ;
+    bool                MacIsReallyHilited() ;
     
     bool                       MacIsUserPane() { return m_macIsUserPane; }
 
@@ -222,14 +227,19 @@ public:
     bool                MacGetBoundsForControl(const wxPoint& pos,
                                            const wxSize& size,
                                            int& x, int& y,
-                                           int& w, int& h) const ;
+                                           int& w, int& h , bool adjustForOrigin ) const ;
     // calculates the real window position and size from the native control
     void                MacGetPositionAndSizeFromControl(int& x, int& y,
                                            int& w, int& h) const ;
+    // gets the inset from every part
+    virtual void        MacGetContentAreaInset( int &left , int &top , int &right , int &bottom ) ;
+
 protected:
     // For controls like radiobuttons which are really composite
     wxList              m_subControls;
-
+    // number of calls to Freeze() minus number of calls to Thaw()
+    unsigned int        m_frozenness;
+    
     WXWidget            m_macControl ;
        bool                            m_macIsUserPane ;
     wxBrush             m_macBackgroundBrush ;
@@ -241,8 +251,10 @@ protected:
     void                MacCreateScrollBars( long style ) ;
     void                MacRepositionScrollBars() ;
     void                MacUpdateControlFont() ;
+
     void                MacPropagateVisibilityChanged() ;
     void                MacPropagateEnabledStateChanged() ;
+    void                MacPropagateHiliteChanged() ;
  
 
 #if WXWIN_COMPATIBILITY_2_4