Struct iced::settings::Settings [−][src]
The settings of an application.
Fields
window: Settings
The window settings.
They will be ignored on the Web.
flags: Flags
The data needed to initialize an Application
.
default_font: Option<&'static [u8]>
The bytes of the font that will be used by default.
If None
is provided, a default system font will be chosen.
default_text_size: u16
The text size that will be used by default.
The default value is 20.
exit_on_close_request: bool
Whether the [Application
] should exit when the user requests the
window to close (e.g. the user presses the close button).
antialiasing: bool
If set to true, the renderer will try to perform antialiasing for some primitives.
Enabling it can produce a smoother result in some widgets, like the
Canvas
, at a performance cost.
By default, it is disabled.
Implementations
impl<Flags> Settings<Flags>
[src]
pub fn with_flags(flags: Flags) -> Self
[src]
Initialize Application
settings using the given data.
Trait Implementations
impl<Flags: Clone> Clone for Settings<Flags>
[src]
impl<Flags: Debug> Debug for Settings<Flags>
[src]
impl<Flags> Default for Settings<Flags> where
Flags: Default,
[src]
Flags: Default,
Auto Trait Implementations
impl<Flags> RefUnwindSafe for Settings<Flags> where
Flags: RefUnwindSafe,
Flags: RefUnwindSafe,
impl<Flags> Send for Settings<Flags> where
Flags: Send,
Flags: Send,
impl<Flags> Sync for Settings<Flags> where
Flags: Sync,
Flags: Sync,
impl<Flags> Unpin for Settings<Flags> where
Flags: Unpin,
Flags: Unpin,
impl<Flags> UnwindSafe for Settings<Flags> where
Flags: UnwindSafe,
Flags: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,