Skip to main content

WindowOptions

Struct WindowOptions 

Source
pub struct WindowOptions {
Show 13 fields pub animation: bool, pub capture_excluded: bool, pub click_through: bool, pub minimize_button: bool, pub maximize_button: bool, pub backdrop: WindowBackdrop, pub title_color: Option<Color>, pub title_text_color: Option<Color>, pub border_color: Option<Color>, pub shadow: bool, pub blur: bool, pub no_activate: bool, pub alt_tab: bool,
}
Expand description

O que o componente WindowSettings configura na janela de um form: os recursos que só alguns sistemas têm, num lugar só (pedido do autor em 16/11). Onde o sistema não tem o recurso, o valor não faz nada.

Fields§

§animation: bool

A animação do sistema ao abrir, minimizar e restaurar (Windows).

§capture_excluded: bool

Fora das capturas de tela e das gravações (Windows e macOS).

§click_through: bool

O mouse atravessa a janela (os cliques vão para o que está atrás).

§minimize_button: bool

Os botões minimizar e maximizar da barra do sistema (Windows e macOS).

§maximize_button: bool§backdrop: WindowBackdrop

O fundo do sistema por trás do conteúdo (Windows 11).

§title_color: Option<Color>

As cores da barra de título do sistema, do texto dela e da borda (Windows 11; None: as do sistema).

§title_text_color: Option<Color>§border_color: Option<Color>§shadow: bool

A sombra do sistema na janela sem borda (Windows).

§blur: bool

O que está atrás da janela sai desfocado (Windows, macOS e Linux com KDE). Com o form transparente (transparent, window_shape) e o fundo com alfa, é o vidro fosco; no Windows, o desfoque segue a forma do form, com a borda suave.

§no_activate: bool

Clicar na janela não tira o foco de onde ele está (Windows).

§alt_tab: bool

A janela aparece no Alt+Tab (Windows; false também a tira da barra de tarefas).

Trait Implementations§

Source§

impl Clone for WindowOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WindowOptions

Source§

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

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

impl Default for WindowOptions

Source§

fn default() -> Self

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

impl PartialEq for WindowOptions

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WindowOptions

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.