cursors for cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,6 +55,8 @@ public:
|
||||
{ return false; }
|
||||
virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent)
|
||||
{ return false; }
|
||||
virtual bool Cocoa_resetCursorRects()
|
||||
{ return false; }
|
||||
};
|
||||
|
||||
#endif // _WX_COCOA_NSVIEW_H_
|
||||
|
@@ -30,6 +30,7 @@ public:
|
||||
|
||||
protected:
|
||||
int m_width, m_height;
|
||||
WX_NSCursor m_hCursor;
|
||||
};
|
||||
|
||||
#define M_CURSORDATA ((wxCursorRefData *)m_refData)
|
||||
@@ -62,6 +63,11 @@ public:
|
||||
inline wxCursor& operator = (const wxCursor& cursor) { if (*this == cursor) return (*this); Ref(cursor); return *this; }
|
||||
inline bool operator == (const wxCursor& cursor) { return m_refData == cursor.m_refData; }
|
||||
inline bool operator != (const wxCursor& cursor) { return m_refData != cursor.m_refData; }
|
||||
|
||||
inline WX_NSCursor GetNSCursor() const
|
||||
{
|
||||
return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
@@ -95,6 +95,7 @@ protected:
|
||||
virtual bool Cocoa_otherMouseDown(WX_NSEvent theEvent);
|
||||
virtual bool Cocoa_otherMouseDragged(WX_NSEvent theEvent);
|
||||
virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent);
|
||||
virtual bool Cocoa_resetCursorRects();
|
||||
void SetNSView(WX_NSView cocoaNSView);
|
||||
WX_NSView m_cocoaNSView;
|
||||
wxWindowCocoaHider *m_cocoaHider;
|
||||
@@ -160,6 +161,8 @@ public:
|
||||
// Get/set client (application-useable) size
|
||||
virtual void DoGetClientSize(int *width, int *height) const;
|
||||
virtual void DoSetClientSize(int width, int size);
|
||||
// Set this window's tooltip
|
||||
virtual void DoSetToolTip( wxToolTip *tip );
|
||||
// Set the size of the wxWindow (the contentView of an NSWindow)
|
||||
// wxTopLevelWindow will override this and set the NSWindow size
|
||||
// such that the contentView will be this size
|
||||
|
Reference in New Issue
Block a user