1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/iphone/private.h
3 // Purpose: Private declarations: as this header is only included by
4 // wxWidgets itself, it may contain identifiers which don't start
6 // Author: Stefan Csomor
9 // RCS-ID: $Id: private.h 53819 2008-05-29 14:11:45Z SC $
10 // Copyright: (c) Stefan Csomor
11 // Licence: wxWindows licence
12 /////////////////////////////////////////////////////////////////////////////
14 #ifndef _WX_PRIVATE_IPHONE_H_
15 #define _WX_PRIVATE_IPHONE_H_
17 #include "wx/osx/core/private.h"
20 #import <UIKit/UIKit.h>
25 class WXDLLIMPEXP_CORE wxWidgetIPhoneImpl
: public wxWidgetImpl
28 wxWidgetIPhoneImpl( wxWindowMac
* peer
, WXWidget w
, bool isRootControl
= false ) ;
29 wxWidgetIPhoneImpl() ;
30 ~wxWidgetIPhoneImpl();
34 virtual bool IsVisible() const ;
35 virtual void SetVisibility( bool visible
);
41 virtual void ScrollRect( const wxRect
*rect
, int dx
, int dy
);
43 virtual WXWidget
GetWXWidget() const { return m_osxView
; }
45 virtual void SetBackgroundColour( const wxColour
& col
) ;
47 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const;
48 virtual void Move(int x
, int y
, int width
, int height
);
49 virtual void GetPosition( int &x
, int &y
) const;
50 virtual void GetSize( int &width
, int &height
) const;
52 virtual void SetNeedsDisplay( const wxRect
* where
= NULL
);
53 virtual bool GetNeedsDisplay() const;
55 virtual bool CanFocus() const;
56 // return true if successful
57 virtual bool SetFocus();
58 virtual bool HasFocus() const;
60 void RemoveFromParent();
61 void Embed( wxWidgetImpl
*parent
);
64 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWidgetIPhoneImpl
)
67 class wxNonOwnedWindowIPhoneImpl
: public wxNonOwnedWindowImpl
70 wxNonOwnedWindowIPhoneImpl( wxNonOwnedWindow
* nonownedwnd
) ;
71 wxNonOwnedWindowIPhoneImpl();
73 virtual ~wxNonOwnedWindowIPhoneImpl();
75 virtual void Destroy() ;
76 void Create( wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
77 long style
, long extraStyle
, const wxString
& name
) ;
79 WXWindow
GetWXWindow() const;
83 bool ShowWithEffect(bool show
, wxShowEffect effect
, unsigned timeout
);
86 bool SetTransparent(wxByte alpha
);
87 bool SetBackgroundColour(const wxColour
& col
);
88 void SetExtraStyle( long exStyle
);
89 bool SetBackgroundStyle(wxBackgroundStyle style
);
90 bool CanSetTransparent();
92 void MoveWindow(int x
, int y
, int width
, int height
);
93 void GetPosition( int &x
, int &y
) const;
94 void GetSize( int &width
, int &height
) const;
96 void GetContentArea( int &left
, int &top
, int &width
, int &height
) const;
97 bool SetShape(const wxRegion
& region
);
99 virtual void SetTitle( const wxString
& title
, wxFontEncoding encoding
) ;
101 virtual bool IsMaximized() const;
103 virtual bool IsIconized() const;
105 virtual void Iconize( bool iconize
);
107 virtual void Maximize(bool maximize
);
109 virtual bool IsFullScreen() const;
111 virtual bool ShowFullScreen(bool show
, long style
);
113 virtual void RequestUserAttention(int flags
);
115 virtual void ScreenToWindow( int *x
, int *y
);
117 virtual void WindowToScreen( int *x
, int *y
);
119 wxNonOwnedWindow
* GetWXPeer() { return m_wxPeer
; }
121 WX_UIWindow m_macWindow
;
122 void * m_macFullScreenData
;
123 DECLARE_DYNAMIC_CLASS_NO_COPY(wxNonOwnedWindowIPhoneImpl
)
129 // _WX_PRIVATE_IPHONE_H_