[][src]Struct qt_gui::q_surface_format::FormatOption

#[repr(transparent)]pub struct FormatOption(_);

This enum contains format options for use with QSurfaceFormat.

C++ enum: QSurfaceFormat::FormatOption.

C++ documentation:

This enum contains format options for use with QSurfaceFormat.

The FormatOptions type is a typedef for QFlags<FormatOption>. It stores an OR combination of FormatOption values.

Methods

impl FormatOption[src]

pub fn to_int(&self) -> c_int[src]

impl FormatOption[src]

pub const StereoBuffers: FormatOption[src]

Used to request stereo buffers in the surface format. (C++ enum variant: StereoBuffers = 1)

pub const DebugContext: FormatOption[src]

Used to request a debug context with extra debugging information. (C++ enum variant: DebugContext = 2)

pub const DeprecatedFunctions: FormatOption[src]

Used to request that deprecated functions be included in the OpenGL context profile. If not specified, you should get a forward compatible context without support functionality marked as deprecated. This requires OpenGL version 3.0 or higher. (C++ enum variant: DeprecatedFunctions = 4)

pub const ResetNotification: FormatOption[src]

Enables notifications about resets of the OpenGL context. The status is then queryable via the context's isValid() function. Note that not setting this flag does not guarantee that context state loss never occurs. Additionally, some implementations may choose to report context loss regardless of this flag. (C++ enum variant: ResetNotification = 8)

Trait Implementations

impl<T: Into<QFlags<FormatOption>>> BitOr<T> for FormatOption[src]

type Output = QFlags<FormatOption>

The resulting type after applying the | operator.

impl Clone for FormatOption[src]

impl Copy for FormatOption[src]

impl Debug for FormatOption[src]

impl Eq for FormatOption[src]

impl From<FormatOption> for c_int[src]

impl From<FormatOption> for QFlags<FormatOption>[src]

impl From<i32> for FormatOption[src]

impl PartialEq<FormatOption> for FormatOption[src]

impl StructuralEq for FormatOption[src]

impl StructuralPartialEq for FormatOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.