[−][src]Struct swsurface::Config
Configuration for a Surface
.
Fields
vsync: bool
Enable vertical sync.
This flag is merely a hint and may be ignored.
image_count: usize
The preferred number of swapchain images. Must be >= 1
.
This value is merely a hint and may be ignored.
align: usize
The preferred memory alignment of swapchain images.
- This value must not be zero.
- This value must be a power of two.
- This value is merely a hint and may be ignored.
scanline_align: usize
The preferred memory alignment of scanlines in swapchain images.
- This value must not be zero.
- This value must be a power of two.
- This value must be equal to or less than
align
. - This value is merely a hint and may be ignored.
opaque: bool
Specifies whether the surface is opaque or not.
If false
is specified, the content of the surface is blended over
the content below the window. The alpha values are interpreted as
pre-multiplied alpha. You also have to specify an appropriate window
creation option such as WindowBuilder::with_transparent(true)
and use
a pixel format having an alpha channel for this option to
work.
Defaults to true
.
Methods
impl Config
[src]
Trait Implementations
impl Clone for Config
[src]
impl Copy for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,