pub struct AppInfo {
pub name: String,
pub version: String,
pub description: String,
pub licences: Vec<String>,
pub authors: Vec<String>,
pub repository: Option<String>,
pub website: Option<String>,
pub docs: Option<String>,
pub issues: Option<String>,
pub issue_form: Option<String>,
pub renderer: Option<String>,
pub icon: Option<IconFn>,
}Expand description
What the application says about itself: the host fills it.
Fields§
§name: StringIts name; empty: the application’s (AppBuilder::name).
version: StringIts version, typically env!("CARGO_PKG_VERSION").
description: StringWhat it is, in one line.
licences: Vec<String>Its licences, as SPDX expressions (MIT OR Apache-2.0).
repository: Option<String>Its source code.
website: Option<String>§docs: Option<String>§issues: Option<String>Where to report a problem: the issue list
(https://github.com/owner/repo/issues). Set, help.report
opens a new issue under it, prefilled.
issue_form: Option<String>The repository’s issue form help.report fills (bug.yml, in
.github/ISSUE_TEMPLATE/), its fields named as
report’s FIELD_*; without it, the report goes in the body.
renderer: Option<String>What draws the interface (wgpu: Vulkan, llvmpipe), for the
version info; the host knows it.
icon: Option<IconFn>Its icon, drawn at the top of the dialog.
Implementations§
Source§impl AppInfo
impl AppInfo
pub fn new(name: &str, version: &str) -> Self
pub fn description(self, text: &str) -> Self
pub fn repository(self, url: &str) -> Self
pub fn website(self, url: &str) -> Self
pub fn docs(self, url: &str) -> Self
Sourcepub fn issues(self, url: &str) -> Self
pub fn issues(self, url: &str) -> Self
Where to report a problem: the issue list. It turns
help.report on.
Sourcepub fn issue_form(self, file: &str) -> Self
pub fn issue_form(self, file: &str) -> Self
The issue form help.report fills (bug.yml).
pub fn renderer(self, renderer: &str) -> Self
Sourcepub fn icon(self, f: impl Fn(&mut Ui, f32) + Send + Sync + 'static) -> Self
pub fn icon(self, f: impl Fn(&mut Ui, f32) + Send + Sync + 'static) -> Self
The icon, drawn by f in a square of the side it is given.
Sourcepub fn platform() -> String
pub fn platform() -> String
Where the application runs: the operating system and the
architecture, or the web with the browser and its operating
system, read from the user agent (web (wasm32), Firefox 132 on Linux).
Sourcepub fn version_info(&self) -> String
pub fn version_info(&self) -> String
The version info, as plain text for a bug report: the application and its version, egui-pop’s and egui’s, the platform, the renderer when known.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppInfo
impl !RefUnwindSafe for AppInfo
impl Send for AppInfo
impl Sync for AppInfo
impl Unpin for AppInfo
impl UnsafeUnpin for AppInfo
impl !UnwindSafe for AppInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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>
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>
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