Struct macroquad::window::Conf

source ·
pub struct Conf {
    pub window_title: String,
    pub window_width: i32,
    pub window_height: i32,
    pub high_dpi: bool,
    pub fullscreen: bool,
    pub sample_count: i32,
    pub window_resizable: bool,
    pub icon: Option<Icon>,
    pub platform: Platform,
}

Fields§

§window_title: String

Title of the window, defaults to an empty string.

§window_width: i32

The preferred width of the window, ignored on wasm/android.

Default: 800

§window_height: i32

The preferred height of the window, ignored on wasm/android.

Default: 600

§high_dpi: bool

Whether the rendering canvas is full-resolution on HighDPI displays.

Default: false

§fullscreen: bool

Whether the window should be created in fullscreen mode, ignored on wasm/android.

Default: false

§sample_count: i32

MSAA sample count

Default: 1

§window_resizable: bool

Determines if the application user can resize the window

§icon: Option<Icon>

Miniquad allows to change the window icon programmatically. The icon will be used as

  • taskbar and titlebar icons on Windows.
  • TODO: favicon on HTML5
  • TODO: taskbar and titlebar(highly dependent on the WM) icons on Linux
  • TODO: dock and titlebar icon on MacOs
§platform: Platform

Platform specific settings. Hints to OS for context creation, driver-specific settings etc.

Trait Implementations§

source§

impl Debug for Conf

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Conf

source§

fn default() -> Conf

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Conf

§

impl Send for Conf

§

impl Sync for Conf

§

impl Unpin for Conf

§

impl UnwindSafe for Conf

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> ToSample<U> for Twhere U: FromSample<T>,

§

fn to_sample_(self) -> U

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>,