X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c75d8baf987c83e231c981d07b5a9217d711361..09b67c660cadef225cbf8f1986cfe591f8feae8c:/include/wx/gtk/listbox.h?ds=sidebyside diff --git a/include/wx/gtk/listbox.h b/include/wx/gtk/listbox.h index 1c959e0ba6..c80a2d7123 100644 --- a/include/wx/gtk/listbox.h +++ b/include/wx/gtk/listbox.h @@ -73,6 +73,8 @@ public: virtual int GetSelection() const; virtual int GetSelections(wxArrayInt& aSelections) const; + virtual void EnsureVisible(int n); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); @@ -124,6 +126,9 @@ protected: // set the specified item void GtkSetItem(_GtkTreeIter& iter, const _GtkTreeEntry *entry); + // common part of DoSetFirstItem() and EnsureVisible() + void DoScrollToCell(int n, float alignY, float alignX); + private: void Init(); //common construction