Struct sciter::window::Builder
[−]
[src]
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();
Methods
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: (i32, i32, i32, i32)) -> 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.
pub fn alpha(self) -> Self
[src]
Transparent window.
pub fn create(self) -> Window
[src]
Consume the builder and call Window::create()
with built parameters.