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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.