mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
Add a lot more documentation
This commit is contained in:
@@ -263,7 +263,7 @@ fn generic_ui(ui: &mut egui::Ui, children: &[Arc<RwLock<ViewportState>>]) {
|
||||
if ctx.viewport_id() != ctx.parent_viewport_id() {
|
||||
let parent = ctx.parent_viewport_id();
|
||||
if ui.button("Set parent pos 0,0").clicked() {
|
||||
ctx.viewport_command_for(
|
||||
ctx.send_viewport_command_to(
|
||||
parent,
|
||||
egui::ViewportCommand::OuterPosition(egui::pos2(0.0, 0.0)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user