1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Move viewports stuff to crates/egui/src/viewports.rs

This commit is contained in:
Konkitoman
2023-08-07 19:02:18 +03:00
parent ee2f2a7986
commit d45fc14a13
12 changed files with 513 additions and 509 deletions

View File

@@ -1,6 +1,6 @@
use eframe::egui;
use eframe::egui::window::ViewportBuilder;
use eframe::egui::Id;
use eframe::egui::ViewportBuilder;
use eframe::NativeOptions;
#[cfg(feature = "wgpu")]
@@ -94,7 +94,7 @@ fn main() {
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
ctx.viewport_command(
ctx.get_viewport_id(),
egui::window::ViewportCommand::Drag,
egui::ViewportCommand::Drag,
)
} else {
ctx.memory_mut(|mem| {
@@ -140,7 +140,7 @@ fn main() {
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
ctx.viewport_command(
ctx.get_viewport_id(),
egui::window::ViewportCommand::Drag,
egui::ViewportCommand::Drag,
)
} else {
ctx.memory_mut(|mem| {
@@ -177,7 +177,7 @@ fn main() {
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
ctx.viewport_command(
ctx.get_viewport_id(),
egui::window::ViewportCommand::Drag,
egui::ViewportCommand::Drag,
)
} else {
ctx.memory_mut(|mem| {