X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1aff4201c36daec702cabc869c0bf899c56ba8cc..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/ribbon/gallery.h?ds=sidebyside diff --git a/include/wx/ribbon/gallery.h b/include/wx/ribbon/gallery.h index 6916be51fc..5e59de37a4 100644 --- a/include/wx/ribbon/gallery.h +++ b/include/wx/ribbon/gallery.h @@ -20,7 +20,7 @@ class wxRibbonGalleryItem; -WX_DEFINE_USER_EXPORTED_ARRAY(wxRibbonGalleryItem*, wxArrayRibbonGalleryItem, class WXDLLIMPEXP_RIBBON); +WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonGalleryItem*, wxArrayRibbonGalleryItem, class WXDLLIMPEXP_RIBBON); class WXDLLIMPEXP_RIBBON wxRibbonGallery : public wxRibbonControl { @@ -69,6 +69,7 @@ public: virtual bool Layout(); virtual bool ScrollLines(int lines); + bool ScrollPixels(int pixels); void EnsureVisible(const wxRibbonGalleryItem* item); protected: @@ -84,8 +85,10 @@ protected: void OnMouseLeave(wxMouseEvent& evt); void OnMouseDown(wxMouseEvent& evt); void OnMouseUp(wxMouseEvent& evt); + void OnMouseDClick(wxMouseEvent& evt); void OnPaint(wxPaintEvent& evt); void OnSize(wxSizeEvent& evt); + int GetScrollLineSize() const; virtual wxSize DoGetBestSize() const; virtual wxSize DoGetNextSmallerSize(wxOrientation direction,