mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Add private annotation
This commit is contained in:
@@ -113,6 +113,7 @@ function M:init(click_node, text_node, keyboard_type)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
---@param style druid.input.style
|
||||
function M:on_style_change(style)
|
||||
self.style = {
|
||||
@@ -127,6 +128,7 @@ function M:on_style_change(style)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
---@param action_id hash|nil The action id
|
||||
---@param action action The action
|
||||
---@return boolean is_consume True if the action is consumed
|
||||
|
@@ -36,6 +36,7 @@ function M:init(node_or_node_id, on_swipe_callback)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
function M:on_late_init()
|
||||
if not self.click_zone then
|
||||
local stencil_node = helper.get_closest_stencil_node(self.node)
|
||||
@@ -46,6 +47,7 @@ function M:on_late_init()
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
---@param style druid.swipe.style
|
||||
function M:on_style_change(style)
|
||||
self.style = {
|
||||
@@ -56,6 +58,7 @@ function M:on_style_change(style)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
---@param action_id hash The action id
|
||||
---@param action action The action table
|
||||
---@return boolean is_consumed True if the input was consumed
|
||||
@@ -90,6 +93,7 @@ function M:on_input(action_id, action)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
function M:on_input_interrupt()
|
||||
self:_reset_swipe()
|
||||
end
|
||||
|
@@ -42,6 +42,7 @@ function M:init(node, seconds_from, seconds_to, callback)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
function M:update(dt)
|
||||
if not self.is_on then
|
||||
return
|
||||
@@ -65,6 +66,7 @@ function M:update(dt)
|
||||
end
|
||||
|
||||
|
||||
---@private
|
||||
function M:on_layout_change()
|
||||
self:set_to(self.last_value)
|
||||
end
|
||||
|
Reference in New Issue
Block a user