[][src]Struct qt_gui::QOpenGLDebugMessage

#[repr(C)]pub struct QOpenGLDebugMessage { /* fields omitted */ }

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.

Methods

impl QOpenGLDebugMessage[src]

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

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.

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

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().

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

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().

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

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().

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

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().

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

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().

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

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().

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

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().

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

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().

pub unsafe fn id(&self) -> u32[src]

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.

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

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.

pub unsafe fn new() -> CppBox<QOpenGLDebugMessage>[src]

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().

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

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=().

pub unsafe fn severity(&self) -> Severity[src]

Returns the severity of the debug message.

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

C++ documentation:

Returns the severity of the debug message.

pub unsafe fn source(&self) -> Source[src]

Returns the source of the debug message.

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

C++ documentation:

Returns the source of the debug message.

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

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.

pub unsafe fn type_(&self) -> Type[src]

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

impl CppDeletable for QOpenGLDebugMessage[src]

unsafe fn delete(&self)[src]

Destroys this debug message.

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

C++ documentation:

Destroys this debug message.

impl PartialEq<Ref<QOpenGLDebugMessage>> for QOpenGLDebugMessage[src]

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

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!=().

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, 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.