Struct zng_view_api::Inited
source · pub struct Inited {
pub generation: ViewProcessGen,
pub is_respawn: bool,
pub available_monitors: Vec<(MonitorId, MonitorInfo)>,
pub multi_click_config: MultiClickConfig,
pub key_repeat_config: KeyRepeatConfig,
pub touch_config: TouchConfig,
pub font_aa: FontAntiAliasing,
pub animations_config: AnimationsConfig,
pub locale_config: LocaleConfig,
pub colors_config: ColorsConfig,
pub chrome_config: ChromeConfig,
pub extensions: ApiExtensions,
}
Expand description
View process is online.
The ViewProcessGen
is the generation of the new view-process, it must be passed to
Controller::handle_inited
.
Fields§
§generation: ViewProcessGen
View-process generation, changes after respawns and is never zero.
is_respawn: bool
If the view-process is a respawn from a previous crashed process.
available_monitors: Vec<(MonitorId, MonitorInfo)>
Available monitors.
multi_click_config: MultiClickConfig
System multi-click config.
key_repeat_config: KeyRepeatConfig
System keyboard pressed key repeat start delay config.
touch_config: TouchConfig
System touch config.
font_aa: FontAntiAliasing
System font anti-aliasing config.
animations_config: AnimationsConfig
System animations config.
locale_config: LocaleConfig
System locale config.
colors_config: ColorsConfig
System preferred color scheme and colors.
chrome_config: ChromeConfig
Window chrome (decorations) preference.
extensions: ApiExtensions
API extensions implemented by the view-process.
The extension IDs will stay valid for the duration of the view-process.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Inited
impl<'de> Deserialize<'de> for Inited
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Inited
impl RefUnwindSafe for Inited
impl Send for Inited
impl Sync for Inited
impl Unpin for Inited
impl UnwindSafe for Inited
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more