summaryrefslogtreecommitdiff
path: root/doc/base
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-07-11 02:26:58 -0300
committerGitHub <noreply@github.com>2016-07-11 02:26:58 -0300
commitb41be2d1a9210d03be0817871ead7aa0f8657716 (patch)
tree120f0aa240041a1e1408ceca74e85b8806989c3c /doc/base
parent9397458cc0a37f4899a0dba5352a6e045ed123d8 (diff)
parent605193b22fc61913d00b4ba4801c0283646b3a00 (diff)
Merge pull request #4854 from Razzlegames/screenToLocal
Conversion function for screen coords to local Canvas coords
Diffstat (limited to 'doc/base')
-rw-r--r--doc/base/classes.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index b5384cfc2b..91c768ef42 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -7339,6 +7339,22 @@
</description>
</method>
<method name="update">
+ <method name="make_screen_coord_local" qualifiers="const">
+ <return type="Vector2">
+ </return>
+ <argument index="0" name="screen_point" type="Vector2">
+ </argument>
+ <description>
+ Take a 2d screen point and convert to 2D local coords relative to this Canvas
+ item. If this CanvasItem is the root of a Scene, its essentially the
+ world coords for that scene.
+ </description>
+ </method>
+ <method name="make_input_local" qualifiers="const">
+ <return type="InputEvent">
+ </return>
+ <argument index="0" name="event" type="InputEvent">
+ </argument>
<description>
Queue the CanvasItem for update. [code]NOTIFICATION_DRAW[/code] will be called on idle time to request redraw.
</description>