#if wxOSX_USE_ATSU_TEXT
// we need theming and atsu
#include <Carbon/Carbon.h>
+#else
+ // we only need theming, if we find a better include replace the following
+ #include <Carbon/Carbon.h>
#endif
#ifdef __OBJC__
// shared between Cocoa and Carbon
//
-// bring in themeing types without pulling in the headers
+// bring in theming types without pulling in the headers
#if wxUSE_GUI
typedef SInt16 ThemeBrush;
const CGRect * inBounds,
CGImageRef inImage) ;
WX_NSImage WXDLLIMPEXP_CORE wxOSXCreateNSImageFromCGImage( CGImageRef image );
+CGImageRef WXDLLIMPEXP_CORE wxOSXCreateCGImageFromNSImage( WX_NSImage nsimage );
#endif
long UMAGetSystemVersion() ;
virtual bool IsVisible() const ;
virtual void SetVisibility(bool);
+ // we provide a static function which can be reused from
+ // wxNonOwnedWindowCocoaImpl too
+ static bool ShowViewOrWindowWithEffect(wxWindow *win,
+ bool show,
+ wxShowEffect effect,
+ unsigned timeout);
+
+ virtual bool ShowWithEffect(bool show,
+ wxShowEffect effect,
+ unsigned timeout);
+
virtual void Raise();
virtual void Lower();
virtual bool DoHandleKeyEvent(NSEvent *event);
virtual bool DoHandleCharEvent(NSEvent *event, NSString *text);
virtual void DoNotifyFocusEvent(bool receivedFocus, wxWidgetImpl* otherWindow);
+
+ virtual void SetupKeyEvent(wxKeyEvent &wxevent, NSEvent * nsEvent, NSString* charString = NULL);
+ virtual void SetupMouseEvent(wxMouseEvent &wxevent, NSEvent * nsEvent);
+
void SetFlipped(bool flipped);
virtual bool IsFlipped() const { return m_isFlipped; }
void Raise();
void Lower();
bool Show(bool show);
- bool ShowWithEffect(bool show, wxShowEffect effect, unsigned timeout);
+
+ virtual bool ShowWithEffect(bool show,
+ wxShowEffect effect,
+ unsigned timeout);
void Update();
bool SetTransparent(wxByte alpha);
@interface wxNSButton : NSButton
{
+ NSTrackingRectTag rectTag;
}
@end