Struct luminance_windowing::WindowOpt[][src]

pub struct WindowOpt {
    pub dim: WindowDim,
    pub num_samples: Option<u32>,
}
👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Expand description

Different window options.

Feel free to look at the different methods available to tweak the options. You may want to start with default(), though.

Fields

dim: WindowDim
👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Dimension of the window.

num_samples: Option<u32>
👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Number of samples for multisampling.

None means no multisampling.

Implementations

👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Set the dimension of the window.

👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Get the dimension of the window.

👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Set the number of samples to use for multisampling.

Pass None to disable multisampling.

👎 Deprecated:

luminance-windowing is not maintained anymore; please directly use the platform crates from now on

Get the number of samples to use in multisampling, if any.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Defaults:

  • dim: set to WindowDim::Windowed { width: 960, 540 }`.
  • num_samples set to None.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.