diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:29:54 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:29:54 -0300 |
commit | ab22203791489df160c36a29a3cd8aa8b32bec04 (patch) | |
tree | b534f9c0f3cc4e71708deebb0107a61f1216f930 /scene/gui/control.cpp | |
parent | b3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (diff) | |
download | redot-engine-ab22203791489df160c36a29a3cd8aa8b32bec04.tar.gz |
misc cleanup
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index a1c0644650..bd6b8078ff 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2713,6 +2713,21 @@ void Control::warp_mouse(const Point2& p_to_pos) { get_viewport()->warp_mouse(get_global_transform().xform(p_to_pos)); } + +bool Control::is_text_field() const { +/* + if (get_script_instance()) { + Variant v=p_point; + const Variant *p[2]={&v,&p_data}; + Variant::CallError ce; + Variant ret = get_script_instance()->call("is_text_field",p,2,ce); + if (ce.error==Variant::CallError::CALL_OK) + return ret; + } + */ + return false; +} + void Control::_bind_methods() { ObjectTypeDB::bind_method(_MD("_window_input_event"),&Control::_window_input_event); |