SCITER_RT_OPTIONS

Enum SCITER_RT_OPTIONS 

Source
#[repr(C)]
pub enum SCITER_RT_OPTIONS {
Show 15 variants SCITER_SMOOTH_SCROLL = 1, SCITER_CONNECTION_TIMEOUT = 2, SCITER_HTTPS_ERROR = 3, SCITER_FONT_SMOOTHING = 4, SCITER_TRANSPARENT_WINDOW = 6, SCITER_SET_GPU_BLACKLIST = 7, SCITER_SET_SCRIPT_RUNTIME_FEATURES = 8, SCITER_SET_GFX_LAYER = 9, SCITER_SET_DEBUG_MODE = 10, SCITER_SET_UX_THEMING = 11, SCITER_ALPHA_WINDOW = 12, SCITER_SET_INIT_SCRIPT = 13, SCITER_SET_MAIN_WINDOW = 14, SCITER_SET_MAX_HTTP_DATA_LENGTH = 15, SCITER_SET_PX_AS_DIP = 16,
}
Expand description

Various Sciter engine options (global or per-window).

Variants§

§

SCITER_SMOOTH_SCROLL = 1

value:TRUE - enable, value:FALSE - disable, enabled by default.

§

SCITER_CONNECTION_TIMEOUT = 2

global; value: milliseconds, connection timeout of http client.

§

SCITER_HTTPS_ERROR = 3

global; value: 0 - drop connection, 1 - use builtin dialog, 2 - accept connection silently.

§

SCITER_FONT_SMOOTHING = 4

value: 0 - system default, 1 - no smoothing, 2 - std smoothing, 3 - clear type.

§

SCITER_TRANSPARENT_WINDOW = 6

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

§

SCITER_SET_GPU_BLACKLIST = 7

👎Deprecated since 4.0.1: This option isn’t working since Sciter 4.0.1.1.

global; value = LPCBYTE, json - GPU black list, see: gpu-blacklist.json resource. Note: is not used since Sciter 4.

§

SCITER_SET_SCRIPT_RUNTIME_FEATURES = 8

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

§

SCITER_SET_GFX_LAYER = 9

global (must be called before any window creation); value - GFX_LAYER.

§

SCITER_SET_DEBUG_MODE = 10

global or per-window; value - TRUE/FALSE

§

SCITER_SET_UX_THEMING = 11

global; value - BOOL, TRUE - the engine will use “unisex” theme that is common for all platforms. That UX theme is not using OS primitives for rendering input elements. Use it if you want exactly the same (modulo fonts) look-n-feel on all platforms.

§

SCITER_ALPHA_WINDOW = 12

value - TRUE/FALSE - window uses per pixel alpha (e.g. WS_EX_LAYERED/UpdateLayeredWindow() window).

§

SCITER_SET_INIT_SCRIPT = 13

global; value: UTF-8 encoded script source to be loaded into each view before any other script execution.

§

SCITER_SET_MAIN_WINDOW = 14

per-window; value - TRUE/FALSE - window is main, will destroy all other dependent windows on close.

§

SCITER_SET_MAX_HTTP_DATA_LENGTH = 15

global; value - max request length in megabytes (1024*1024 bytes).

§

SCITER_SET_PX_AS_DIP = 16

global or per-window; value 1 - 1px in CSS is treated as 1dip, value 0 - default behavior - 1px is a physical pixel.

Trait Implementations§

Source§

impl Debug for SCITER_RT_OPTIONS

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SCITER_RT_OPTIONS

Source§

fn eq(&self, other: &SCITER_RT_OPTIONS) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for SCITER_RT_OPTIONS

Source§

fn partial_cmp(&self, other: &SCITER_RT_OPTIONS) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for SCITER_RT_OPTIONS

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.