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 color_scheme: ColorScheme,
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: ViewProcessGenView-process generation, changes after respawns and is never zero.
is_respawn: boolIf the view-process is a respawn from a previous crashed process.
available_monitors: Vec<(MonitorId, MonitorInfo)>Available monitors.
multi_click_config: MultiClickConfigSystem multi-click config.
key_repeat_config: KeyRepeatConfigSystem keyboard pressed key repeat start delay config.
touch_config: TouchConfigSystem touch config.
font_aa: FontAntiAliasingSystem font anti-aliasing config.
animations_config: AnimationsConfigSystem animations config.
locale_config: LocaleConfigSystem locale config.
color_scheme: ColorSchemeSystem preferred color scheme.
extensions: ApiExtensionsAPI 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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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