[−][src]Struct ggez::conf::WindowSetup
A builder structure containing window settings that must be set at init time and cannot be changed afterwards.
Defaults:
WindowSetup { title: "An easy, good game".to_owned(), samples: NumSamples::Zero, vsync: true, icon: "".to_owned(), srgb: true, }
Fields
title: String
The window title.
samples: NumSamples
Number of samples to use for multisample anti-aliasing.
vsync: bool
Whether or not to enable vsync.
icon: String
A file path to the window's icon.
It takes a path rooted in the resources
directory (see the filesystem
module for details), and an empty string results in a blank/default icon.
srgb: bool
Whether or not to enable sRGB (gamma corrected color) handling on the display.
Methods
impl WindowSetup
[src]
pub fn title(self, title: &str) -> Self
[src]
Set window title.
pub fn samples(self, samples: NumSamples) -> Self
[src]
Set number of samples to use for multisample anti-aliasing.
pub fn vsync(self, vsync: bool) -> Self
[src]
Set whether vsync is enabled.
pub fn icon(self, icon: &str) -> Self
[src]
Set the window's icon.
pub fn srgb(self, active: bool) -> Self
[src]
Set sRGB color mode.
Trait Implementations
impl PartialEq<WindowSetup> for WindowSetup
[src]
fn eq(&self, other: &WindowSetup) -> bool
[src]
fn ne(&self, other: &WindowSetup) -> bool
[src]
impl Clone for WindowSetup
[src]
fn clone(&self) -> WindowSetup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for WindowSetup
[src]
fn default() -> Self
[src]
Return WindowSetup { title: String :: from ( "An easy, good game" ), samples: NumSamples :: Zero, vsync: true, icon: String :: new ( ), srgb: true }
impl Debug for WindowSetup
[src]
impl Serialize for WindowSetup
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for WindowSetup
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for WindowSetup
impl Sync for WindowSetup
impl Send for WindowSetup
impl RefUnwindSafe for WindowSetup
impl UnwindSafe for WindowSetup
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.