X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c75d8baf987c83e231c981d07b5a9217d711361..86ac84b8ce086e6bbda58f422d41f84268606e35:/include/wx/gtk/listbox.h diff --git a/include/wx/gtk/listbox.h b/include/wx/gtk/listbox.h index 1c959e0ba6..5479fb030a 100644 --- a/include/wx/gtk/listbox.h +++ b/include/wx/gtk/listbox.h @@ -73,6 +73,10 @@ public: virtual int GetSelection() const; virtual int GetSelections(wxArrayInt& aSelections) const; + virtual void EnsureVisible(int n); + + virtual void Update(); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); @@ -81,7 +85,7 @@ public: GtkWidget *GetConnectWidget(); #if wxUSE_TOOLTIPS - void ApplyToolTip( GtkTooltips *tips, const gchar *tip ); + void GTKApplyToolTip( GtkTooltips *tips, const gchar *tip ); #endif // wxUSE_TOOLTIPS struct _GtkTreeView *m_treeview; @@ -91,11 +95,10 @@ public: bool m_hasCheckBoxes; #endif // wxUSE_CHECKLISTBOX - bool m_blockEvent; - struct _GtkTreeEntry* GtkGetEntry(unsigned pos) const; - void GtkDeselectAll(); - void GtkSetSelection(int n, const bool select, const bool blockEvent); + + void GtkDisableEvents(); + void GtkEnableEvents(); protected: virtual void DoClear(); @@ -124,6 +127,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