Merge pull request #344 from RobinD42/master-cherrypick-wxPy
Docs and other updates for wxPython
This commit is contained in:
@@ -106,7 +106,7 @@ public:
|
||||
virtual wxWindow* GetContentWindow() const wxOVERRIDE;
|
||||
|
||||
// Set and get the inner sizer
|
||||
void SetInnerSize(wxSizer* sizer) { m_innerSizer = sizer; }
|
||||
void SetInnerSizer(wxSizer* sizer) { m_innerSizer = sizer; }
|
||||
wxSizer* GetInnerSizer() const { return m_innerSizer ; }
|
||||
|
||||
// Set and get the book style
|
||||
|
@@ -472,9 +472,17 @@ public:
|
||||
long GetMask() const { return m_item.m_mask; }
|
||||
const wxListItem& GetItem() const { return m_item; }
|
||||
|
||||
void SetKeyCode(int code) { m_code = code; }
|
||||
void SetIndex(long index) { m_itemIndex = index; }
|
||||
void SetColumn(int col) { m_col = col; }
|
||||
void SetPoint(const wxPoint& point) { m_pointDrag = point; }
|
||||
void SetItem(const wxListItem& item) { m_item = item; }
|
||||
|
||||
// for wxEVT_LIST_CACHE_HINT only
|
||||
long GetCacheFrom() const { return m_oldItemIndex; }
|
||||
long GetCacheTo() const { return m_itemIndex; }
|
||||
void SetCacheFrom(long cacheFrom) { m_oldItemIndex = cacheFrom; }
|
||||
void SetCacheTo(long cacheTo) { m_itemIndex = cacheTo; }
|
||||
|
||||
// was label editing canceled? (for wxEVT_LIST_END_LABEL_EDIT only)
|
||||
bool IsEditCancelled() const { return m_editCancelled; }
|
||||
|
@@ -677,6 +677,7 @@ public:
|
||||
private:
|
||||
wxVector<wxPGChoiceEntry> m_items;
|
||||
|
||||
protected:
|
||||
virtual ~wxPGChoicesData();
|
||||
};
|
||||
|
||||
|
@@ -179,10 +179,13 @@ typedef void (wxEvtHandler::*wxRibbonGalleryEventFunction)(wxRibbonGalleryEvent&
|
||||
// wxpython/swig event work
|
||||
%constant wxEventType wxEVT_RIBBONGALLERY_HOVER_CHANGED;
|
||||
%constant wxEventType wxEVT_RIBBONGALLERY_SELECTED;
|
||||
%constant wxEventType wxEVT_RIBBONGALLERY_CLICKED;
|
||||
|
||||
|
||||
%pythoncode {
|
||||
EVT_RIBBONGALLERY_HOVER_CHANGED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_HOVER_CHANGED, 1 )
|
||||
EVT_RIBBONGALLERY_SELECTED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_SELECTED, 1 )
|
||||
EVT_RIBBONGALLERY_CLICKED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_CLICKED, 1 )
|
||||
}
|
||||
#endif // SWIG
|
||||
|
||||
|
Reference in New Issue
Block a user