Merge pull request #32605 from dankan1890/get_custom_color

Added missing bind_method to TreeItem::get_custom_color().
This commit is contained in:
Rémi Verschelde 2019-10-07 07:21:03 +02:00 committed by GitHub
commit 41aac7c2df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -120,6 +120,15 @@
Returns the custom background color of column [code]column[/code]. Returns the custom background color of column [code]column[/code].
</description> </description>
</method> </method>
<method name="get_custom_color" qualifiers="const">
<return type="Color">
</return>
<argument index="0" name="column" type="int">
</argument>
<description>
Returns the custom color of column [code]column[/code].
</description>
</method>
<method name="get_expand_right" qualifiers="const"> <method name="get_expand_right" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>

View file

@ -827,6 +827,7 @@ void TreeItem::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_custom_color", "column", "color"), &TreeItem::set_custom_color); ClassDB::bind_method(D_METHOD("set_custom_color", "column", "color"), &TreeItem::set_custom_color);
ClassDB::bind_method(D_METHOD("clear_custom_color", "column"), &TreeItem::clear_custom_color); ClassDB::bind_method(D_METHOD("clear_custom_color", "column"), &TreeItem::clear_custom_color);
ClassDB::bind_method(D_METHOD("get_custom_color", "column"), &TreeItem::get_custom_color);
ClassDB::bind_method(D_METHOD("set_custom_bg_color", "column", "color", "just_outline"), &TreeItem::set_custom_bg_color, DEFVAL(false)); ClassDB::bind_method(D_METHOD("set_custom_bg_color", "column", "color", "just_outline"), &TreeItem::set_custom_bg_color, DEFVAL(false));
ClassDB::bind_method(D_METHOD("clear_custom_bg_color", "column"), &TreeItem::clear_custom_bg_color); ClassDB::bind_method(D_METHOD("clear_custom_bg_color", "column"), &TreeItem::clear_custom_bg_color);