Cleanup embed subwindows getters
This commit is contained in:
parent
47c35f5b96
commit
3c53752b4a
5 changed files with 8 additions and 19 deletions
|
|
@ -3040,14 +3040,10 @@ Viewport *Viewport::get_parent_viewport() const {
|
|||
return get_parent()->get_viewport();
|
||||
}
|
||||
|
||||
void Viewport::set_embed_subwindows_hint(bool p_embed) {
|
||||
void Viewport::set_embedding_subwindows(bool p_embed) {
|
||||
gui.embed_subwindows_hint = p_embed;
|
||||
}
|
||||
|
||||
bool Viewport::get_embed_subwindows_hint() const {
|
||||
return gui.embed_subwindows_hint;
|
||||
}
|
||||
|
||||
bool Viewport::is_embedding_subwindows() const {
|
||||
return gui.embed_subwindows_hint;
|
||||
}
|
||||
|
|
@ -3638,8 +3634,7 @@ void Viewport::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_default_canvas_item_texture_filter", "mode"), &Viewport::set_default_canvas_item_texture_filter);
|
||||
ClassDB::bind_method(D_METHOD("get_default_canvas_item_texture_filter"), &Viewport::get_default_canvas_item_texture_filter);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_embed_subwindows_hint", "enable"), &Viewport::set_embed_subwindows_hint);
|
||||
ClassDB::bind_method(D_METHOD("get_embed_subwindows_hint"), &Viewport::get_embed_subwindows_hint);
|
||||
ClassDB::bind_method(D_METHOD("set_embedding_subwindows", "enable"), &Viewport::set_embedding_subwindows);
|
||||
ClassDB::bind_method(D_METHOD("is_embedding_subwindows"), &Viewport::is_embedding_subwindows);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_default_canvas_item_texture_repeat", "mode"), &Viewport::set_default_canvas_item_texture_repeat);
|
||||
|
|
@ -3721,7 +3716,7 @@ void Viewport::_bind_methods() {
|
|||
ADD_GROUP("GUI", "gui_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_disable_input"), "set_disable_input", "is_input_disabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_snap_controls_to_pixels"), "set_snap_controls_to_pixels", "is_snap_controls_to_pixels_enabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_embed_subwindows"), "set_embed_subwindows_hint", "get_embed_subwindows_hint");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_embed_subwindows"), "set_embedding_subwindows", "is_embedding_subwindows");
|
||||
ADD_GROUP("SDF", "sdf_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "sdf_oversize", PROPERTY_HINT_ENUM, "100%,120%,150%,200%"), "set_sdf_oversize", "get_sdf_oversize");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "sdf_scale", PROPERTY_HINT_ENUM, "100%,50%,25%"), "set_sdf_scale", "get_sdf_scale");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue