diff options
| author | Rémi Verschelde | 2017-02-13 15:46:17 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-13 15:46:17 +0100 |
| commit | ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378 (patch) | |
| tree | 65ed57ff55cadd49b881e248e2f87331ca5eee28 /scene/gui/texture_rect.cpp | |
| parent | f6859fd31b5c3cc1a112b7f77b3c1783df8c8919 (diff) | |
| parent | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (diff) | |
| download | godot-ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378.tar.gz godot-ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378.tar.zst godot-ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378.zip | |
Diffstat (limited to 'scene/gui/texture_rect.cpp')
| -rw-r--r-- | scene/gui/texture_rect.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/gui/texture_rect.cpp b/scene/gui/texture_rect.cpp index b943ee978..f2fe3eae1 100644 --- a/scene/gui/texture_rect.cpp +++ b/scene/gui/texture_rect.cpp @@ -103,12 +103,12 @@ Size2 TextureRect::get_minimum_size() const { void TextureRect::_bind_methods() { - ClassDB::bind_method(_MD("set_texture","texture"), & TextureRect::set_texture ); - ClassDB::bind_method(_MD("get_texture"), & TextureRect::get_texture ); - ClassDB::bind_method(_MD("set_expand","enable"), & TextureRect::set_expand ); - ClassDB::bind_method(_MD("has_expand"), & TextureRect::has_expand ); - ClassDB::bind_method(_MD("set_stretch_mode","stretch_mode"), & TextureRect::set_stretch_mode ); - ClassDB::bind_method(_MD("get_stretch_mode"), & TextureRect::get_stretch_mode ); + ClassDB::bind_method(D_METHOD("set_texture","texture"), & TextureRect::set_texture ); + ClassDB::bind_method(D_METHOD("get_texture"), & TextureRect::get_texture ); + ClassDB::bind_method(D_METHOD("set_expand","enable"), & TextureRect::set_expand ); + ClassDB::bind_method(D_METHOD("has_expand"), & TextureRect::has_expand ); + ClassDB::bind_method(D_METHOD("set_stretch_mode","stretch_mode"), & TextureRect::set_stretch_mode ); + ClassDB::bind_method(D_METHOD("get_stretch_mode"), & TextureRect::get_stretch_mode ); ADD_PROPERTYNZ( PropertyInfo( Variant::OBJECT, "texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture"), "set_texture", "get_texture"); ADD_PROPERTYNZ( PropertyInfo( Variant::BOOL, "expand" ), "set_expand","has_expand"); |
