Struct qt_gui::QTextBlockUserData
source · #[repr(C)]pub struct QTextBlockUserData { /* private fields */ }
Expand description
The QTextBlockUserData class is used to associate custom data with blocks of text.
C++ class: QTextBlockUserData
.
The QTextBlockUserData class is used to associate custom data with blocks of text.
QTextBlockUserData provides an abstract interface for container classes that are used to associate application-specific user data with text blocks in a QTextDocument.
Generally, subclasses of this class provide functions to allow data to be stored and retrieved, and instances are attached to blocks of text using QTextBlock::setUserData(). This makes it possible to store additional data per text block in a way that can be retrieved safely by the application.
Each subclass should provide a reimplementation of the destructor to ensure that any private data is automatically cleaned up when user data objects are deleted.
Implementations§
source§impl QTextBlockUserData
impl QTextBlockUserData
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextBlockUserData>>
) -> Ref<QTextBlockUserData>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextBlockUserData>> ) -> Ref<QTextBlockUserData>
The QTextBlockUserData class is used to associate custom data with blocks of text.
Calls C++ function: QTextBlockUserData& QTextBlockUserData::operator=(const QTextBlockUserData& other)
.
The QTextBlockUserData class is used to associate custom data with blocks of text.
QTextBlockUserData provides an abstract interface for container classes that are used to associate application-specific user data with text blocks in a QTextDocument.
Generally, subclasses of this class provide functions to allow data to be stored and retrieved, and instances are attached to blocks of text using QTextBlock::setUserData(). This makes it possible to store additional data per text block in a way that can be retrieved safely by the application.
Each subclass should provide a reimplementation of the destructor to ensure that any private data is automatically cleaned up when user data objects are deleted.
sourcepub unsafe fn new() -> CppBox<QTextBlockUserData>
pub unsafe fn new() -> CppBox<QTextBlockUserData>
The QTextBlockUserData class is used to associate custom data with blocks of text.
Calls C++ function: [constructor] void QTextBlockUserData::QTextBlockUserData()
.
The QTextBlockUserData class is used to associate custom data with blocks of text.
QTextBlockUserData provides an abstract interface for container classes that are used to associate application-specific user data with text blocks in a QTextDocument.
Generally, subclasses of this class provide functions to allow data to be stored and retrieved, and instances are attached to blocks of text using QTextBlock::setUserData(). This makes it possible to store additional data per text block in a way that can be retrieved safely by the application.
Each subclass should provide a reimplementation of the destructor to ensure that any private data is automatically cleaned up when user data objects are deleted.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextBlockUserData>>
) -> CppBox<QTextBlockUserData>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextBlockUserData>> ) -> CppBox<QTextBlockUserData>
The QTextBlockUserData class is used to associate custom data with blocks of text.
Calls C++ function: [constructor] void QTextBlockUserData::QTextBlockUserData(const QTextBlockUserData& other)
.
The QTextBlockUserData class is used to associate custom data with blocks of text.
QTextBlockUserData provides an abstract interface for container classes that are used to associate application-specific user data with text blocks in a QTextDocument.
Generally, subclasses of this class provide functions to allow data to be stored and retrieved, and instances are attached to blocks of text using QTextBlock::setUserData(). This makes it possible to store additional data per text block in a way that can be retrieved safely by the application.
Each subclass should provide a reimplementation of the destructor to ensure that any private data is automatically cleaned up when user data objects are deleted.