[][src]Struct sciter::window::Builder

pub struct Builder { /* fields omitted */ }

Builder pattern for window creation.

For example,

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

Implementations

impl Builder[src]

pub fn main_window() -> Self[src]

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

pub fn popup_window() -> Self[src]

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

pub fn child_window() -> Self[src]

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

pub fn none() -> Self[src]

If you want to start from scratch.

pub fn with_flags(flags: Flags) -> Self[src]

Start with some flags.

pub fn main() -> Self[src]

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

pub fn popup() -> Self[src]

Popup style, window is created as topmost.

pub fn tool() -> Self[src]

Tool window style (with thin titlebar).

pub fn with_parent(self, parent: HWINDOW) -> Self[src]

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

pub fn with_size(self, size: (i32, i32)) -> Self[src]

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

pub fn with_pos(self, position: (i32, i32)) -> Self[src]

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

pub fn with_rect(self, rect: Rectangle) -> Self[src]

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

pub fn with_title(self) -> Self[src]

Top level window, has titlebar.

pub fn resizeable(self) -> Self[src]

Can be resized.

pub fn fixed(self) -> Self[src]

Can not be resized.

pub fn closeable(self) -> Self[src]

Has minimize / maximize buttons.

pub fn glassy(self) -> Self[src]

Glassy window ("Acrylic" on Windows and "Vibrant" on macOS).

pub fn alpha(self) -> Self[src]

Transparent window.

pub fn debug(self) -> Self[src]

Can be debugged with Inspector.

pub fn create(self) -> Window[src]

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

Trait Implementations

impl Default for Builder[src]

Auto Trait Implementations

impl RefUnwindSafe for Builder

impl !Send for Builder

impl !Sync for Builder

impl Unpin for Builder

impl UnwindSafe for Builder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.