@tlua/gmod 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/README.md +28 -0
  2. package/__metadata.json +4 -0
  3. package/_globals.d.tlua +178 -0
  4. package/_gmod-std.d.tlua +35 -0
  5. package/achievementicon.d.tlua +12 -0
  6. package/achievements.d.tlua +162 -0
  7. package/ai.d.tlua +65 -0
  8. package/ai_schedule.d.tlua +17 -0
  9. package/ai_task.d.tlua +17 -0
  10. package/angle.d.tlua +197 -0
  11. package/avatarimage.d.tlua +10 -0
  12. package/awesomium.d.tlua +14 -0
  13. package/baseclass.d.tlua +42 -0
  14. package/bf_read.d.tlua +110 -0
  15. package/bit.d.tlua +121 -0
  16. package/button.d.tlua +13 -0
  17. package/cam.d.tlua +220 -0
  18. package/ceffectdata.d.tlua +337 -0
  19. package/chat.d.tlua +62 -0
  20. package/checkbutton.d.tlua +14 -0
  21. package/cleanup.d.tlua +88 -0
  22. package/cluaemitter.d.tlua +119 -0
  23. package/clualocomotion.d.tlua +383 -0
  24. package/cluaparticle.d.tlua +426 -0
  25. package/cmovedata.d.tlua +476 -0
  26. package/cnavarea.d.tlua +845 -0
  27. package/cnavladder.d.tlua +209 -0
  28. package/cnewparticleeffect.d.tlua +259 -0
  29. package/color.d.tlua +339 -0
  30. package/concommand.d.tlua +69 -0
  31. package/constraint.d.tlua +311 -0
  32. package/construct.d.tlua +26 -0
  33. package/contentheader.d.tlua +32 -0
  34. package/contenticon.d.tlua +86 -0
  35. package/contentsidebar.d.tlua +45 -0
  36. package/contentsidebartoolbox.d.tlua +13 -0
  37. package/contextbase.d.tlua +37 -0
  38. package/controlpanel.d.tlua +140 -0
  39. package/controlpresets.d.tlua +118 -0
  40. package/convar.d.tlua +162 -0
  41. package/cookie.d.tlua +60 -0
  42. package/coroutine.d.tlua +90 -0
  43. package/crecipientfilter.d.tlua +152 -0
  44. package/csent.d.tlua +10 -0
  45. package/csoundpatch.d.tlua +150 -0
  46. package/ctakedamageinfo.d.tlua +366 -0
  47. package/ctrllistbox.d.tlua +12 -0
  48. package/ctrlnumpad.d.tlua +73 -0
  49. package/cusercmd.d.tlua +320 -0
  50. package/custom_classes.d.tlua +65 -0
  51. package/custom_entity_fields.d.tlua +96 -0
  52. package/cvars.d.tlua +80 -0
  53. package/dadjustablemodelpanel.d.tlua +81 -0
  54. package/dalphabar.d.tlua +27 -0
  55. package/dbinder.d.tlua +37 -0
  56. package/dbubblecontainer.d.tlua +18 -0
  57. package/dbutton.d.tlua +88 -0
  58. package/dcategoryheader.d.tlua +13 -0
  59. package/dcategorylist.d.tlua +11 -0
  60. package/dcheckbox.d.tlua +46 -0
  61. package/dcheckboxlabel.d.tlua +90 -0
  62. package/dcollapsiblecategory.d.tlua +240 -0
  63. package/dcolorbutton.d.tlua +73 -0
  64. package/dcolorcombo.d.tlua +54 -0
  65. package/dcolorcube.d.tlua +137 -0
  66. package/dcolormixer.d.tlua +303 -0
  67. package/dcolorpalette.d.tlua +294 -0
  68. package/dcolumnsheet.d.tlua +49 -0
  69. package/dcombobox.d.tlua +161 -0
  70. package/ddragbase.d.tlua +151 -0
  71. package/ddrawer.d.tlua +72 -0
  72. package/debug.d.tlua +236 -0
  73. package/debugoverlay.d.tlua +193 -0
  74. package/dentityproperties.d.tlua +63 -0
  75. package/derma.d.tlua +119 -0
  76. package/dexpandbutton.d.tlua +30 -0
  77. package/dfilebrowser.d.tlua +228 -0
  78. package/dform.d.tlua +176 -0
  79. package/dframe.d.tlua +261 -0
  80. package/dgrid.d.tlua +113 -0
  81. package/dhorizontaldivider.d.tlua +196 -0
  82. package/dhorizontalscroller.d.tlua +104 -0
  83. package/dhscrollbar.d.tlua +109 -0
  84. package/dhtml.d.tlua +91 -0
  85. package/dhtmlcontrols.d.tlua +62 -0
  86. package/diconbrowser.d.tlua +113 -0
  87. package/diconlayout.d.tlua +190 -0
  88. package/dimage.d.tlua +221 -0
  89. package/dimagebutton.d.tlua +103 -0
  90. package/dkillicon.d.tlua +9 -0
  91. package/dlabel.d.tlua +385 -0
  92. package/dlabeleditable.d.tlua +51 -0
  93. package/dlabelurl.d.tlua +100 -0
  94. package/dlistbox.d.tlua +82 -0
  95. package/dlistboxitem.d.tlua +42 -0
  96. package/dlistlayout.d.tlua +14 -0
  97. package/dlistview.d.tlua +360 -0
  98. package/dlistview_column.d.tlua +135 -0
  99. package/dlistview_columnplain.d.tlua +11 -0
  100. package/dlistview_draggerbar.d.tlua +11 -0
  101. package/dlistview_line.d.tlua +140 -0
  102. package/dlistviewheaderlabel.d.tlua +11 -0
  103. package/dlistviewlabel.d.tlua +11 -0
  104. package/dlistviewline.d.tlua +11 -0
  105. package/dmenu.d.tlua +266 -0
  106. package/dmenubar.d.tlua +42 -0
  107. package/dmenuoption.d.tlua +135 -0
  108. package/dmenuoptioncvar.d.tlua +64 -0
  109. package/dmodelpanel.d.tlua +207 -0
  110. package/dmodelselect.d.tlua +20 -0
  111. package/dmodelselectmulti.d.tlua +19 -0
  112. package/dnotify.d.tlua +93 -0
  113. package/dnumberscratch.d.tlua +284 -0
  114. package/dnumberwang.d.tlua +147 -0
  115. package/dnumpad.d.tlua +11 -0
  116. package/dnumslider.d.tlua +182 -0
  117. package/dpanel.d.tlua +152 -0
  118. package/dpanellist.d.tlua +109 -0
  119. package/dpaneloverlay.d.tlua +65 -0
  120. package/dpanelselect.d.tlua +13 -0
  121. package/dpanpanel.d.tlua +64 -0
  122. package/dprogress.d.tlua +27 -0
  123. package/dproperties.d.tlua +52 -0
  124. package/dproperty_boolean.d.tlua +12 -0
  125. package/dproperty_combo.d.tlua +31 -0
  126. package/dproperty_entity.d.tlua +12 -0
  127. package/dproperty_float.d.tlua +12 -0
  128. package/dproperty_generic.d.tlua +50 -0
  129. package/dproperty_int.d.tlua +12 -0
  130. package/dproperty_vectorcolor.d.tlua +14 -0
  131. package/dpropertysheet.d.tlua +167 -0
  132. package/dragndrop.d.tlua +123 -0
  133. package/draw.d.tlua +162 -0
  134. package/drgbpicker.d.tlua +49 -0
  135. package/drive.d.tlua +159 -0
  136. package/dscrollbargrip.d.tlua +13 -0
  137. package/dscrollpanel.d.tlua +110 -0
  138. package/dshape.d.tlua +72 -0
  139. package/dsizetocontents.d.tlua +46 -0
  140. package/dslider.d.tlua +302 -0
  141. package/dsprite.d.tlua +84 -0
  142. package/dtab.d.tlua +81 -0
  143. package/dtextentry.d.tlua +442 -0
  144. package/dtilelayout.d.tlua +218 -0
  145. package/dtooltip.d.tlua +76 -0
  146. package/dtree.d.tlua +185 -0
  147. package/dtree_node.d.tlua +793 -0
  148. package/dtree_node_button.d.tlua +13 -0
  149. package/duplicator.d.tlua +338 -0
  150. package/dverticaldivider.d.tlua +223 -0
  151. package/dvscrollbar.d.tlua +109 -0
  152. package/editablepanel.d.tlua +10 -0
  153. package/effect.d.tlua +121 -0
  154. package/effects.d.tlua +77 -0
  155. package/engine.d.tlua +248 -0
  156. package/entity.d.tlua +8295 -0
  157. package/ents.d.tlua +267 -0
  158. package/enums.d.tlua +7082 -0
  159. package/file.d.tlua +419 -0
  160. package/file_class.d.tlua +7 -0
  161. package/fingerposer.d.tlua +12 -0
  162. package/fingervar.d.tlua +13 -0
  163. package/frame.d.tlua +11 -0
  164. package/frame_blend.d.tlua +105 -0
  165. package/game.d.tlua +482 -0
  166. package/gameevent.d.tlua +968 -0
  167. package/gamemode.d.tlua +48 -0
  168. package/global.d.tlua +3156 -0
  169. package/gm.d.tlua +3218 -0
  170. package/gmod.d.tlua +20 -0
  171. package/gmsave.d.tlua +53 -0
  172. package/gui.d.tlua +232 -0
  173. package/gwen.d.tlua +55 -0
  174. package/halo.d.tlua +42 -0
  175. package/hammer.d.tlua +17 -0
  176. package/hook.d.tlua +64 -0
  177. package/html.d.tlua +22 -0
  178. package/http.d.tlua +72 -0
  179. package/iconeditor.d.tlua +130 -0
  180. package/igmodaudiochannel.d.tlua +419 -0
  181. package/imagecheckbox.d.tlua +48 -0
  182. package/imaterial.d.tlua +288 -0
  183. package/imesh.d.tlua +70 -0
  184. package/index.d.tlua +277 -0
  185. package/input.d.tlua +252 -0
  186. package/invalidateinternalentitycache.d.tlua +13 -0
  187. package/irestore.d.tlua +94 -0
  188. package/isave.d.tlua +94 -0
  189. package/itexture.d.tlua +108 -0
  190. package/ivideowriter.d.tlua +53 -0
  191. package/jit.d.tlua +243 -0
  192. package/killicon.d.tlua +84 -0
  193. package/label.d.tlua +20 -0
  194. package/language.d.tlua +26 -0
  195. package/list.d.tlua +112 -0
  196. package/makeballoon.d.tlua +15 -0
  197. package/markup.d.tlua +38 -0
  198. package/markupobject.d.tlua +53 -0
  199. package/material.d.tlua +9 -0
  200. package/math.d.tlua +899 -0
  201. package/matproxy.d.tlua +60 -0
  202. package/matselect.d.tlua +106 -0
  203. package/menu.d.tlua +20 -0
  204. package/menubar.d.tlua +39 -0
  205. package/mesh.d.tlua +183 -0
  206. package/modelimage.d.tlua +12 -0
  207. package/motionsensor.d.tlua +115 -0
  208. package/navmesh.d.tlua +274 -0
  209. package/net.d.tlua +639 -0
  210. package/nextbot.d.tlua +380 -0
  211. package/notification.d.tlua +35 -0
  212. package/npc.d.tlua +1787 -0
  213. package/numpad.d.tlua +89 -0
  214. package/os.d.tlua +56 -0
  215. package/package.d.tlua +15 -0
  216. package/package.json +18 -0
  217. package/panel.d.tlua +3650 -0
  218. package/panellist.d.tlua +13 -0
  219. package/pathfollower.d.tlua +301 -0
  220. package/permissions.d.tlua +77 -0
  221. package/physcollide.d.tlua +40 -0
  222. package/physenv.d.tlua +136 -0
  223. package/physobj.d.tlua +799 -0
  224. package/pixelvis_handle_t.d.tlua +9 -0
  225. package/player.d.tlua +3320 -0
  226. package/player_manager.d.tlua +147 -0
  227. package/preseteditor.d.tlua +13 -0
  228. package/presets.d.tlua +79 -0
  229. package/projectedtexture.d.tlua +553 -0
  230. package/properties.d.tlua +65 -0
  231. package/propselect.d.tlua +50 -0
  232. package/radiobutton.d.tlua +13 -0
  233. package/render.d.tlua +1700 -0
  234. package/resource.d.tlua +73 -0
  235. package/richtext.d.tlua +17 -0
  236. package/sandbox.d.tlua +576 -0
  237. package/saverestore.d.tlua +148 -0
  238. package/schedule.d.tlua +69 -0
  239. package/scripted_ents.d.tlua +124 -0
  240. package/search.d.tlua +26 -0
  241. package/serverlist.d.tlua +85 -0
  242. package/slidebar.d.tlua +12 -0
  243. package/slider.d.tlua +11 -0
  244. package/sound.d.tlua +140 -0
  245. package/spawnicon.d.tlua +95 -0
  246. package/spawnmenu.d.tlua +286 -0
  247. package/spawnmenucontentpanel.d.tlua +52 -0
  248. package/sql.d.tlua +154 -0
  249. package/stack.d.tlua +57 -0
  250. package/steamworks.d.tlua +208 -0
  251. package/string.d.tlua +535 -0
  252. package/structures.d.tlua +4442 -0
  253. package/surface.d.tlua +463 -0
  254. package/surfaceinfo.d.tlua +70 -0
  255. package/system.d.tlua +134 -0
  256. package/table.d.tlua +533 -0
  257. package/task.d.tlua +92 -0
  258. package/team.d.tlua +195 -0
  259. package/textentry.d.tlua +12 -0
  260. package/tgaimage.d.tlua +11 -0
  261. package/timer.d.tlua +198 -0
  262. package/tool.d.tlua +466 -0
  263. package/ugcpublishwindow.d.tlua +83 -0
  264. package/umsg.d.tlua +147 -0
  265. package/undo.d.tlua +122 -0
  266. package/urllabel.d.tlua +13 -0
  267. package/usermessage.d.tlua +48 -0
  268. package/utf8.d.tlua +89 -0
  269. package/util.d.tlua +1087 -0
  270. package/vector.d.tlua +413 -0
  271. package/vehicle.d.tlua +472 -0
  272. package/vgui.d.tlua +201 -0
  273. package/video.d.tlua +17 -0
  274. package/vmatrix.d.tlua +392 -0
  275. package/weapon.d.tlua +913 -0
  276. package/weapons.d.tlua +90 -0
  277. package/widgets.d.tlua +29 -0
  278. package/workshopfilebase.d.tlua +68 -0
@@ -0,0 +1,360 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * A data view with rows and columns.
5
+ * @realm client and menu
6
+ * @source https://wiki.facepunch.com/gmod/DListView
7
+ */
8
+ interface DListView extends DPanel {}
9
+
10
+ interface DListView {
11
+ /**
12
+ * Adds a column to the listview.
13
+ * @realm client and menu
14
+ * @source https://wiki.facepunch.com/gmod/DListView:AddColumn
15
+ */
16
+ AddColumn(self: DListView, column: string, position?: number): Panel;
17
+ }
18
+
19
+ interface DListView {
20
+ /**
21
+ * Adds a line to the list view.
22
+ * @realm client and menu
23
+ * @source https://wiki.facepunch.com/gmod/DListView:AddLine
24
+ */
25
+ AddLine(self: DListView, ...: any): Panel;
26
+ }
27
+
28
+ interface DListView {
29
+ /**
30
+ * Clears the current selection in the DListView.
31
+ * @realm client and menu
32
+ * @source https://wiki.facepunch.com/gmod/DListView:ClearSelection
33
+ */
34
+ ClearSelection(self: DListView): void;
35
+ }
36
+
37
+ interface DListView {
38
+ /**
39
+ * Gets the width of a column.
40
+ * @realm client and menu
41
+ * @source https://wiki.facepunch.com/gmod/DListView:ColumnWidth
42
+ */
43
+ ColumnWidth(self: DListView, column: number): number;
44
+ }
45
+
46
+ interface DListView {
47
+ /**
48
+ * Creates the lines and gets the height of the contents, in a DListView.
49
+ * @realm client and menu
50
+ * @source https://wiki.facepunch.com/gmod/DListView:DataLayout
51
+ */
52
+ DataLayout(self: DListView): number;
53
+ }
54
+
55
+ interface DListView {
56
+ /**
57
+ * Removes the scrollbar.
58
+ * @realm client and menu
59
+ * @source https://wiki.facepunch.com/gmod/DListView:DisableScrollbar
60
+ */
61
+ DisableScrollbar(self: DListView): void;
62
+ }
63
+
64
+ interface DListView {
65
+ /**
66
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
67
+ *
68
+ *
69
+ * Internal helper function called from the [PANEL:PerformLayout](https://wiki.facepunch.com/gmod/PANEL:PerformLayout) of [DListView](https://wiki.facepunch.com/gmod/DListView).
70
+ *
71
+ * @realm client and menu
72
+ * @source https://wiki.facepunch.com/gmod/DListView:FixColumnsLayout
73
+ */
74
+ FixColumnsLayout(self: DListView): void;
75
+ }
76
+
77
+ interface DListView {
78
+ /**
79
+ * Gets the canvas.
80
+ * @realm client and menu
81
+ * @source https://wiki.facepunch.com/gmod/DListView:GetCanvas
82
+ */
83
+ GetCanvas(self: DListView): Panel;
84
+ }
85
+
86
+ interface DListView {
87
+ /**
88
+ * Returns the height of the data of the [DListView](https://wiki.facepunch.com/gmod/DListView).
89
+ *
90
+ * See also [DListView:SetDataHeight](https://wiki.facepunch.com/gmod/DListView:SetDataHeight).
91
+ *
92
+ * @realm client and menu
93
+ * @source https://wiki.facepunch.com/gmod/DListView:GetDataHeight
94
+ */
95
+ GetDataHeight(self: DListView): number;
96
+ }
97
+
98
+ interface DListView {
99
+ /**
100
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
101
+ *
102
+ *
103
+ * See [DListView:SetDirty](https://wiki.facepunch.com/gmod/DListView:SetDirty).
104
+ *
105
+ * @realm client and menu
106
+ * @source https://wiki.facepunch.com/gmod/DListView:GetDirty
107
+ */
108
+ GetDirty(self: DListView): boolean;
109
+ }
110
+
111
+ interface DListView {
112
+ /**
113
+ * Returns the height of the header of the [DListView](https://wiki.facepunch.com/gmod/DListView).
114
+ *
115
+ * See also [DListView:SetHeaderHeight](https://wiki.facepunch.com/gmod/DListView:SetHeaderHeight).
116
+ *
117
+ * @realm client and menu
118
+ * @source https://wiki.facepunch.com/gmod/DListView:GetHeaderHeight
119
+ */
120
+ GetHeaderHeight(self: DListView): number;
121
+ }
122
+
123
+ interface DListView {
124
+ /**
125
+ * Returns whether the header line should be visible on not.
126
+ * @realm client and menu
127
+ * @source https://wiki.facepunch.com/gmod/DListView:GetHideHeaders
128
+ */
129
+ GetHideHeaders(self: DListView): boolean;
130
+ }
131
+
132
+ interface DListView {
133
+ /**
134
+ * Returns the height of [DListView:GetCanvas](https://wiki.facepunch.com/gmod/DListView:GetCanvas).
135
+ *
136
+ * Intended to represent the height of all data lines.
137
+ *
138
+ * @realm client and menu
139
+ * @source https://wiki.facepunch.com/gmod/DListView:GetInnerTall
140
+ */
141
+ GetInnerTall(self: DListView): number;
142
+ }
143
+
144
+ interface DListView {
145
+ /**
146
+ * Gets the [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) at the given index.
147
+ * @realm client and menu
148
+ * @source https://wiki.facepunch.com/gmod/DListView:GetLine
149
+ */
150
+ GetLine(self: DListView, id: number): Panel;
151
+ }
152
+
153
+ interface DListView {
154
+ /**
155
+ * Gets all of the lines added to the DListView.
156
+ * @realm client and menu
157
+ * @source https://wiki.facepunch.com/gmod/DListView:GetLines
158
+ */
159
+ GetLines(self: DListView): table;
160
+ }
161
+
162
+ interface DListView {
163
+ /**
164
+ * Returns whether multiple lines can be selected or not.
165
+ *
166
+ * See [DListView:SetMultiSelect](https://wiki.facepunch.com/gmod/DListView:SetMultiSelect).
167
+ *
168
+ * @realm client and menu
169
+ * @source https://wiki.facepunch.com/gmod/DListView:GetMultiSelect
170
+ */
171
+ GetMultiSelect(self: DListView): boolean;
172
+ }
173
+
174
+ interface DListView {
175
+ /**
176
+ * Gets all of the lines that are currently selected.
177
+ * @realm client and menu
178
+ * @source https://wiki.facepunch.com/gmod/DListView:GetSelected
179
+ */
180
+ GetSelected(self: DListView): table;
181
+ }
182
+
183
+ interface DListView {
184
+ /**
185
+ * Gets the currently selected [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) index.
186
+ *
187
+ * If [DListView:SetMultiSelect](https://wiki.facepunch.com/gmod/DListView:SetMultiSelect) is set to true, only the first line of all selected lines will be returned. Use [DListView:GetSelected](https://wiki.facepunch.com/gmod/DListView:GetSelected) instead to get all of the selected lines.
188
+ *
189
+ * @realm client and menu
190
+ * @source https://wiki.facepunch.com/gmod/DListView:GetSelectedLine
191
+ */
192
+ GetSelectedLine(self: DListView): (number, Panel);
193
+ }
194
+
195
+ interface DListView {
196
+ /**
197
+ * Returns whether sorting of columns by clicking their headers is allowed or not.
198
+ *
199
+ * See also [DListView:SetSortable](https://wiki.facepunch.com/gmod/DListView:SetSortable).
200
+ *
201
+ * @realm client and menu
202
+ * @source https://wiki.facepunch.com/gmod/DListView:GetSortable
203
+ */
204
+ GetSortable(self: DListView): boolean;
205
+ }
206
+
207
+ interface DListView {
208
+ /**
209
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
210
+ *
211
+ *
212
+ * Converts LineID to SortedID
213
+ *
214
+ * @realm client and menu
215
+ * @source https://wiki.facepunch.com/gmod/DListView:GetSortedID
216
+ */
217
+ GetSortedID(self: DListView, lineId: number): number;
218
+ }
219
+
220
+ interface DListView {
221
+ /**
222
+ * **INTERNAL**: Use [DListView:OnRowSelected](https://wiki.facepunch.com/gmod/DListView:OnRowSelected) instead!
223
+ *
224
+ *
225
+ * Called whenever a line is clicked.
226
+ *
227
+ * @realm client and menu
228
+ * @source https://wiki.facepunch.com/gmod/DListView:OnClickLine
229
+ */
230
+ OnClickLine(self: DListView, line: Panel, isSelected: boolean): void;
231
+ }
232
+
233
+ interface DListView {
234
+ /**
235
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
236
+ *
237
+ *
238
+ * Called from [DListView_Column](https://wiki.facepunch.com/gmod/DListView_Column).
239
+ *
240
+ * @realm client and menu
241
+ * @source https://wiki.facepunch.com/gmod/DListView:OnRequestResize
242
+ */
243
+ OnRequestResize(self: DListView, column: Panel, size: number): void;
244
+ }
245
+
246
+ interface DListView {
247
+ /**
248
+ * Removes a line from the list view.
249
+ * @realm client and menu
250
+ * @source https://wiki.facepunch.com/gmod/DListView:RemoveLine
251
+ */
252
+ RemoveLine(self: DListView, line: number): void;
253
+ }
254
+
255
+ interface DListView {
256
+ /**
257
+ * Selects the line at the first index of the DListView if one has been added.
258
+ * @realm client and menu
259
+ * @source https://wiki.facepunch.com/gmod/DListView:SelectFirstItem
260
+ */
261
+ SelectFirstItem(self: DListView): void;
262
+ }
263
+
264
+ interface DListView {
265
+ /**
266
+ * Selects a line in the listview.
267
+ * @realm client and menu
268
+ * @source https://wiki.facepunch.com/gmod/DListView:SelectItem
269
+ */
270
+ SelectItem(self: DListView, Line: Panel): void;
271
+ }
272
+
273
+ interface DListView {
274
+ /**
275
+ * Sets the height of all lines of the [DListView](https://wiki.facepunch.com/gmod/DListView) except for the header line.
276
+ *
277
+ * See also [DListView:SetHeaderHeight](https://wiki.facepunch.com/gmod/DListView:SetHeaderHeight).
278
+ *
279
+ * @realm client and menu
280
+ * @source https://wiki.facepunch.com/gmod/DListView:SetDataHeight
281
+ */
282
+ SetDataHeight(self: DListView, height: number): void;
283
+ }
284
+
285
+ interface DListView {
286
+ /**
287
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
288
+ *
289
+ *
290
+ * Used internally to signify if the [DListView](https://wiki.facepunch.com/gmod/DListView) needs a rebuild.
291
+ *
292
+ * @realm client and menu
293
+ * @source https://wiki.facepunch.com/gmod/DListView:SetDirty
294
+ */
295
+ SetDirty(self: DListView, isDirty: boolean): void;
296
+ }
297
+
298
+ interface DListView {
299
+ /**
300
+ * Sets the height of the header line of the [DListView](https://wiki.facepunch.com/gmod/DListView).
301
+ *
302
+ * See also [DListView:SetDataHeight](https://wiki.facepunch.com/gmod/DListView:SetDataHeight).
303
+ *
304
+ * @realm client and menu
305
+ * @source https://wiki.facepunch.com/gmod/DListView:SetHeaderHeight
306
+ */
307
+ SetHeaderHeight(self: DListView, height: number): void;
308
+ }
309
+
310
+ interface DListView {
311
+ /**
312
+ * Sets whether the header line should be visible on not.
313
+ * @realm client and menu
314
+ * @source https://wiki.facepunch.com/gmod/DListView:SetHideHeaders
315
+ */
316
+ SetHideHeaders(self: DListView, hide: boolean): void;
317
+ }
318
+
319
+ interface DListView {
320
+ /**
321
+ * Sets whether multiple lines can be selected by the user by using the Ctrl or Shift keys. When set to false, only one line can be selected.
322
+ * @realm client and menu
323
+ * @source https://wiki.facepunch.com/gmod/DListView:SetMultiSelect
324
+ */
325
+ SetMultiSelect(self: DListView, allowMultiSelect: boolean): void;
326
+ }
327
+
328
+ interface DListView {
329
+ /**
330
+ * Enables/disables the sorting of columns by clicking.
331
+ * **NOTE**: This will only affect columns that are created after this function is called. Existing columns will be unaffected.
332
+ *
333
+ *
334
+ * @realm client and menu
335
+ * @source https://wiki.facepunch.com/gmod/DListView:SetSortable
336
+ */
337
+ SetSortable(self: DListView, isSortable: boolean): void;
338
+ }
339
+
340
+ interface DListView {
341
+ /**
342
+ * Sorts the items in the specified column.
343
+ * @realm client and menu
344
+ * @source https://wiki.facepunch.com/gmod/DListView:SortByColumn
345
+ */
346
+ SortByColumn(self: DListView, columnIndex: number, descending?: boolean): void;
347
+ }
348
+
349
+ interface DListView {
350
+ /**
351
+ * Sorts the list based on given columns.
352
+ *
353
+ * All arguments are optional
354
+ *
355
+ * @realm client and menu
356
+ * @source https://wiki.facepunch.com/gmod/DListView:SortByColumns
357
+ */
358
+ SortByColumns(self: DListView, column1?: number, descrending1?: boolean, column2?: number, descrending2?: boolean, column3?: number, descrending3?: boolean, column4?: number, descrending4?: boolean): void;
359
+ }
360
+
@@ -0,0 +1,135 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
5
+ *
6
+ *
7
+ * A single column, used by [DListView](https://wiki.facepunch.com/gmod/DListView).
8
+ *
9
+ * @realm client and menu
10
+ * @source https://wiki.facepunch.com/gmod/DListView_Column
11
+ */
12
+ interface DListView_Column extends Panel {}
13
+
14
+ interface DListView_Column {
15
+ /**
16
+ * Gets the index used for this column.
17
+ * @realm client and menu
18
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:GetColumnID
19
+ */
20
+ GetColumnID(self: DListView_Column): number;
21
+ }
22
+
23
+ interface DListView_Column {
24
+ /**
25
+ * Returns whether the column is sorted in descending order or not.
26
+ * @realm client and menu
27
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:GetDescending
28
+ */
29
+ GetDescending(self: DListView_Column): boolean;
30
+ }
31
+
32
+ interface DListView_Column {
33
+ /**
34
+ * Returns the fixed width of this column.
35
+ *
36
+ * @realm client and menu
37
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:GetFixedWidth
38
+ */
39
+ GetFixedWidth(self: DListView_Column): number;
40
+ }
41
+
42
+ interface DListView_Column {
43
+ /**
44
+ * Returns the maximum width set with [DListView_Column:SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth).
45
+ * @realm client and menu
46
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:GetMaxWidth
47
+ */
48
+ GetMaxWidth(self: DListView_Column): number;
49
+ }
50
+
51
+ interface DListView_Column {
52
+ /**
53
+ * Returns the minimum width set with [DListView_Column:SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth).
54
+ * @realm client and menu
55
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:GetMinWidth
56
+ */
57
+ GetMinWidth(self: DListView_Column): number;
58
+ }
59
+
60
+ interface DListView_Column {
61
+ /**
62
+ * Returns the text alignment for the column
63
+ * @realm client and menu
64
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:GetTextAlign
65
+ */
66
+ GetTextAlign(self: DListView_Column): number;
67
+ }
68
+
69
+ interface DListView_Column {
70
+ /**
71
+ * Resizes the column, additionally adjusting the size of the column to the right, if any.
72
+ * @realm client and menu
73
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:ResizeColumn
74
+ */
75
+ ResizeColumn(self: DListView_Column, size: number): void;
76
+ }
77
+
78
+ interface DListView_Column {
79
+ /**
80
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
81
+ * Sets the index used for this column.
82
+ * @realm client and menu
83
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:SetColumnID
84
+ */
85
+ SetColumnID(self: DListView_Column, index: number): void;
86
+ }
87
+
88
+ interface DListView_Column {
89
+ /**
90
+ * Sets whether the column is sorted in descending order or not.
91
+ * @realm client and menu
92
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:SetDescending
93
+ */
94
+ SetDescending(self: DListView_Column, desc: boolean): void;
95
+ }
96
+
97
+ interface DListView_Column {
98
+ /**
99
+ * Sets the fixed width of the column.
100
+ * **NOTE**: Internally this will set [SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth) and [SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth) to the value provided
101
+ *
102
+ *
103
+ * @realm client and menu
104
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:SetFixedWidth
105
+ */
106
+ SetFixedWidth(self: DListView_Column, width: number): void;
107
+ }
108
+
109
+ interface DListView_Column {
110
+ /**
111
+ * Sets the maximum width of a column.
112
+ * @realm client and menu
113
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth
114
+ */
115
+ SetMaxWidth(self: DListView_Column, width: number): void;
116
+ }
117
+
118
+ interface DListView_Column {
119
+ /**
120
+ * Sets the minimum width of a column.
121
+ * @realm client and menu
122
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth
123
+ */
124
+ SetMinWidth(self: DListView_Column, width: number): void;
125
+ }
126
+
127
+ interface DListView_Column {
128
+ /**
129
+ * Sets the text alignment for the column
130
+ * @realm client and menu
131
+ * @source https://wiki.facepunch.com/gmod/DListView_Column:SetTextAlign
132
+ */
133
+ SetTextAlign(self: DListView_Column, alignment: number): void;
134
+ }
135
+
@@ -0,0 +1,11 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: Used by [DListView](https://wiki.facepunch.com/gmod/DListView).
5
+ *
6
+ *
7
+ * @realm client and menu
8
+ * @source https://wiki.facepunch.com/gmod/DListView_ColumnPlain
9
+ */
10
+ interface DListView_ColumnPlain extends DListView_Column {}
11
+
@@ -0,0 +1,11 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: Used by [DListView](https://wiki.facepunch.com/gmod/DListView).
5
+ *
6
+ *
7
+ * @realm client and menu
8
+ * @source https://wiki.facepunch.com/gmod/DListView_DraggerBar
9
+ */
10
+ interface DListView_DraggerBar extends DButton {}
11
+
@@ -0,0 +1,140 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
5
+ *
6
+ *
7
+ * A panel used by [DListView](https://wiki.facepunch.com/gmod/DListView)
8
+ *
9
+ * @realm client and menu
10
+ * @source https://wiki.facepunch.com/gmod/DListView_Line
11
+ */
12
+ interface DListView_Line extends Panel {}
13
+
14
+ interface DListView_Line {
15
+ /**
16
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
17
+ *
18
+ *
19
+ * Called by [DListView:DataLayout](https://wiki.facepunch.com/gmod/DListView:DataLayout)
20
+ *
21
+ * @realm client and menu
22
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:DataLayout
23
+ */
24
+ DataLayout(self: DListView_Line, pnl: DListView): void;
25
+ }
26
+
27
+ interface DListView_Line {
28
+ /**
29
+ * Returns whether this line is odd or even in the list. This is internally used (and set) to change the looks of every other line.
30
+ * @realm client and menu
31
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:GetAltLine
32
+ */
33
+ GetAltLine(self: DListView_Line): boolean;
34
+ }
35
+
36
+ interface DListView_Line {
37
+ /**
38
+ * Gets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
39
+ *
40
+ * This is the same thing as doing [DListView_Line:GetValue](https://wiki.facepunch.com/gmod/Panel:GetValue)( column_number ).
41
+ *
42
+ * @realm client and menu
43
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:GetColumnText
44
+ */
45
+ GetColumnText(self: DListView_Line, column: number): string;
46
+ }
47
+
48
+ interface DListView_Line {
49
+ /**
50
+ * Returns the ID of this line, set automatically in [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
51
+ * @realm client and menu
52
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:GetID
53
+ */
54
+ GetID(self: DListView_Line): number;
55
+ }
56
+
57
+ interface DListView_Line {
58
+ /**
59
+ * Returns the parent [DListView](https://wiki.facepunch.com/gmod/DListView) of this line.
60
+ * @realm client and menu
61
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:GetListView
62
+ */
63
+ GetListView(self: DListView_Line): DListView;
64
+ }
65
+
66
+ interface DListView_Line {
67
+ /**
68
+ * Returns the data stored on given cell of this line.
69
+ *
70
+ * Used in the [DListView:SortByColumn](https://wiki.facepunch.com/gmod/DListView:SortByColumn) function in case you want to sort with something else than the text.
71
+ * @realm client and menu
72
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:GetSortValue
73
+ */
74
+ GetSortValue(self: DListView_Line, column: number): any;
75
+ }
76
+
77
+ interface DListView_Line {
78
+ /**
79
+ * Returns whether this line is selected.
80
+ * @realm client and menu
81
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:IsLineSelected
82
+ */
83
+ IsLineSelected(self: DListView_Line): boolean;
84
+ }
85
+
86
+ interface DListView_Line {
87
+ /**
88
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
89
+ *
90
+ * Sets whether this line is odd or even in the list. This is internally used (and set automatically) to change the looks of every other line.
91
+ * @realm client and menu
92
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:SetAltLine
93
+ */
94
+ SetAltLine(self: DListView_Line, alt: boolean): void;
95
+ }
96
+
97
+ interface DListView_Line {
98
+ /**
99
+ * Sets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
100
+ * @realm client and menu
101
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:SetColumnText
102
+ */
103
+ SetColumnText(self: DListView_Line, column: number, value: string): DLabel;
104
+ }
105
+
106
+ interface DListView_Line {
107
+ /**
108
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
109
+ *
110
+ * Sets the ID of this line, used internally by [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
111
+ *
112
+ * @realm client and menu
113
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:SetID
114
+ */
115
+ SetID(self: DListView_Line, id: number): void;
116
+ }
117
+
118
+ interface DListView_Line {
119
+ /**
120
+ * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
121
+ *
122
+ *
123
+ * Sets the parent [DListView](https://wiki.facepunch.com/gmod/DListView) for this line. Used internally by [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
124
+ * @realm client and menu
125
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:SetListView
126
+ */
127
+ SetListView(self: DListView_Line, pnl: DListView): void;
128
+ }
129
+
130
+ interface DListView_Line {
131
+ /**
132
+ * Allows you to store data per column.
133
+ *
134
+ * Used in the [DListView:SortByColumn](https://wiki.facepunch.com/gmod/DListView:SortByColumn) function in case you want to sort with something else than the text.
135
+ * @realm client and menu
136
+ * @source https://wiki.facepunch.com/gmod/DListView_Line:SetSortValue
137
+ */
138
+ SetSortValue(self: DListView_Line, column: number, data: any): void;
139
+ }
140
+
@@ -0,0 +1,11 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: Used by [DListView_ColumnPlain](https://wiki.facepunch.com/gmod/DListView_ColumnPlain).
5
+ *
6
+ *
7
+ * @realm client and menu
8
+ * @source https://wiki.facepunch.com/gmod/DListViewHeaderLabel
9
+ */
10
+ interface DListViewHeaderLabel extends DLabel {}
11
+
@@ -0,0 +1,11 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: Used by [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line).
5
+ *
6
+ *
7
+ * @realm client and menu
8
+ * @source https://wiki.facepunch.com/gmod/DListViewLabel
9
+ */
10
+ interface DListViewLabel extends DLabel {}
11
+
@@ -0,0 +1,11 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * **INTERNAL**: Alias of [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line).
5
+ *
6
+ *
7
+ * @realm client and menu
8
+ * @source https://wiki.facepunch.com/gmod/DListViewLine
9
+ */
10
+ interface DListViewLine extends Panel {}
11
+