Example #1
0
 /// <summary>Sort the list alphabetically.</summary>
 /// <description>
 ///
 /// </description>
 public void Sort()
 {
     InternalUnsafeMethods.Sort__Args _args = new InternalUnsafeMethods.Sort__Args()
     {
     };
     InternalUnsafeMethods.Sort()(ObjectPtr, _args);
 }
Example #2
0
 /// <description>
 /// ( string callbackFunction ) Sort the objects in the set using the given comparison function.
 /// </description>
 /// <param name="callbackFunction">Name of a function that takes two object arguments A and B and returns -1 if A is less, 1 if B is less, and 0 if both are equal.</param>
 public void Sort(string callbackFunction)
 {
     InternalUnsafeMethods.Sort__Args _args = new InternalUnsafeMethods.Sort__Args()
     {
         callbackFunction = callbackFunction,
     };
     InternalUnsafeMethods.Sort()(ObjectPtr, _args);
 }
 /// <summary>Performs a standard (alphabetical) sort on the values in the specified column.</summary>
 /// <description>
 ///
 /// </description>
 /// <param name="columnId">Column ID to perform the sort on.</param>
 /// <param name="increasing">If false, sort will be performed in reverse.</param>
 /// <code>
 /// // Define the columnId
 /// %id = "1";
 ///
 /// // Define if we are increasing or not
 /// %increasing = "false";
 ///
 /// // Inform the GuiTextListCtrl to perform the sort operation
 /// %thisGuiTextListCtrl.sort(%id,%increasing);
 /// </code>
 /// <see cref="GuiControl" />
 public void Sort(int columnId, bool increasing = true)
 {
     InternalUnsafeMethods.Sort__Args _args = new InternalUnsafeMethods.Sort__Args()
     {
         columnId   = columnId,
         increasing = increasing,
     };
     InternalUnsafeMethods.Sort()(ObjectPtr, _args);
 }