mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
Make popup related data structures internal to the window module
This commit is contained in:
parent
b835290f83
commit
64588c70f1
1 changed files with 4 additions and 4 deletions
|
@ -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.
|
/// 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.
|
/// The popup is rendered in its own top-level window that is know to the windowing system.
|
||||||
TopLevel(Rc<dyn WindowAdapter>),
|
TopLevel(Rc<dyn WindowAdapter>),
|
||||||
/// The popup is rendered as an embedded child window at the given position.
|
/// 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
|
/// This structure defines a graphical element that is designed to pop up from the surrounding
|
||||||
/// UI content, for example to show a context menu.
|
/// UI content, for example to show a context menu.
|
||||||
pub struct PopupWindow {
|
struct PopupWindow {
|
||||||
/// The location defines where the pop up is rendered.
|
/// The location defines where the pop up is rendered.
|
||||||
pub location: PopupWindowLocation,
|
location: PopupWindowLocation,
|
||||||
/// The component that is responsible for providing the popup content.
|
/// The component that is responsible for providing the popup content.
|
||||||
pub component: ComponentRc,
|
component: ComponentRc,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Inner datastructure for the [`crate::api::Window`]
|
/// Inner datastructure for the [`crate::api::Window`]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue