committed, thanks
Roy Sutton wrote:> This patch just applies some const tags that were missing (does this
> affect anything at all?) and removes a definition that was causing a
> conflict.
>
> Roy
> ------------------------------------------------------------------------
>
> Index: wxruby2/swig/classes/include/wxMouseEvent.h
> ==================================================================> RCS
file: /var/cvs/wxruby/wxruby2/swig/classes/include/wxMouseEvent.h,v
> retrieving revision 1.5
> diff -b -u -r1.5 wxMouseEvent.h
> --- wxruby2/swig/classes/include/wxMouseEvent.h 3 Sep 2005 20:21:46 -0000
1.5
> +++ wxruby2/swig/classes/include/wxMouseEvent.h 12 Sep 2006 22:46:14 -0000
> @@ -8,24 +8,26 @@
> public:
> wxMouseEvent(wxEventType mouseEventType = 0) ;
> wxMouseEvent(const wxMouseEvent& event) ;
> - bool AltDown() ;
> - bool Button(int button ) ;
> - bool ButtonDClick(int but = wxMOUSE_BTN_ANY) ;
> - bool ButtonDown(int but = -1) ;
> - bool ButtonUp(int but = -1) ;
> - bool ControlDown() ;
> - bool Dragging() ;
> - bool Entering() ;
> + bool AltDown() const;
> + bool Button(int button ) const;
> + bool ButtonDClick(int but = wxMOUSE_BTN_ANY) const;
> + bool ButtonDown(int but = -1) const;
> + bool ButtonIsDown(int but) const;
> + bool ButtonUp(int but = -1) const;
> + bool ControlDown() const;
> + bool Dragging() const;
> + bool Entering() const;
> int GetButton() const;
> wxPoint GetPosition() const;
> - void GetPosition(wxCoord* x , wxCoord* y ) const;
> + // wxCoord is typedef''d to int and interferes with one below
> + //void GetPosition(wxCoord* x , wxCoord* y ) const;
> void GetPosition(long* x , long* y ) const;
> wxPoint GetLogicalPosition(const wxDC& dc ) const;
> int GetLinesPerAction() const;
> int GetWheelRotation() const;
> int GetWheelDelta() const;
> long GetX() const;
> - long GetY() ;
> + long GetY() const;
> bool IsButton() const;
> bool IsPageScroll() const;
> bool Leaving() const;
> @@ -49,5 +51,4 @@
> virtual wxEvent* Clone() const;
> };
>
> -
> #endif
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users