long style = 0,
const wxString& name = wxPanelNameStr );
+ virtual void SendSizeEvent(int flags = 0);
+
// implement base class pure virtuals
virtual void SetLabel( const wxString& label );
virtual wxString GetLabel() const;
virtual int GetCharHeight() const;
virtual int GetCharWidth() const;
-
+
public:
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
int range, bool refresh = true );
virtual bool Reparent( wxWindowBase *newParent );
+#if wxUSE_HOTKEY && wxOSX_USE_COCOA_OR_CARBON
+ // hot keys (system wide accelerators)
+ // -----------------------------------
+
+ virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode);
+ virtual bool UnregisterHotKey(int hotkeyId);
+#endif // wxUSE_HOTKEY
+
#if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
#endif
wxWindowMac *FindItemByHWND(WXHWND hWnd, bool controlOnly = false) const;
virtual void TriggerScrollEvent( wxEventType scrollEvent ) ;
- // this should not be overriden in classes above wxWindowMac
+ // this should not be overridden in classes above wxWindowMac
// because it is called from its destructor via DeleteChildren
virtual void RemoveChild( wxWindowBase *child );
// optimization to avoid creating a user pane in wxWindow::Create if we already know
// we will replace it with our own peer
void DontCreatePeer();
-
+
+ // return true unless DontCreatePeer() had been called
+ bool ShouldCreatePeer() const;
+
// sets the native implementation wrapper, can replace an existing peer, use peer = NULL to
// release existing peer
void SetPeer(wxOSXWidgetImpl* peer);
virtual bool OSXHandleClicked( double timestampsec );
virtual bool OSXHandleKeyEvent( wxKeyEvent& event );
+ virtual void OSXSimulateFocusEvents();
bool IsNativeWindowWrapper() const { return m_isNativeWindowWrapper; }
- float GetContentScaleFactor() const ;
+ double GetContentScaleFactor() const ;
+ // internal response to size events
+ virtual void MacOnInternalSize() {}
+
protected:
// For controls like radio buttons which are genuinely composite
wxList m_subControls;