Merge pull request #4300 from leezh/control_focus_mode

Exposed Control::focus_mode to the scene editor
This commit is contained in:
Rémi Verschelde 2016-06-04 14:41:36 +02:00
commit cbba9c4506
8 changed files with 46 additions and 4 deletions

View file

@ -5738,6 +5738,20 @@
Return the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the DRAW_* enum.
</description>
</method>
<method name="set_enabled_focus_mode">
<argument index="0" name="mode" type="int">
</argument>
<description>
Sets the focus access mode to use when switching between enabled/disabled (see [method Control.set_focus_mode] and [method set_disabled]).
</description>
</method>
<method name="get_enabled_focus_mode" qualifiers="const">
<return type="int">
</return>
<description>
Returns focus access mode used when switching between enabled/disabled (see [method Control.set_focus_mode] and [method set_disabled]).
</description>
</method>
</methods>
<signals>
<signal name="released">
@ -9171,6 +9185,13 @@
Set the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL). Only one Control can be focused at the same time, and it will receive keyboard signals.
</description>
</method>
<method name="get_focus_mode" qualifiers="const">
<return type="int">
</return>
<description>
Returns the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL) (see [method set_focus_mode]).
</description>
</method>
<method name="has_focus" qualifiers="const">
<return type="bool">
</return>