logo
pub enum Options {
    SmoothScroll(bool),
    FontSmoothing(u8),
    TransparentWindow(bool),
    AlphaWindow(bool),
    DebugMode(bool),
    ScriptFeatures(u8),
    MainWindow(bool),
    LogicalPixel(bool),
}
Expand description

Per-window Sciter engine options.

Used by Window::set_options().

See also global options.

Variants

SmoothScroll(bool)

Enable smooth scrolling, enabled by default.

FontSmoothing(u8)

Font rendering, value: 0 - system default, 1 - no smoothing, 2 - standard smoothing, 3 - ClearType.

TransparentWindow(bool)

Windows Aero support, value: false - normal drawing, true - window has transparent background after calls DwmExtendFrameIntoClientArea() or DwmEnableBlurBehindWindow().

AlphaWindow(bool)

Transparent windows support. When enabled, window uses per pixel alpha (e.g. WS_EX_LAYERED window).

DebugMode(bool)

global or per-window; enables Sciter Inspector for this window, must be called before loading HTML.

ScriptFeatures(u8)

global or per-window; value: combination of SCRIPT_RUNTIME_FEATURES flags.

MainWindow(bool)

Window is main, will destroy all other dependent windows on close, since 4.3.0.12

LogicalPixel(bool)

global or per-window; value: true - 1px in CSS is treated as 1dip, otherwise 1px is a physical pixel (by default).

since 4.4.5.0.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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 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.