Class, that describes attribute for making text frame. More...
#include <QFramedTextAttribute.hpp>
Public Types | |
enum | Property { FramedString = 1 } |
Public Member Functions | |
void | clear (QTextCursor cursor) |
Method for clearing all frames with desired cursor. More... | |
void | drawObject (QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) override |
Method for drawing frame. More... | |
void | frame (QTextCursor cursor) |
Method for creating frame in cursor selection. More... | |
QSizeF | intrinsicSize (QTextDocument *doc, int posInDocument, const QTextFormat &format) override |
Method for getting custom element (frame) size. Though frame symbol has no size, this method returns {0, 0}. More... | |
QFramedTextAttribute & | operator= (const QFramedTextAttribute &)=delete |
QFramedTextAttribute (const QFramedTextAttribute &)=delete | |
QFramedTextAttribute (QObject *parent=nullptr) | |
Constructor. More... | |
void | setSyntaxStyle (QSyntaxStyle *style) |
Method for setting syntax style for rendering. More... | |
QSyntaxStyle * | syntaxStyle () const |
Method for getting syntax style. More... | |
Static Public Member Functions | |
static int | type () |
Static method for getting framed text attribute type. More... | |
Private Attributes | |
QSyntaxStyle * | m_style |
Class, that describes attribute for making text frame.
Definition at line 13 of file QFramedTextAttribute.hpp.
Enumerator | |
---|---|
FramedString |
Definition at line 21 of file QFramedTextAttribute.hpp.
|
explicit |
Constructor.
parent | Pointer to parent QObject. |
Definition at line 16 of file QFramedTextAttribute.cpp.
|
delete |
void QFramedTextAttribute::clear | ( | QTextCursor | cursor | ) |
Method for clearing all frames with desired cursor.
Definition at line 89 of file QFramedTextAttribute.cpp.
|
override |
Method for drawing frame.
Definition at line 38 of file QFramedTextAttribute.cpp.
void QFramedTextAttribute::frame | ( | QTextCursor | cursor | ) |
Method for creating frame in cursor selection.
cursor | Cursor. |
Definition at line 66 of file QFramedTextAttribute.cpp.
|
override |
Method for getting custom element (frame) size. Though frame symbol has no size, this method returns {0, 0}.
Definition at line 33 of file QFramedTextAttribute.cpp.
|
delete |
void QFramedTextAttribute::setSyntaxStyle | ( | QSyntaxStyle * | style | ) |
Method for setting syntax style for rendering.
Definition at line 23 of file QFramedTextAttribute.cpp.
QSyntaxStyle * QFramedTextAttribute::syntaxStyle | ( | ) | const |
Method for getting syntax style.
Definition at line 28 of file QFramedTextAttribute.cpp.
|
static |
Static method for getting framed text attribute type.
Definition at line 11 of file QFramedTextAttribute.cpp.
|
private |
Definition at line 86 of file QFramedTextAttribute.hpp.