/**************************************************************************/ /* style_box_texture.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ // THIS FILE IS GENERATED. EDITS WILL BE LOST. #include #include #include #include #include namespace godot { void StyleBoxTexture::set_texture(const Ref &p_texture) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_texture")._native_ptr(), 4051416890); CHECK_METHOD_BIND(_gde_method_bind); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, (p_texture != nullptr ? &p_texture->_owner : nullptr)); } Ref StyleBoxTexture::get_texture() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_texture")._native_ptr(), 3635182373); CHECK_METHOD_BIND_RET(_gde_method_bind, (Ref())); return Ref::_gde_internal_constructor(::godot::internal::_call_native_mb_ret_obj(_gde_method_bind, _owner)); } void StyleBoxTexture::set_texture_margin(Side p_margin, float p_size) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_texture_margin")._native_ptr(), 4290182280); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_margin_encoded; PtrToArg::encode(p_margin, &p_margin_encoded); double p_size_encoded; PtrToArg::encode(p_size, &p_size_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_margin_encoded, &p_size_encoded); } void StyleBoxTexture::set_texture_margin_all(float p_size) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_texture_margin_all")._native_ptr(), 373806689); CHECK_METHOD_BIND(_gde_method_bind); double p_size_encoded; PtrToArg::encode(p_size, &p_size_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_size_encoded); } float StyleBoxTexture::get_texture_margin(Side p_margin) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_texture_margin")._native_ptr(), 2869120046); CHECK_METHOD_BIND_RET(_gde_method_bind, (0.0)); int64_t p_margin_encoded; PtrToArg::encode(p_margin, &p_margin_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_margin_encoded); } void StyleBoxTexture::set_expand_margin(Side p_margin, float p_size) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_expand_margin")._native_ptr(), 4290182280); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_margin_encoded; PtrToArg::encode(p_margin, &p_margin_encoded); double p_size_encoded; PtrToArg::encode(p_size, &p_size_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_margin_encoded, &p_size_encoded); } void StyleBoxTexture::set_expand_margin_all(float p_size) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_expand_margin_all")._native_ptr(), 373806689); CHECK_METHOD_BIND(_gde_method_bind); double p_size_encoded; PtrToArg::encode(p_size, &p_size_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_size_encoded); } float StyleBoxTexture::get_expand_margin(Side p_margin) const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_expand_margin")._native_ptr(), 2869120046); CHECK_METHOD_BIND_RET(_gde_method_bind, (0.0)); int64_t p_margin_encoded; PtrToArg::encode(p_margin, &p_margin_encoded); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner, &p_margin_encoded); } void StyleBoxTexture::set_region_rect(const Rect2 &p_region) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_region_rect")._native_ptr(), 2046264180); CHECK_METHOD_BIND(_gde_method_bind); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_region); } Rect2 StyleBoxTexture::get_region_rect() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_region_rect")._native_ptr(), 1639390495); CHECK_METHOD_BIND_RET(_gde_method_bind, (Rect2())); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } void StyleBoxTexture::set_draw_center(bool p_enable) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_draw_center")._native_ptr(), 2586408642); CHECK_METHOD_BIND(_gde_method_bind); int8_t p_enable_encoded; PtrToArg::encode(p_enable, &p_enable_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_enable_encoded); } bool StyleBoxTexture::is_draw_center_enabled() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("is_draw_center_enabled")._native_ptr(), 36873697); CHECK_METHOD_BIND_RET(_gde_method_bind, (false)); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } void StyleBoxTexture::set_modulate(const Color &p_color) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_modulate")._native_ptr(), 2920490490); CHECK_METHOD_BIND(_gde_method_bind); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_color); } Color StyleBoxTexture::get_modulate() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_modulate")._native_ptr(), 3444240500); CHECK_METHOD_BIND_RET(_gde_method_bind, (Color())); return ::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } void StyleBoxTexture::set_h_axis_stretch_mode(StyleBoxTexture::AxisStretchMode p_mode) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_h_axis_stretch_mode")._native_ptr(), 2965538783); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_mode_encoded; PtrToArg::encode(p_mode, &p_mode_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_mode_encoded); } StyleBoxTexture::AxisStretchMode StyleBoxTexture::get_h_axis_stretch_mode() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_h_axis_stretch_mode")._native_ptr(), 3807744063); CHECK_METHOD_BIND_RET(_gde_method_bind, (StyleBoxTexture::AxisStretchMode(0))); return (StyleBoxTexture::AxisStretchMode)::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } void StyleBoxTexture::set_v_axis_stretch_mode(StyleBoxTexture::AxisStretchMode p_mode) { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("set_v_axis_stretch_mode")._native_ptr(), 2965538783); CHECK_METHOD_BIND(_gde_method_bind); int64_t p_mode_encoded; PtrToArg::encode(p_mode, &p_mode_encoded); ::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_mode_encoded); } StyleBoxTexture::AxisStretchMode StyleBoxTexture::get_v_axis_stretch_mode() const { static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(StyleBoxTexture::get_class_static()._native_ptr(), StringName("get_v_axis_stretch_mode")._native_ptr(), 3807744063); CHECK_METHOD_BIND_RET(_gde_method_bind, (StyleBoxTexture::AxisStretchMode(0))); return (StyleBoxTexture::AxisStretchMode)::godot::internal::_call_native_mb_ret(_gde_method_bind, _owner); } } // namespace godot