diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-04-27 23:58:24 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-04-28 00:10:17 +0200 |
commit | 3a4ec88b37d50837ef9e1cfa57f004b9bd36715d (patch) | |
tree | a5cd157efce3f0fccd781c4248b0ee41b0ebd529 /scene/gui/button.cpp | |
parent | e9a5471ee1eb96d87c755c33e77aa58a2643f352 (diff) | |
download | redot-engine-3a4ec88b37d50837ef9e1cfa57f004b9bd36715d.tar.gz |
Classref: Document Button and ButtonArray
Also bind relevant constants and define some object types and better
argument names for the docs.
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r-- | scene/gui/button.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 0f3f762ba1..0f1622a838 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -227,6 +227,10 @@ void Button::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_text_align"),&Button::get_text_align); ObjectTypeDB::bind_method(_MD("is_flat"),&Button::is_flat); + BIND_CONSTANT( ALIGN_LEFT ); + BIND_CONSTANT( ALIGN_CENTER ); + BIND_CONSTANT( ALIGN_RIGHT ); + ADD_PROPERTYNZ( PropertyInfo( Variant::STRING, "text", PROPERTY_HINT_NONE,"",PROPERTY_USAGE_DEFAULT_INTL ), _SCS("set_text"),_SCS("get_text") ); ADD_PROPERTYNZ( PropertyInfo( Variant::OBJECT, "icon", PROPERTY_HINT_RESOURCE_TYPE, "Texture" ), _SCS("set_button_icon"),_SCS("get_button_icon") ); ADD_PROPERTY( PropertyInfo( Variant::BOOL, "flat" ), _SCS("set_flat"),_SCS("is_flat") ); |