pub struct ContextAttributes {
pub alpha: bool,
pub antialias: bool,
pub depth: bool,
pub fail_if_major_performance_caveat: bool,
pub power_preference: String,
pub premultiplied_alpha: bool,
pub preserve_drawing_buffer: bool,
pub stencil: bool,
pub desynchronized: bool,
}Expand description
WebGL context attributes returned by getContextAttributes().
Fields§
§alpha: boolAlpha channel enabled.
antialias: boolAnti-aliasing enabled.
depth: boolDepth buffer enabled.
fail_if_major_performance_caveat: boolFail if major performance caveat.
power_preference: StringPower preference.
premultiplied_alpha: boolPremultiplied alpha.
preserve_drawing_buffer: boolPreserve drawing buffer.
stencil: boolStencil buffer.
desynchronized: boolDesynchronized.
Trait Implementations§
Source§impl Clone for ContextAttributes
impl Clone for ContextAttributes
Source§fn clone(&self) -> ContextAttributes
fn clone(&self) -> ContextAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextAttributes
impl Debug for ContextAttributes
Source§impl Default for ContextAttributes
impl Default for ContextAttributes
Source§impl<'de> Deserialize<'de> for ContextAttributes
impl<'de> Deserialize<'de> for ContextAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextAttributes
impl PartialEq for ContextAttributes
Source§impl Serialize for ContextAttributes
impl Serialize for ContextAttributes
impl Eq for ContextAttributes
impl StructuralPartialEq for ContextAttributes
Auto Trait Implementations§
impl Freeze for ContextAttributes
impl RefUnwindSafe for ContextAttributes
impl Send for ContextAttributes
impl Sync for ContextAttributes
impl Unpin for ContextAttributes
impl UnsafeUnpin for ContextAttributes
impl UnwindSafe for ContextAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.