diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-17 08:37:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 08:37:00 +0100 |
commit | 28774e652e4d656bdeec7bb0c26f7451297b5cb0 (patch) | |
tree | b501abfd1458d633d21ffef0cbe1937b2781bbe9 /doc/classes/OptionButton.xml | |
parent | 3f8acba18d02aa6e12b19046700e9d6231581589 (diff) | |
parent | a635ecf6d497347d81905d551cec24fd011761fb (diff) |
Merge pull request #59227 from timothyqiu/option-button-tooltip
Add item tooltip access to `OptionButton`
Diffstat (limited to 'doc/classes/OptionButton.xml')
-rw-r--r-- | doc/classes/OptionButton.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml index f65925f0f6..69e6d4b74c 100644 --- a/doc/classes/OptionButton.xml +++ b/doc/classes/OptionButton.xml @@ -74,6 +74,13 @@ Returns the text of the item at index [code]idx[/code]. </description> </method> + <method name="get_item_tooltip" qualifiers="const"> + <return type="String" /> + <argument index="0" name="idx" type="int" /> + <description> + Returns the tooltip of the item at index [code]idx[/code]. + </description> + </method> <method name="get_popup" qualifiers="const"> <return type="PopupMenu" /> <description> @@ -156,6 +163,14 @@ Sets the text of the item at index [code]idx[/code]. </description> </method> + <method name="set_item_tooltip"> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tooltip" type="String" /> + <description> + Sets the tooltip of the item at index [code]idx[/code]. + </description> + </method> </methods> <members> <member name="action_mode" type="int" setter="set_action_mode" getter="get_action_mode" overrides="BaseButton" enum="BaseButton.ActionMode" default="0" /> |