[][src]Struct qt_widgets::q_opengl_widget::UpdateBehavior

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

This enum describes the update semantics of QOpenGLWidget.

C++ enum: QOpenGLWidget::UpdateBehavior.

C++ documentation:

This enum describes the update semantics of QOpenGLWidget.

This enum was introduced or modified in Qt 5.5.

See also updateBehavior() and setUpdateBehavior().

Methods

impl UpdateBehavior[src]

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

impl UpdateBehavior[src]

pub const NoPartialUpdate: UpdateBehavior[src]

QOpenGLWidget will discard the contents of the color buffer and the ancillary buffers after the QOpenGLWidget is rendered to screen. This is the same behavior that can be expected by calling QOpenGLContext::swapBuffers with a default opengl enabled QWindow as the argument. NoPartialUpdate can have some performance benefits on certain hardware architectures common in the mobile and embedded space when a framebuffer object is used as the rendering target. The framebuffer object is invalidated between frames with glDiscardFramebufferEXT if supported or a glClear. Please see the documentation of EXT_discard_framebuffer for more information: https://www.khronos.org/registry/gles/extensions/EXT/EXT_discard_framebuffer.txt (C++ enum variant: NoPartialUpdate = 0)

pub const PartialUpdate: UpdateBehavior[src]

The framebuffer objects color buffer and ancillary buffers are not invalidated between frames. (C++ enum variant: PartialUpdate = 1)

Trait Implementations

impl Eq for UpdateBehavior[src]

impl Clone for UpdateBehavior[src]

impl PartialEq<UpdateBehavior> for UpdateBehavior[src]

impl From<i32> for UpdateBehavior[src]

impl From<UpdateBehavior> for c_int[src]

impl Copy for UpdateBehavior[src]

impl Debug for UpdateBehavior[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

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