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

exposing Side publicly and renaming to PanelSide to avoid conflict

This commit is contained in:
Bruno Paré-Simard
2025-01-30 14:42:37 -05:00
parent db99eb3187
commit eca13ab379
3 changed files with 61 additions and 61 deletions

View File

@@ -1,6 +1,6 @@
use egui::emath::Rot2;
use egui::panel::HorizontalSide;
use egui::panel::Side;
use egui::panel::PanelSide;
use egui::panel::VerticalSide;
use egui::ImageFit;
use egui::Slider;
@@ -53,7 +53,7 @@ impl Default for ImageViewer {
impl eframe::App for ImageViewer {
fn update(&mut self, ctx: &egui::Context, _: &mut eframe::Frame) {
egui::Panel::new(Side::Horizontal(HorizontalSide::Top), "url bar").show(
egui::Panel::new(PanelSide::Horizontal(HorizontalSide::Top), "url bar").show(
ctx,
|ui| {
ui.horizontal_centered(|ui| {
@@ -77,7 +77,7 @@ impl eframe::App for ImageViewer {
},
);
egui::Panel::new(Side::Vertical(VerticalSide::Left), "controls").show(ctx, |ui| {
egui::Panel::new(PanelSide::Vertical(VerticalSide::Left), "controls").show(ctx, |ui| {
// uv
ui.label("UV");
ui.add(Slider::new(&mut self.image_options.uv.min.x, 0.0..=1.0).text("min x"));