Rename CanvasItem.update() to queue_redraw()
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
This commit is contained in:
parent
e60086f98b
commit
e31bb5ffeb
111 changed files with 1354 additions and 1354 deletions
|
|
@ -124,7 +124,7 @@ void SplitContainer::_resort() {
|
|||
}
|
||||
}
|
||||
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
Size2 SplitContainer::get_minimum_size() const {
|
||||
|
|
@ -176,7 +176,7 @@ void SplitContainer::_notification(int p_what) {
|
|||
case NOTIFICATION_MOUSE_EXIT: {
|
||||
mouse_inside = false;
|
||||
if (get_theme_constant(SNAME("autohide"))) {
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
} break;
|
||||
|
||||
|
|
@ -256,7 +256,7 @@ void SplitContainer::gui_input(const Ref<InputEvent> &p_event) {
|
|||
if (mouse_inside != mouse_inside_state) {
|
||||
mouse_inside = mouse_inside_state;
|
||||
if (get_theme_constant(SNAME("autohide"))) {
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -333,7 +333,7 @@ void SplitContainer::set_dragger_visibility(DraggerVisibility p_visibility) {
|
|||
|
||||
dragger_visibility = p_visibility;
|
||||
queue_sort();
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
SplitContainer::DraggerVisibility SplitContainer::get_dragger_visibility() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue