logo
pub struct Builder { /* private fields */ }
Expand description

Builder pattern for window creation.

For example,

let mut frame = sciter::window::Builder::main_window()
  .with_size((800,600))
  .resizeable()
  .glassy()
  .create();

Implementations

Main application window (resizeable with min/max buttons and title). Will terminate the app on close.

Popup window (with min/max buttons and title).

Child window style. if this flag is set all other flags are ignored.

If you want to start from scratch.

Start with some flags.

Main window style (appears in taskbar). Will terminate the app on close.

Popup style, window is created as topmost.

Tool window style (with thin titlebar).

Specify the parent window (e.g. for child creation).

Specify the precise window size in (width, height) form.

Specify the precise window position in (X, Y) form.

Specify the exact window rectangle in (X, Y, W, H) form.

Top level window, has titlebar.

Can be resized.

Can not be resized.

Has minimize / maximize buttons.

Glassy window (“Acrylic” on Windows and “Vibrant” on macOS).

Transparent window.

Can be debugged with Inspector.

Consume the builder and call Window::create() with built parameters.

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.