[][src]Struct qt_gui::q_opengl_window::UpdateBehavior

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

This enum describes the update strategy of the QOpenGLWindow.

C++ enum: QOpenGLWindow::UpdateBehavior.

C++ documentation:

This enum describes the update strategy of the QOpenGLWindow.

Methods

impl UpdateBehavior[src]

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

impl UpdateBehavior[src]

pub const NoPartialUpdate: UpdateBehavior[src]

Indicates that the entire window surface will redrawn on each update and so no additional framebuffers are needed. This is the setting used in most cases and is equivalent to how drawing directly via QWindow would function. (C++ enum variant: NoPartialUpdate = 0)

pub const PartialUpdateBlit: UpdateBehavior[src]

Indicates that the drawing performed in paintGL() does not cover the entire window. In this case an extra framebuffer object is created under the hood, and rendering performed in paintGL() will target this framebuffer. This framebuffer is then blitted onto the window surface's default framebuffer after each paint. This allows having QPainter-based drawing code in paintGL() which only repaints a smaller area at a time, because, unlike NoPartialUpdate, the previous content is preserved. (C++ enum variant: PartialUpdateBlit = 1)

pub const PartialUpdateBlend: UpdateBehavior[src]

Similar to PartialUpdateBlit, but instead of using framebuffer blits, the contents of the extra framebuffer is rendered by drawing a textured quad with blending enabled. This, unlike PartialUpdateBlit, allows alpha blended content and works even when the glBlitFramebuffer is not available. Performance-wise this setting is likely to be somewhat slower than PartialUpdateBlit. (C++ enum variant: PartialUpdateBlend = 2)

Trait Implementations

impl Clone for UpdateBehavior[src]

impl Copy for UpdateBehavior[src]

impl Debug for UpdateBehavior[src]

impl Eq for UpdateBehavior[src]

impl From<UpdateBehavior> for c_int[src]

impl From<i32> for UpdateBehavior[src]

impl PartialEq<UpdateBehavior> for UpdateBehavior[src]

impl StructuralEq for UpdateBehavior[src]

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