Skip to content

Commit

Permalink
List Control::has_point as a virtual method
Browse files Browse the repository at this point in the history
According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h.

classes.xml was updated to also list this method in Control.

(cherry picked from commit 9589936)
  • Loading branch information
taylorhansen authored and akien-mga committed Mar 18, 2017
1 parent a9d8da9 commit 10119f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/base/classes.xml
Expand Up @@ -9852,6 +9852,14 @@
<description>
</description>
</method>
<method name="has_point" qualifiers="virtual">
<return type="bool">
</return>
<argument index="0" name="point" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="has_stylebox" qualifiers="const">
<return type="bool">
</return>
Expand Down
2 changes: 2 additions & 0 deletions scene/gui/control.cpp
Expand Up @@ -2392,6 +2392,8 @@ void Control::_bind_methods() {
ADD_SIGNAL(MethodInfo("size_flags_changed"));
ADD_SIGNAL(MethodInfo("minimum_size_changed"));
ADD_SIGNAL(MethodInfo("modal_close"));

BIND_VMETHOD(MethodInfo("has_point", PropertyInfo(Variant::VECTOR2, "point")));
}
Control::Control() {

Expand Down

0 comments on commit 10119f7

Please sign in to comment.