From 64588c70f1c41d35e005f2835cf2f28a91dff23f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 1 Nov 2022 10:55:25 +0100 Subject: [PATCH] Make popup related data structures internal to the window module --- internal/core/window.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/core/window.rs b/internal/core/window.rs index 8a120e31c..207b2621e 100644 --- a/internal/core/window.rs +++ b/internal/core/window.rs @@ -178,7 +178,7 @@ impl crate::properties::PropertyDirtyHandler for WindowRedrawTracker { } /// This enum describes the different ways a popup can be rendered by the back-end. -pub enum PopupWindowLocation { +enum PopupWindowLocation { /// The popup is rendered in its own top-level window that is know to the windowing system. TopLevel(Rc), /// The popup is rendered as an embedded child window at the given position. @@ -187,11 +187,11 @@ pub enum PopupWindowLocation { /// This structure defines a graphical element that is designed to pop up from the surrounding /// UI content, for example to show a context menu. -pub struct PopupWindow { +struct PopupWindow { /// The location defines where the pop up is rendered. - pub location: PopupWindowLocation, + location: PopupWindowLocation, /// The component that is responsible for providing the popup content. - pub component: ComponentRc, + component: ComponentRc, } /// Inner datastructure for the [`crate::api::Window`]