mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
Add text_metrics args on change text scale text event
This commit is contained in:
parent
0368260d16
commit
2196cc3e17
@ -10,7 +10,7 @@
|
|||||||
--- On set text callback(self, text)
|
--- On set text callback(self, text)
|
||||||
-- @tfield DruidEvent on_set_text @{DruidEvent}
|
-- @tfield DruidEvent on_set_text @{DruidEvent}
|
||||||
|
|
||||||
--- On adjust text size callback(self, new_scale)
|
--- On adjust text size callback(self, new_scale, text_metrics)
|
||||||
-- @tfield DruidEvent on_update_text_scale @{DruidEvent}
|
-- @tfield DruidEvent on_update_text_scale @{DruidEvent}
|
||||||
|
|
||||||
--- On change pivot callback(self, pivot)
|
--- On change pivot callback(self, pivot)
|
||||||
@ -100,7 +100,7 @@ local function update_text_area_size(self)
|
|||||||
|
|
||||||
update_text_size(self)
|
update_text_size(self)
|
||||||
|
|
||||||
self.on_update_text_scale:trigger(self:get_context(), new_scale)
|
self.on_update_text_scale:trigger(self:get_context(), new_scale, metrics)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user