1
0
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:
Emil Ernerfeldt
2023-11-16 10:25:02 +01:00
parent 26f0c2a222
commit 82863f8ec2
5 changed files with 69 additions and 12 deletions

View File

@@ -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)),
);