diff options
author | Nolan Darilek <nolan@thewordnerd.info> | 2019-09-04 09:47:47 -0500 |
---|---|---|
committer | Nolan Darilek <nolan@thewordnerd.info> | 2019-09-26 10:41:02 -0500 |
commit | 5629a006d998dcae59fbd6d89a13703427351abd (patch) | |
tree | 3d7f0acf3a7e51646227e6b4530f9ed5398d8161 /doc | |
parent | 02ca4c49fa3a089e48718b26276660895cdb0cf6 (diff) |
#14011: Implement `TreeItem.get_button_tooltip(column, idx)`.
When added to `TreeItem`, buttons are given tooltips. When returned via `get_button(...)`, however, the button is a `Texture` and the tooltip information isn't included.
For accessibility purposes, it is useful to have access to the tooltip text. As such, we can retrieve a button's tooltip to use as a button label.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/TreeItem.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index 04deae6bf5..fe70c2fdac 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -84,6 +84,15 @@ Returns the number of buttons in column [code]column[/code]. May be used to get the most recently added button's index, if no index was specified. </description> </method> + <method name="get_button_tooltip" qualifiers="const"> + <return type="String"> + </return> + <argument index="0" name="column" type="int"> + </argument> + <description> + Returns the tooltip for the button in column [code]column[/code]. + </description> + </method> <method name="get_cell_mode" qualifiers="const"> <return type="int" enum="TreeItem.TreeCellMode"> </return> |