From 5d30f841253979a67f228676dcb5821eb15354b7 Mon Sep 17 00:00:00 2001 From: Martin Corino Date: Mon, 16 Oct 2023 14:52:41 +0200 Subject: [PATCH] Document wxItemContainer::IsSorted() This method is needed to determine the sorted state of a control derived from wxItemContainer without knowing the actual derived control class. Closes #23971. --- interface/wx/ctrlsub.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interface/wx/ctrlsub.h b/interface/wx/ctrlsub.h index 989685cf86..eec05a1ba2 100644 --- a/interface/wx/ctrlsub.h +++ b/interface/wx/ctrlsub.h @@ -366,6 +366,13 @@ public: */ void Delete(unsigned int n); + /** + The control may maintain its items in a sorted order in which case + items are automatically inserted at the right position when they are + inserted or appended. + Returns true if the control maintains its items in a sorted order. + */ + bool IsSorted() const; /** Returns the client object associated with the given item and transfers