We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UiBuilder
There are too many helpers for building child Uis:
Ui
ui.add_visible_ui
ui.scope
ui.with_layout
ui.push_id
ui.push_stack_info
There are also a few setting you can set, which would be better set once at creating, and never changed:
We should create a UiBuilder for creating new Uis, using a builder-pattern.
Optional settings include:
Then we can start deprecating some functions on Ui
The text was updated successfully, but these errors were encountered:
Group
Create a UiBuilder for building Uis (#4969)
5a196f6
* Part of #4634 The goals is to create fewer, more powerful entry points. ### Added * `egui::UiBuilder` * `Ui::allocate_new_ui` * `Ui::new_child` ### Breaking changes * `Ui::new` now takes a `UiBuilder` * Deprecated * `ui.add_visible_ui` * `ui.allocate_ui_at_rect` * `ui.child_ui` * `ui.child_ui_with_id_source` * `ui.push_stack_info`
Create a UiBuilder for building Uis (emilk#4969)
e3d6813
* Part of emilk#4634 The goals is to create fewer, more powerful entry points. ### Added * `egui::UiBuilder` * `Ui::allocate_new_ui` * `Ui::new_child` ### Breaking changes * `Ui::new` now takes a `UiBuilder` * Deprecated * `ui.add_visible_ui` * `ui.allocate_ui_at_rect` * `ui.child_ui` * `ui.child_ui_with_id_source` * `ui.push_stack_info`
No branches or pull requests
Problem
There are too many helpers for building child
Ui
s:ui.add_visible_ui
ui.scope
ui.with_layout
ui.push_id
ui.push_stack_info
There are also a few setting you can set, which would be better set once at creating, and never changed:
Solution
We should create a
UiBuilder
for creating newUi
s, using a builder-pattern.Optional settings include:
Then we can start deprecating some functions on
Ui
The text was updated successfully, but these errors were encountered: