SCITER_CREATE_WINDOW_FLAGS

Enum SCITER_CREATE_WINDOW_FLAGS 

Source
#[repr(C)]
pub enum SCITER_CREATE_WINDOW_FLAGS { SW_CHILD = 1, SW_TITLEBAR = 2, SW_RESIZEABLE = 4, SW_TOOL = 8, SW_CONTROLS = 16, SW_GLASSY = 32, SW_ALPHA = 64, SW_MAIN = 128, SW_POPUP = 256, SW_ENABLE_DEBUG = 512, SW_OWNS_VM = 1_024, }
Expand description

Window flags

Variants§

§

SW_CHILD = 1

child window only, if this flag is set all other flags ignored.

§

SW_TITLEBAR = 2

toplevel window, has titlebar.

§

SW_RESIZEABLE = 4

has resizeable frame.

§

SW_TOOL = 8

is tool window.

§

SW_CONTROLS = 16

has minimize / maximize buttons.

§

SW_GLASSY = 32

glassy window - “Acrylic” on Windows and “Vibrant” on macOS.

§

SW_ALPHA = 64

transparent window (e.g. WS_EX_LAYERED on Windows, macOS is supported too).

§

SW_MAIN = 128

main window of the app, will terminate the app on close.

§

SW_POPUP = 256

the window is created as topmost window.

§

SW_ENABLE_DEBUG = 512

make this window inspector ready.

§

SW_OWNS_VM = 1_024

it has its own script VM.

Trait Implementations§

Source§

impl BitOr for SCITER_CREATE_WINDOW_FLAGS

Flags can be OR’ed as SW_MAIN|SW_ALPHA.

Source§

type Output = SCITER_CREATE_WINDOW_FLAGS

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self::Output) -> Self::Output

Performs the | operation. Read more
Source§

impl Default for SCITER_CREATE_WINDOW_FLAGS

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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.