[−][src]Struct qt_gui::QOpenGLContextGroup
The QOpenGLContextGroup class represents a group of contexts sharing OpenGL resources.
C++ class: QOpenGLContextGroup
.
The QOpenGLContextGroup class represents a group of contexts sharing OpenGL resources.
QOpenGLContextGroup is automatically created and managed by QOpenGLContext instances. Its purpose is to identify all the contexts that are sharing resources.
Methods
impl QOpenGLContextGroup
[src]
pub unsafe fn current_context_group() -> QPtr<QOpenGLContextGroup>
[src]
Returns the QOpenGLContextGroup corresponding to the current context.
Calls C++ function: static QOpenGLContextGroup* QOpenGLContextGroup::currentContextGroup()
.
Returns the QOpenGLContextGroup corresponding to the current context.
See also QOpenGLContext::currentContext().
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QOpenGLContextGroup::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int QOpenGLContextGroup::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* QOpenGLContextGroup::qt_metacast(const char* arg1)
.
pub unsafe fn shares(&self) -> CppBox<QListOfQOpenglContext>
[src]
Returns all the QOpenGLContext objects in this share group.
Calls C++ function: QList<QOpenGLContext*> QOpenGLContextGroup::shares() const
.
Returns all the QOpenGLContext objects in this share group.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QOpenGLContextGroup::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QOpenGLContextGroup::trUtf8(const char* s, const char* c, int n)
.
Trait Implementations
impl CppDeletable for QOpenGLContextGroup
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void QOpenGLContextGroup::~QOpenGLContextGroup()
.
impl Deref for QOpenGLContextGroup
[src]
type Target = QObject
The resulting type after dereferencing.
fn deref(&self) -> &QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(QOpenGLContextGroup* ptr)
.
impl DynamicCast<QOpenGLContextGroup> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QOpenGLContextGroup>
[src]
Calls C++ function: QOpenGLContextGroup* dynamic_cast<QOpenGLContextGroup*>(QObject* ptr)
.
impl StaticDowncast<QOpenGLContextGroup> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QOpenGLContextGroup>
[src]
Calls C++ function: QOpenGLContextGroup* static_cast<QOpenGLContextGroup*>(QObject* ptr)
.
impl StaticUpcast<QObject> for QOpenGLContextGroup
[src]
unsafe fn static_upcast(ptr: Ptr<QOpenGLContextGroup>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QOpenGLContextGroup* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QOpenGLContextGroup
impl Send for QOpenGLContextGroup
impl Sync for QOpenGLContextGroup
impl Unpin for QOpenGLContextGroup
impl UnwindSafe for QOpenGLContextGroup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<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>,