implementing rollover and pressed image for bitmapbutton on osx_cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,11 +40,15 @@ public:
|
||||
const wxString& name = wxButtonNameStr);
|
||||
|
||||
protected:
|
||||
void OnEnterWindow( wxMouseEvent& event);
|
||||
void OnLeaveWindow( wxMouseEvent& event);
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif // _WX_OSX_BMPBUTTN_H_
|
||||
|
@@ -261,6 +261,7 @@ protected :
|
||||
|
||||
@interface wxNSButton : NSButton
|
||||
{
|
||||
NSTrackingRectTag rectTag;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@@ -587,6 +587,19 @@ public :
|
||||
virtual void CheckSpelling(bool WXUNUSED(check)) { }
|
||||
};
|
||||
|
||||
//
|
||||
// common interface bitmapbuttons
|
||||
//
|
||||
|
||||
class wxBitmapButtonImpl
|
||||
{
|
||||
public :
|
||||
wxBitmapButtonImpl(){}
|
||||
virtual ~wxBitmapButtonImpl(){}
|
||||
|
||||
virtual void SetPressedBitmap( const wxBitmap& bitmap ) = 0;
|
||||
} ;
|
||||
|
||||
//
|
||||
// common interface for search controls
|
||||
//
|
||||
|
Reference in New Issue
Block a user