#[repr(C)]
pub struct QOpenGLDebugMessage { /* private fields */ }
Expand description

The QOpenGLDebugMessage class wraps an OpenGL debug message.

C++ class: QOpenGLDebugMessage.

C++ documentation:

The QOpenGLDebugMessage class wraps an OpenGL debug message.

Debug messages are usually created by the OpenGL server and then read by OpenGL clients (either from the OpenGL internal debug log, or logged in real-time). A debug message has a textual representation, a vendor-specific numeric id, a source, a type and a severity.

It's also possible for applications or third-party libraries and toolkits to create and insert messages in the debug log. In order to do so, you can use the createApplicationMessage() or the createThirdPartyMessage() static functions.

Implementations§

source§

impl QOpenGLDebugMessage

source

pub unsafe fn copy_from( &self, debug_message: impl CastInto<Ref<QOpenGLDebugMessage>> ) -> Ref<QOpenGLDebugMessage>

Assigns the message debugMessage to this object, and returns a reference to the copy.

Calls C++ function: QOpenGLDebugMessage& QOpenGLDebugMessage::operator=(const QOpenGLDebugMessage& debugMessage).

C++ documentation:

Assigns the message debugMessage to this object, and returns a reference to the copy.

source

pub unsafe fn create_application_message_4a( text: impl CastInto<Ref<QString>>, id: u32, severity: Severity, type_: Type ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createApplicationMessage(const QString& text, GLuint id = …, QOpenGLDebugMessage::Severity severity = …, QOpenGLDebugMessage::Type type = …).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

See also QOpenGLDebugLogger::logMessage() and createThirdPartyMessage().

source

pub unsafe fn create_application_message_3a( text: impl CastInto<Ref<QString>>, id: u32, severity: Severity ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createApplicationMessage(const QString& text, GLuint id = …, QOpenGLDebugMessage::Severity severity = …).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

See also QOpenGLDebugLogger::logMessage() and createThirdPartyMessage().

source

pub unsafe fn create_application_message_2a( text: impl CastInto<Ref<QString>>, id: u32 ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createApplicationMessage(const QString& text, GLuint id = …).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

See also QOpenGLDebugLogger::logMessage() and createThirdPartyMessage().

source

pub unsafe fn create_application_message_1a( text: impl CastInto<Ref<QString>> ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createApplicationMessage(const QString& text).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ApplicationSource.

See also QOpenGLDebugLogger::logMessage() and createThirdPartyMessage().

source

pub unsafe fn create_third_party_message_4a( text: impl CastInto<Ref<QString>>, id: u32, severity: Severity, type_: Type ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createThirdPartyMessage(const QString& text, GLuint id = …, QOpenGLDebugMessage::Severity severity = …, QOpenGLDebugMessage::Type type = …).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

See also QOpenGLDebugLogger::logMessage() and createApplicationMessage().

source

pub unsafe fn create_third_party_message_3a( text: impl CastInto<Ref<QString>>, id: u32, severity: Severity ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createThirdPartyMessage(const QString& text, GLuint id = …, QOpenGLDebugMessage::Severity severity = …).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

See also QOpenGLDebugLogger::logMessage() and createApplicationMessage().

source

pub unsafe fn create_third_party_message_2a( text: impl CastInto<Ref<QString>>, id: u32 ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createThirdPartyMessage(const QString& text, GLuint id = …).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

See also QOpenGLDebugLogger::logMessage() and createApplicationMessage().

source

pub unsafe fn create_third_party_message_1a( text: impl CastInto<Ref<QString>> ) -> CppBox<QOpenGLDebugMessage>

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

Calls C++ function: static QOpenGLDebugMessage QOpenGLDebugMessage::createThirdPartyMessage(const QString& text).

C++ documentation:

Constructs and returns a debug message with text as its text, id as id, severity as severity, and type as type. The message source will be set to ThirdPartySource.

See also QOpenGLDebugLogger::logMessage() and createApplicationMessage().

source

pub unsafe fn id(&self) -> u32

Returns the id of the debug message. Ids are generally vendor-specific.

Calls C++ function: GLuint QOpenGLDebugMessage::id() const.

C++ documentation:

Returns the id of the debug message. Ids are generally vendor-specific.

source

pub unsafe fn message(&self) -> CppBox<QString>

Returns the textual message contained by this debug message.

Calls C++ function: QString QOpenGLDebugMessage::message() const.

C++ documentation:

Returns the textual message contained by this debug message.

source

pub unsafe fn new() -> CppBox<QOpenGLDebugMessage>

Constructs a debug message with an empty message string, id set to 0, source set to InvalidSource, type set to InvalidType, and severity set to InvalidSeverity.

Calls C++ function: [constructor] void QOpenGLDebugMessage::QOpenGLDebugMessage().

C++ documentation:

Constructs a debug message with an empty message string, id set to 0, source set to InvalidSource, type set to InvalidType, and severity set to InvalidSeverity.

Note: This constructor should not be used to create a debug message; instead, use the createApplicationMessage() or the createThirdPartyMessage() static functions.

See also createApplicationMessage() and createThirdPartyMessage().

source

pub unsafe fn new_copy( debug_message: impl CastInto<Ref<QOpenGLDebugMessage>> ) -> CppBox<QOpenGLDebugMessage>

Constructs a debug message as a copy of debugMessage.

Calls C++ function: [constructor] void QOpenGLDebugMessage::QOpenGLDebugMessage(const QOpenGLDebugMessage& debugMessage).

C++ documentation:

Constructs a debug message as a copy of debugMessage.

See also operator=().

source

pub unsafe fn severity(&self) -> Severity

Returns the severity of the debug message.

Calls C++ function: QOpenGLDebugMessage::Severity QOpenGLDebugMessage::severity() const.

C++ documentation:

Returns the severity of the debug message.

source

pub unsafe fn source(&self) -> Source

Returns the source of the debug message.

Calls C++ function: QOpenGLDebugMessage::Source QOpenGLDebugMessage::source() const.

C++ documentation:

Returns the source of the debug message.

source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QOpenGLDebugMessage>>)

Swaps the message debugMessage with this message. This operation is very fast and never fails.

Calls C++ function: void QOpenGLDebugMessage::swap(QOpenGLDebugMessage& other).

C++ documentation:

Swaps the message debugMessage with this message. This operation is very fast and never fails.

source

pub unsafe fn type_(&self) -> Type

Returns the type of the debug message.

Calls C++ function: QOpenGLDebugMessage::Type QOpenGLDebugMessage::type() const.

C++ documentation:

Returns the type of the debug message.

Trait Implementations§

source§

impl CppDeletable for QOpenGLDebugMessage

source§

unsafe fn delete(&self)

Destroys this debug message.

Calls C++ function: [destructor] void QOpenGLDebugMessage::~QOpenGLDebugMessage().

C++ documentation:

Destroys this debug message.

source§

impl PartialEq<Ref<QOpenGLDebugMessage>> for QOpenGLDebugMessage

source§

fn eq(&self, debug_message: &Ref<QOpenGLDebugMessage>) -> bool

Returns true if this debug message is equal to debugMessage, or false otherwise. Two debugging messages are equal if they have the same textual message, the same id, the same source, the same type and the same severity.

Calls C++ function: bool QOpenGLDebugMessage::operator==(const QOpenGLDebugMessage& debugMessage) const.

C++ documentation:

Returns true if this debug message is equal to debugMessage, or false otherwise. Two debugging messages are equal if they have the same textual message, the same id, the same source, the same type and the same severity.

See also operator!=().

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.