Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
QFramedTextAttribute Class Reference

Class, that describes attribute for making text frame. More...

#include <QFramedTextAttribute.hpp>

Inheritance diagram for QFramedTextAttribute:
Inheritance graph
[legend]

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

QSyntaxStylem_style
 

Detailed Description

Class, that describes attribute for making text frame.

Definition at line 13 of file QFramedTextAttribute.hpp.

Member Enumeration Documentation

◆ Property

Enumerator
FramedString 

Definition at line 21 of file QFramedTextAttribute.hpp.

Constructor & Destructor Documentation

◆ QFramedTextAttribute() [1/2]

QFramedTextAttribute::QFramedTextAttribute ( QObject *  parent = nullptr)
explicit

Constructor.

Parameters
parentPointer to parent QObject.

Definition at line 16 of file QFramedTextAttribute.cpp.

◆ QFramedTextAttribute() [2/2]

QFramedTextAttribute::QFramedTextAttribute ( const QFramedTextAttribute )
delete

Member Function Documentation

◆ clear()

void QFramedTextAttribute::clear ( QTextCursor  cursor)

Method for clearing all frames with desired cursor.

Definition at line 89 of file QFramedTextAttribute.cpp.

◆ drawObject()

void QFramedTextAttribute::drawObject ( QPainter *  painter,
const QRectF &  rect,
QTextDocument *  doc,
int  posInDocument,
const QTextFormat &  format 
)
override

Method for drawing frame.

Definition at line 38 of file QFramedTextAttribute.cpp.

◆ frame()

void QFramedTextAttribute::frame ( QTextCursor  cursor)

Method for creating frame in cursor selection.

Parameters
cursorCursor.

Definition at line 66 of file QFramedTextAttribute.cpp.

◆ intrinsicSize()

QSizeF QFramedTextAttribute::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}.

Definition at line 33 of file QFramedTextAttribute.cpp.

◆ operator=()

QFramedTextAttribute& QFramedTextAttribute::operator= ( const QFramedTextAttribute )
delete

◆ setSyntaxStyle()

void QFramedTextAttribute::setSyntaxStyle ( QSyntaxStyle style)

Method for setting syntax style for rendering.

Definition at line 23 of file QFramedTextAttribute.cpp.

◆ syntaxStyle()

QSyntaxStyle * QFramedTextAttribute::syntaxStyle ( ) const

Method for getting syntax style.

Definition at line 28 of file QFramedTextAttribute.cpp.

◆ type()

int QFramedTextAttribute::type ( )
static

Static method for getting framed text attribute type.

Definition at line 11 of file QFramedTextAttribute.cpp.

Member Data Documentation

◆ m_style

QSyntaxStyle* QFramedTextAttribute::m_style
private

Definition at line 86 of file QFramedTextAttribute.hpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:29