[−][src]Struct qt_widgets::q_opengl_widget::UpdateBehavior
This enum describes the update semantics of QOpenGLWidget.
C++ enum: QOpenGLWidget::UpdateBehavior
.
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]
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]
fn clone(&self) -> UpdateBehavior
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<UpdateBehavior> for UpdateBehavior
[src]
fn eq(&self, other: &UpdateBehavior) -> bool
[src]
fn ne(&self, other: &UpdateBehavior) -> bool
[src]
impl From<i32> for UpdateBehavior
[src]
impl From<UpdateBehavior> for c_int
[src]
fn from(value: UpdateBehavior) -> Self
[src]
impl Copy for UpdateBehavior
[src]
impl Debug for UpdateBehavior
[src]
Auto Trait Implementations
impl Send for UpdateBehavior
impl Unpin for UpdateBehavior
impl Sync for UpdateBehavior
impl UnwindSafe for UpdateBehavior
impl RefUnwindSafe for UpdateBehavior
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,