Skip to content

Commit fc424c3

Browse files
Auto-update definitions
1 parent 297c2c6 commit fc424c3

File tree

7 files changed

+81
-23
lines changed

7 files changed

+81
-23
lines changed

dist/library/lua/gui/widgets.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ List = require('gui.widgets.list')
2727
FilteredList = require('gui.widgets.filtered_list')
2828
TabBar = require('gui.widgets.tab_bar')
2929
RangeSlider = require('gui.widgets.range_slider')
30+
Slider = require('gui.widgets.slider')
3031
DimensionsTooltip = require('gui.widgets.dimensions_tooltip')
3132
TextArea = require('gui.widgets.text_area')
3233

dist/library/lua/gui/widgets/range_slider.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
--------------------------------
88

99
---@class widgets.RangeSlider.attrs: widgets.Widget.attrs
10-
---@field num_stops integer
1110
---@field get_left_idx_fn? function
1211
---@field get_right_idx_fn? function
1312
---@field on_left_change? fun(index: integer)
1413
---@field on_right_change? fun(index: integer)
14+
---@field is_single boolean
1515

1616
---@class widgets.RangeSlider.attrs.partial: widgets.RangeSlider.attrs
1717

@@ -24,12 +24,8 @@
2424
---@overload fun(init_table: widgets.RangeSlider.initTable): self
2525
local RangeSlider
2626

27-
function RangeSlider:preinit(init_table) end
28-
29-
function RangeSlider:init() end
27+
function RangeSlider:get_width_per_idx() end
3028

3129
function RangeSlider:onInput(keys) end
3230

33-
function RangeSlider:onRenderBody(dc, rect) end
34-
3531
return RangeSlider
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2+
---@meta
3+
4+
5+
--------------------------------
6+
-- slide_core
7+
--------------------------------
8+
9+
---@class widgets.slide_core.attrs: widgets.Widget.attrs
10+
---@field num_stops integer
11+
---@field is_single boolean
12+
---@field w integer
13+
14+
---@class widgets.slide_core.attrs.partial: widgets.slide_core.attrs
15+
16+
---@class widgets.slide_core.initTable: widgets.slide_core.attrs
17+
---@field num_stops integer
18+
19+
---@class widgets.slide_core: widgets.Widget, widgets.slide_core.attrs
20+
---@field super widgets.Widget
21+
---@field ATTRS widgets.slide_core.attrs|fun(attributes: widgets.slide_core.attrs.partial)
22+
---@overload fun(init_table: widgets.slide_core.initTable): self
23+
local slide_core
24+
25+
function slide_core:preinit(init_table) end
26+
27+
function slide_core:init() end
28+
29+
function slide_core:get_min_stops() end
30+
31+
function slide_core:onRenderBody(dc, rect) end
32+
33+
return slide_core
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2+
---@meta
3+
4+
5+
--------------------------------
6+
-- Slider
7+
--------------------------------
8+
9+
---@class widgets.Slider.attrs: widgets.Widget.attrs
10+
---@field get_idx_fn? function
11+
---@field on_change? fun(index: integer)
12+
---@field is_single boolean
13+
14+
---@class widgets.Slider.attrs.partial: widgets.Slider.attrs
15+
16+
---@class widgets.Slider.initTable: widgets.Slider.attrs
17+
---@field num_stops integer
18+
19+
---@class widgets.Slider: widgets.Widget, widgets.Slider.attrs
20+
---@field super widgets.Widget
21+
---@field ATTRS widgets.Slider.attrs|fun(attributes: widgets.Slider.attrs.partial)
22+
---@overload fun(init_table: widgets.Slider.initTable): self
23+
local Slider
24+
25+
function Slider:get_width_per_idx() end
26+
27+
function Slider:onInput(keys) end
28+
29+
return Slider

dist/library/structures/df.history_figure.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ df.body_profile_flag = {}
233233

234234
---@class (exact) df.body_profilest: DFStruct
235235
---@field _type identity.body_profilest
236-
---@field events DFNumberVector bay12: body_profilest
236+
---@field events DFNumberVector
237237
---@field status _body_profilest_status missing body parts
238238
---@field childbirth_year number
239239
---@field childbirth_tick number

dist/library/structures/df.rhythm.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,26 @@ function _sub_rhythm_pattern_flags:insert(index, item) end
120120
---@param index integer
121121
function _sub_rhythm_pattern_flags:erase(index) end
122122

123+
---@class df.rhythm_flag: DFBitfield
124+
---@field _enum identity.rhythm_flag
125+
---@field fundamental_polyrhythm boolean bay12: RHYTHM_FLAG_*
126+
---@field [0] boolean bay12: RHYTHM_FLAG_*
127+
---@field fundamental_polymeter boolean
128+
---@field [1] boolean
129+
130+
---@class identity.rhythm_flag: DFBitfieldType
131+
---@field fundamental_polyrhythm 0 bay12: RHYTHM_FLAG_*
132+
---@field [0] "fundamental_polyrhythm" bay12: RHYTHM_FLAG_*
133+
---@field fundamental_polymeter 1
134+
---@field [1] "fundamental_polymeter"
135+
df.rhythm_flag = {}
136+
123137
---@class (exact) df.rhythm: DFStruct
124138
---@field _type identity.rhythm
125139
---@field id number
126140
---@field patterns _rhythm_patterns
127141
---@field sub_rhythms _rhythm_sub_rhythms
128-
---@field flags df.rhythm.T_flags
142+
---@field flags df.rhythm_flag
129143

130144
---@class identity.rhythm: DFCompoundType
131145
---@field _kind 'struct-type'
@@ -175,20 +189,6 @@ function _rhythm_sub_rhythms:insert(index, item) end
175189
---@param index integer
176190
function _rhythm_sub_rhythms:erase(index) end
177191

178-
---@class df.rhythm.T_flags: DFBitfield
179-
---@field _enum identity.rhythm.flags
180-
---@field fundamental_polyrhythm boolean bay12: RHYTHM_FLAG_*
181-
---@field [0] boolean bay12: RHYTHM_FLAG_*
182-
---@field fundamental_polymeter boolean
183-
---@field [1] boolean
184-
185-
---@class identity.rhythm.flags: DFBitfieldType
186-
---@field fundamental_polyrhythm 0 bay12: RHYTHM_FLAG_*
187-
---@field [0] "fundamental_polyrhythm" bay12: RHYTHM_FLAG_*
188-
---@field fundamental_polymeter 1
189-
---@field [1] "fundamental_polymeter"
190-
df.rhythm.T_flags = {}
191-
192192
---@class (exact) df.rhythm_handlerst: DFStruct
193193
---@field _type identity.rhythm_handlerst
194194
---@field all _rhythm_handlerst_all

dist/library/structures/df.unit.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5604,7 +5604,6 @@ df.unit_usable_interactionst = {}
56045604
---@return df.unit_usable_interactionst
56055605
function df.unit_usable_interactionst:new() end
56065606

5607-
-- physical_formst
56085607
---@class (exact) df.unit_appearance: DFStruct
56095608
---@field _type identity.unit_appearance
56105609
---@field local_id number

0 commit comments

Comments
 (0)