Add accessors for the internal widgets in the EditableListBox

This commit is contained in:
Robin Dunn
2017-06-12 13:39:18 -07:00
parent e3dc1f1c3f
commit 01c40efd86

View File

@@ -51,6 +51,31 @@ def run():
factory=True)
# These are not in the documented C++ API. Should they be?
c.addCppMethod('wxListCtrl*', 'GetListCtrl', '()',
doc="Returns a reference to the listctrl used in the EditableListBox.",
body="return self->GetListCtrl();")
c.addCppMethod('wxBitmapButton*', 'GetDelButton', '()',
doc="Returns a reference to the delete button used in the EditableListBox.",
body="return self->GetDelButton();")
c.addCppMethod('wxBitmapButton*', 'GetNewButton', '()',
doc="Returns a reference to the new button used in the EditableListBox.",
body="return self->GetNewButton();")
c.addCppMethod('wxBitmapButton*', 'GetUpButton', '()',
doc="Returns a reference to the up button used in the EditableListBox.",
body="return self->GetUpButton();")
c.addCppMethod('wxBitmapButton*', 'GetDownButton', '()',
doc="Returns a reference to the down button used in the EditableListBox.",
body="return self->GetDownButton();")
c.addCppMethod('wxBitmapButton*', 'GetEditButton', '()',
doc="Returns a reference to the edit button used in the EditableListBox.",
body="return self->GetEditButton();")
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)