pub struct Window {
pub window_id: Option<usize>,
pub create_inner_size: Option<Vec2>,
pub create_position: Option<Vec2>,
pub create_title: String,
pub create_add_drop_target_for_app_open_files: bool,
}
Expand description
A pointer to a [CxWindow
] (indexed in Cx::windows
using Window::window_id
),
Fields
window_id: Option<usize>
The id referring to [CxWindow
], once instantiated. It’s an index in Cx::windows
.
create_inner_size: Option<Vec2>
The inner dimensions of the native window when it’s created for the first time.
create_position: Option<Vec2>
The position on the screen of the native window when it’s created for the first time.
create_title: String
The title that the window will get once created.
create_add_drop_target_for_app_open_files: bool
Set to true if the window should as a drop target for a AppOpenFiles events.
TODO(JP): only works on the wasm32 and mac targets for now.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Window
impl UnwindSafe for Window
Blanket Implementations
Mutably borrows from an owned value. Read more