[][src]Struct qt_gui::q_opengl_buffer::RangeAccessFlag

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

This enum defines the access mode bits for QOpenGLBuffer::mapRange().

C++ enum: QOpenGLBuffer::RangeAccessFlag.

C++ documentation:

This enum defines the access mode bits for QOpenGLBuffer::mapRange().

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

Methods

impl RangeAccessFlag[src]

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

impl RangeAccessFlag[src]

pub const RangeRead: RangeAccessFlag[src]

The buffer will be mapped for reading. (C++ enum variant: RangeRead = 1)

pub const RangeWrite: RangeAccessFlag[src]

The buffer will be mapped for writing. (C++ enum variant: RangeWrite = 2)

pub const RangeInvalidate: RangeAccessFlag[src]

Discard the previous contents of the specified range. (C++ enum variant: RangeInvalidate = 4)

pub const RangeInvalidateBuffer: RangeAccessFlag[src]

Discard the previous contents of the entire buffer. (C++ enum variant: RangeInvalidateBuffer = 8)

pub const RangeFlushExplicit: RangeAccessFlag[src]

Indicates that modifications are to be flushed explicitly via glFlushMappedBufferRange. (C++ enum variant: RangeFlushExplicit = 16)

pub const RangeUnsynchronized: RangeAccessFlag[src]

Indicates that pending operations should not be synchronized before returning from mapRange(). (C++ enum variant: RangeUnsynchronized = 32)

Trait Implementations

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

type Output = QFlags<RangeAccessFlag>

The resulting type after applying the | operator.

impl Clone for RangeAccessFlag[src]

impl Copy for RangeAccessFlag[src]

impl Debug for RangeAccessFlag[src]

impl Eq for RangeAccessFlag[src]

impl From<RangeAccessFlag> for c_int[src]

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

impl From<i32> for RangeAccessFlag[src]

impl PartialEq<RangeAccessFlag> for RangeAccessFlag[src]

impl StructuralEq for RangeAccessFlag[src]

impl StructuralPartialEq for RangeAccessFlag[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.