Skip to content

Commit

Permalink
Merge pull request wxWidgets#1143 from RobinD42/fix-issue1140
Browse files Browse the repository at this point in the history
Added missing setters for the wheel-related properties in wx.MouseEvent
  • Loading branch information
RobinD42 committed Jan 16, 2019
2 parents 47c3d96 + 5abd2c6 commit c3cbf2e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -22,6 +22,8 @@ Changes in this release include the following:
* Added missing HtmlWindow.ScrollToAnchor method, and also a couple methods
in HtmlCell too. (#1141)

* Added missing setters for the wheel-related properties in wx.MouseEvent.
(#1140)



Expand Down
25 changes: 21 additions & 4 deletions etg/event.py
Expand Up @@ -413,10 +413,27 @@ def run():
#---------------------------------------
# wxMouseEvent
c = module.find('wxMouseEvent')
c.addProperty('LinesPerAction GetLinesPerAction')
c.addProperty('LogicalPosition GetLogicalPosition')
c.addProperty('WheelDelta GetWheelDelta')
c.addProperty('WheelRotation GetWheelRotation')

c.addCppMethod('void', 'SetWheelAxis', '(wxMouseWheelAxis wheelAxis)',
body="self->m_wheelAxis = wheelAxis;")

c.addCppMethod('void', 'SetWheelRotation', '(int wheelRotation)',
body="self->m_wheelRotation = wheelRotation;")

c.addCppMethod('void', 'SetWheelDelta', '(int wheelDelta)',
body="self->m_wheelDelta = wheelDelta;")

c.addCppMethod('void', 'SetLinesPerAction', '(int linesPerAction)',
body="self->m_linesPerAction = linesPerAction;")

c.addCppMethod('void', 'SetColumnsPerAction', '(int columnsPerAction)',
body="self->m_columnsPerAction = columnsPerAction;")

c.addProperty('WheelAxis GetWheelAxis SetWheelAxis')
c.addProperty('WheelRotation GetWheelRotation SetWheelRotation')
c.addProperty('WheelDelta GetWheelDelta SetWheelDelta')
c.addProperty('LinesPerAction GetLinesPerAction SetLinesPerAction')
c.addProperty('ColumnsPerAction GetColumnsPerAction SetColumnsPerAction')

#---------------------------------------
# wxSetCursorEvent
Expand Down

0 comments on commit c3cbf2e

Please sign in to comment.