class_itemlist.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_ItemList:
  4. ItemList
  5. ========
  6. **Inherits:** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Control that provides a list of selectable items (and/or icons) in a single column, or optionally in multiple columns.
  11. Member Functions
  12. ----------------
  13. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | void | :ref:`add_icon_item<class_ItemList_add_icon_item>` **(** :ref:`Texture<class_texture>` icon, :ref:`bool<class_bool>` selectable=true **)** |
  15. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`add_item<class_ItemList_add_item>` **(** :ref:`String<class_string>` text, :ref:`Texture<class_texture>` icon=NULL, :ref:`bool<class_bool>` selectable=true **)** |
  17. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`clear<class_ItemList_clear>` **(** **)** |
  19. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | void | :ref:`ensure_current_is_visible<class_ItemList_ensure_current_is_visible>` **(** **)** |
  21. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`get_allow_rmb_select<class_ItemList_get_allow_rmb_select>` **(** **)** const |
  23. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`get_fixed_column_width<class_ItemList_get_fixed_column_width>` **(** **)** const |
  25. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`Vector2<class_vector2>` | :ref:`get_fixed_icon_size<class_ItemList_get_fixed_icon_size>` **(** **)** const |
  27. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`get_icon_mode<class_ItemList_get_icon_mode>` **(** **)** const |
  29. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`get_icon_scale<class_ItemList_get_icon_scale>` **(** **)** const |
  31. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`int<class_int>` | :ref:`get_item_at_pos<class_ItemList_get_item_at_pos>` **(** :ref:`Vector2<class_vector2>` pos, :ref:`bool<class_bool>` exact=false **)** const |
  33. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`int<class_int>` | :ref:`get_item_count<class_ItemList_get_item_count>` **(** **)** const |
  35. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`Color<class_color>` | :ref:`get_item_custom_bg_color<class_ItemList_get_item_custom_bg_color>` **(** :ref:`int<class_int>` idx **)** const |
  37. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`Texture<class_texture>` | :ref:`get_item_icon<class_ItemList_get_item_icon>` **(** :ref:`int<class_int>` idx **)** const |
  39. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`Rect2<class_rect2>` | :ref:`get_item_icon_region<class_ItemList_get_item_icon_region>` **(** :ref:`int<class_int>` idx **)** const |
  41. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`get_item_metadata<class_ItemList_get_item_metadata>` **(** :ref:`int<class_int>` idx **)** const |
  43. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`String<class_string>` | :ref:`get_item_text<class_ItemList_get_item_text>` **(** :ref:`int<class_int>` idx **)** const |
  45. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`String<class_string>` | :ref:`get_item_tooltip<class_ItemList_get_item_tooltip>` **(** :ref:`int<class_int>` idx **)** const |
  47. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`int<class_int>` | :ref:`get_max_columns<class_ItemList_get_max_columns>` **(** **)** const |
  49. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`int<class_int>` | :ref:`get_max_text_lines<class_ItemList_get_max_text_lines>` **(** **)** const |
  51. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`int<class_int>` | :ref:`get_select_mode<class_ItemList_get_select_mode>` **(** **)** const |
  53. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`IntArray<class_intarray>` | :ref:`get_selected_items<class_ItemList_get_selected_items>` **(** **)** |
  55. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`Object<class_object>` | :ref:`get_v_scroll<class_ItemList_get_v_scroll>` **(** **)** |
  57. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`bool<class_bool>` | :ref:`is_item_disabled<class_ItemList_is_item_disabled>` **(** :ref:`int<class_int>` idx **)** const |
  59. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`bool<class_bool>` | :ref:`is_item_selectable<class_ItemList_is_item_selectable>` **(** :ref:`int<class_int>` idx **)** const |
  61. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`bool<class_bool>` | :ref:`is_item_tooltip_enabled<class_ItemList_is_item_tooltip_enabled>` **(** :ref:`int<class_int>` idx **)** const |
  63. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`int<class_int>` | :ref:`is_same_column_width<class_ItemList_is_same_column_width>` **(** **)** const |
  65. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | :ref:`bool<class_bool>` | :ref:`is_selected<class_ItemList_is_selected>` **(** :ref:`int<class_int>` idx **)** const |
  67. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | void | :ref:`remove_item<class_ItemList_remove_item>` **(** :ref:`int<class_int>` idx **)** |
  69. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | void | :ref:`select<class_ItemList_select>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` single=true **)** |
  71. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | void | :ref:`set_allow_rmb_select<class_ItemList_set_allow_rmb_select>` **(** :ref:`bool<class_bool>` allow **)** |
  73. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | void | :ref:`set_fixed_column_width<class_ItemList_set_fixed_column_width>` **(** :ref:`int<class_int>` width **)** |
  75. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | void | :ref:`set_fixed_icon_size<class_ItemList_set_fixed_icon_size>` **(** :ref:`Vector2<class_vector2>` size **)** |
  77. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | void | :ref:`set_icon_mode<class_ItemList_set_icon_mode>` **(** :ref:`int<class_int>` mode **)** |
  79. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | void | :ref:`set_icon_scale<class_ItemList_set_icon_scale>` **(** :ref:`float<class_float>` scale **)** |
  81. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | void | :ref:`set_item_custom_bg_color<class_ItemList_set_item_custom_bg_color>` **(** :ref:`int<class_int>` idx, :ref:`Color<class_color>` custom_bg_color **)** |
  83. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | void | :ref:`set_item_disabled<class_ItemList_set_item_disabled>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` disabled **)** |
  85. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | void | :ref:`set_item_icon<class_ItemList_set_item_icon>` **(** :ref:`int<class_int>` idx, :ref:`Texture<class_texture>` icon **)** |
  87. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | void | :ref:`set_item_icon_region<class_ItemList_set_item_icon_region>` **(** :ref:`int<class_int>` idx, :ref:`Rect2<class_rect2>` rect **)** |
  89. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | void | :ref:`set_item_metadata<class_ItemList_set_item_metadata>` **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` metadata **)** |
  91. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | void | :ref:`set_item_selectable<class_ItemList_set_item_selectable>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` selectable **)** |
  93. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | void | :ref:`set_item_text<class_ItemList_set_item_text>` **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` text **)** |
  95. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | void | :ref:`set_item_tooltip<class_ItemList_set_item_tooltip>` **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` tooltip **)** |
  97. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | void | :ref:`set_item_tooltip_enabled<class_ItemList_set_item_tooltip_enabled>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enable **)** |
  99. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | void | :ref:`set_max_columns<class_ItemList_set_max_columns>` **(** :ref:`int<class_int>` amount **)** |
  101. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | void | :ref:`set_max_text_lines<class_ItemList_set_max_text_lines>` **(** :ref:`int<class_int>` lines **)** |
  103. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | void | :ref:`set_same_column_width<class_ItemList_set_same_column_width>` **(** :ref:`bool<class_bool>` enable **)** |
  105. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | void | :ref:`set_select_mode<class_ItemList_set_select_mode>` **(** :ref:`int<class_int>` mode **)** |
  107. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | void | :ref:`sort_items_by_text<class_ItemList_sort_items_by_text>` **(** **)** |
  109. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | void | :ref:`unselect<class_ItemList_unselect>` **(** :ref:`int<class_int>` idx **)** |
  111. +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. Signals
  113. -------
  114. - **item_activated** **(** :ref:`int<class_int>` index **)**
  115. Fired when specified list item is activated via double click or Enter.
  116. - **item_rmb_selected** **(** :ref:`int<class_int>` index, :ref:`Vector2<class_vector2>` atpos **)**
  117. Fired when specified list item has been selected via right mouse clicking.
  118. The click position is also provided to allow appropriate popup of context menus
  119. at the correct location.
  120. - **item_selected** **(** :ref:`int<class_int>` index **)**
  121. Fired when specified item has been selected.
  122. - **multi_selected** **(** :ref:`int<class_int>` index, :ref:`bool<class_bool>` selected **)**
  123. Fired when a multiple selection is altered on a list allowing mutliple selection.
  124. Numeric Constants
  125. -----------------
  126. - **ICON_MODE_TOP** = **0**
  127. - **ICON_MODE_LEFT** = **1**
  128. - **SELECT_SINGLE** = **0**
  129. - **SELECT_MULTI** = **1**
  130. Description
  131. -----------
  132. This control provides a selectable list of items that may be in a single (or multiple columns) with option of text, icons,
  133. or both text and icon. Tooltips are supported and may be different for every item in the list. Selectable items in the list
  134. may be selected or deselected and multiple selection may be enabled. Selection with right mouse button may also be enabled
  135. to allow use of popup context menus. Items may also be 'activated' with a double click (or Enter key).
  136. Member Function Description
  137. ---------------------------
  138. .. _class_ItemList_add_icon_item:
  139. - void **add_icon_item** **(** :ref:`Texture<class_texture>` icon, :ref:`bool<class_bool>` selectable=true **)**
  140. Adds an item to the item list with no text, only an icon.
  141. .. _class_ItemList_add_item:
  142. - void **add_item** **(** :ref:`String<class_string>` text, :ref:`Texture<class_texture>` icon=NULL, :ref:`bool<class_bool>` selectable=true **)**
  143. Adds an item to the item list with specified text. Specify an icon of null for a list item with no icon.
  144. If selectable is true the list item will be selectable.
  145. .. _class_ItemList_clear:
  146. - void **clear** **(** **)**
  147. Remove all items from the list.
  148. .. _class_ItemList_ensure_current_is_visible:
  149. - void **ensure_current_is_visible** **(** **)**
  150. Ensure selection is visible, adjusting the scroll position as necessary.
  151. .. _class_ItemList_get_allow_rmb_select:
  152. - :ref:`bool<class_bool>` **get_allow_rmb_select** **(** **)** const
  153. Return whether or not items may be selected via right mouse clicking.
  154. .. _class_ItemList_get_fixed_column_width:
  155. - :ref:`int<class_int>` **get_fixed_column_width** **(** **)** const
  156. If column size has been fixed to a value, return that value.
  157. .. _class_ItemList_get_fixed_icon_size:
  158. - :ref:`Vector2<class_vector2>` **get_fixed_icon_size** **(** **)** const
  159. .. _class_ItemList_get_icon_mode:
  160. - :ref:`int<class_int>` **get_icon_mode** **(** **)** const
  161. .. _class_ItemList_get_icon_scale:
  162. - :ref:`float<class_float>` **get_icon_scale** **(** **)** const
  163. .. _class_ItemList_get_item_at_pos:
  164. - :ref:`int<class_int>` **get_item_at_pos** **(** :ref:`Vector2<class_vector2>` pos, :ref:`bool<class_bool>` exact=false **)** const
  165. Given a position within the control return the item (if any) at that point.
  166. .. _class_ItemList_get_item_count:
  167. - :ref:`int<class_int>` **get_item_count** **(** **)** const
  168. Return count of items currently in the item list.
  169. .. _class_ItemList_get_item_custom_bg_color:
  170. - :ref:`Color<class_color>` **get_item_custom_bg_color** **(** :ref:`int<class_int>` idx **)** const
  171. .. _class_ItemList_get_item_icon:
  172. - :ref:`Texture<class_texture>` **get_item_icon** **(** :ref:`int<class_int>` idx **)** const
  173. .. _class_ItemList_get_item_icon_region:
  174. - :ref:`Rect2<class_rect2>` **get_item_icon_region** **(** :ref:`int<class_int>` idx **)** const
  175. .. _class_ItemList_get_item_metadata:
  176. - void **get_item_metadata** **(** :ref:`int<class_int>` idx **)** const
  177. .. _class_ItemList_get_item_text:
  178. - :ref:`String<class_string>` **get_item_text** **(** :ref:`int<class_int>` idx **)** const
  179. Return the text for specified item index.
  180. .. _class_ItemList_get_item_tooltip:
  181. - :ref:`String<class_string>` **get_item_tooltip** **(** :ref:`int<class_int>` idx **)** const
  182. Return tooltip hint for specified item index.
  183. .. _class_ItemList_get_max_columns:
  184. - :ref:`int<class_int>` **get_max_columns** **(** **)** const
  185. Return total number of columns in use by the list.
  186. .. _class_ItemList_get_max_text_lines:
  187. - :ref:`int<class_int>` **get_max_text_lines** **(** **)** const
  188. Return total number of lines currently in use by the list.
  189. .. _class_ItemList_get_select_mode:
  190. - :ref:`int<class_int>` **get_select_mode** **(** **)** const
  191. .. _class_ItemList_get_selected_items:
  192. - :ref:`IntArray<class_intarray>` **get_selected_items** **(** **)**
  193. Returns the list of selected indexes.
  194. .. _class_ItemList_get_v_scroll:
  195. - :ref:`Object<class_object>` **get_v_scroll** **(** **)**
  196. Returns the current vertical scroll bar for the List.
  197. .. _class_ItemList_is_item_disabled:
  198. - :ref:`bool<class_bool>` **is_item_disabled** **(** :ref:`int<class_int>` idx **)** const
  199. Returns whether or not the item at the specified index is disabled
  200. .. _class_ItemList_is_item_selectable:
  201. - :ref:`bool<class_bool>` **is_item_selectable** **(** :ref:`int<class_int>` idx **)** const
  202. Returns whether or not the item at the specified index is selectable.
  203. .. _class_ItemList_is_item_tooltip_enabled:
  204. - :ref:`bool<class_bool>` **is_item_tooltip_enabled** **(** :ref:`int<class_int>` idx **)** const
  205. Returns whether the tooptip is enabled for specified item index.
  206. .. _class_ItemList_is_same_column_width:
  207. - :ref:`int<class_int>` **is_same_column_width** **(** **)** const
  208. Returns whether or not all columns of the list are of the same size.
  209. .. _class_ItemList_is_selected:
  210. - :ref:`bool<class_bool>` **is_selected** **(** :ref:`int<class_int>` idx **)** const
  211. Returns whether or not item at the specified index is currently selected.
  212. .. _class_ItemList_remove_item:
  213. - void **remove_item** **(** :ref:`int<class_int>` idx **)**
  214. Remove item at specified index from the list.
  215. .. _class_ItemList_select:
  216. - void **select** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` single=true **)**
  217. Select the item at the specified index.
  218. Note: This method does not trigger the item selection signal.
  219. .. _class_ItemList_set_allow_rmb_select:
  220. - void **set_allow_rmb_select** **(** :ref:`bool<class_bool>` allow **)**
  221. Allow (or disallow) selection of (selectable) items in the list using right mouse button.
  222. .. _class_ItemList_set_fixed_column_width:
  223. - void **set_fixed_column_width** **(** :ref:`int<class_int>` width **)**
  224. Set the size (width) all columns in the list are to use.
  225. .. _class_ItemList_set_fixed_icon_size:
  226. - void **set_fixed_icon_size** **(** :ref:`Vector2<class_vector2>` size **)**
  227. .. _class_ItemList_set_icon_mode:
  228. - void **set_icon_mode** **(** :ref:`int<class_int>` mode **)**
  229. .. _class_ItemList_set_icon_scale:
  230. - void **set_icon_scale** **(** :ref:`float<class_float>` scale **)**
  231. .. _class_ItemList_set_item_custom_bg_color:
  232. - void **set_item_custom_bg_color** **(** :ref:`int<class_int>` idx, :ref:`Color<class_color>` custom_bg_color **)**
  233. .. _class_ItemList_set_item_disabled:
  234. - void **set_item_disabled** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` disabled **)**
  235. Disable (or enable) item at specified index.
  236. Disabled items are not be selectable and do not fire activation (Enter or double-click) signals.
  237. .. _class_ItemList_set_item_icon:
  238. - void **set_item_icon** **(** :ref:`int<class_int>` idx, :ref:`Texture<class_texture>` icon **)**
  239. Set (or replace) icon of the item at the specified index.
  240. .. _class_ItemList_set_item_icon_region:
  241. - void **set_item_icon_region** **(** :ref:`int<class_int>` idx, :ref:`Rect2<class_rect2>` rect **)**
  242. .. _class_ItemList_set_item_metadata:
  243. - void **set_item_metadata** **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` metadata **)**
  244. Sets a value (of any type) to be stored with the item at the specified index.
  245. .. _class_ItemList_set_item_selectable:
  246. - void **set_item_selectable** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` selectable **)**
  247. Allow or disallow selection of the item at the specified index.
  248. .. _class_ItemList_set_item_text:
  249. - void **set_item_text** **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` text **)**
  250. Sets text of item at specified index.
  251. .. _class_ItemList_set_item_tooltip:
  252. - void **set_item_tooltip** **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` tooltip **)**
  253. Sets tooltip hint for item at specified index.
  254. .. _class_ItemList_set_item_tooltip_enabled:
  255. - void **set_item_tooltip_enabled** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enable **)**
  256. Sets whether the tooltip is enabled for specified item index.
  257. .. _class_ItemList_set_max_columns:
  258. - void **set_max_columns** **(** :ref:`int<class_int>` amount **)**
  259. Set maximum number of columns to use for the list.
  260. .. _class_ItemList_set_max_text_lines:
  261. - void **set_max_text_lines** **(** :ref:`int<class_int>` lines **)**
  262. Set maximum number of lines to use for the list.
  263. .. _class_ItemList_set_same_column_width:
  264. - void **set_same_column_width** **(** :ref:`bool<class_bool>` enable **)**
  265. Sets a fixed size (width) to use for all columns of the list.
  266. .. _class_ItemList_set_select_mode:
  267. - void **set_select_mode** **(** :ref:`int<class_int>` mode **)**
  268. .. _class_ItemList_sort_items_by_text:
  269. - void **sort_items_by_text** **(** **)**
  270. Sorts items in the list by their text.
  271. .. _class_ItemList_unselect:
  272. - void **unselect** **(** :ref:`int<class_int>` idx **)**
  273. Ensure item at specified index is not selected.