#include <QGCustomText.h>
|
enum | { Type = QGraphicsItem::UserType + 130
} |
|
|
virtual QRectF | boundingRect () const override |
|
virtual void | centerAt (double cX, double cY) |
|
virtual void | centerAt (QPointF centerPos) |
|
virtual double | getHeight (void) |
|
virtual QColor | getNormalColor (void) |
|
virtual QColor | getPreColor (void) |
|
virtual QColor | getSelectColor (void) |
|
virtual double | getWidth (void) |
|
virtual void | justifyLeftAt (double cX, double cY, bool vCenter=true) |
|
virtual void | justifyLeftAt (QPointF centerPos, bool vCenter=true) |
|
virtual void | justifyRightAt (double cX, double cY, bool vCenter=true) |
|
virtual void | justifyRightAt (QPointF centerPos, bool vCenter=true) |
|
void | makeMark (Base::Vector3d v) |
|
void | makeMark (double x, double y) |
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
|
| QGCustomText (QGraphicsItem *parent=nullptr) |
|
virtual void | setColor (QColor c) |
|
void | setHighlighted (bool state) |
|
virtual void | setPrettyNormal () |
|
virtual void | setPrettyPre () |
|
virtual void | setPrettySel () |
|
virtual void | setTightBounding (bool tight) |
|
QPointF | tightBoundingAdjust () const |
|
QRectF | tightBoundingRect () const |
|
int | type () const override |
|
| ~QGCustomText () |
|
◆ anonymous enum
◆ QGCustomText()
QGCustomText::QGCustomText |
( |
QGraphicsItem * |
parent = nullptr | ) |
|
|
explicit |
◆ ~QGCustomText()
TechDrawGui::QGCustomText::~QGCustomText |
( |
| ) |
|
◆ boundingRect()
QRectF QGCustomText::boundingRect |
( |
| ) |
const |
|
overridevirtual |
References tightBounding, and tightBoundingRect().
Referenced by TechDrawGui::QGIRichAnno::boundingRect(), centerAt(), TechDrawGui::QGIWeldSymbol::customBoundingRect(), TechDrawGui::QGITile::draw(), TechDrawGui::QGIViewBalloon::drawBalloon(), TechDrawGui::QGIView::drawCaption(), TechDrawGui::QGIWeldSymbol::drawTailText(), getHeight(), getWidth(), justifyLeftAt(), justifyRightAt(), TechDrawGui::QGIHighlight::makeReference(), TechDrawGui::QGISectionLine::makeSymbolsISO(), TechDrawGui::QGISectionLine::makeSymbolsTrad(), TechDrawGui::QGITile::makeText(), TechDrawGui::QGMText::paint(), TechDrawGui::QGIViewAnnotation::rotateView(), TechDrawGui::QGIBalloonLabel::setLabelCenter(), TechDrawGui::QGIDatumLabel::setLabelCenter(), TechDrawGui::QGIBalloonLabel::setPosFromCenter(), TechDrawGui::QGIDatumLabel::setPosFromCenter(), and TechDrawGui::QGIRichAnno::setTextItem().
◆ centerAt() [1/2]
void QGCustomText::centerAt |
( |
double |
cX, |
|
|
double |
cY |
|
) |
| |
|
virtual |
◆ centerAt() [2/2]
void QGCustomText::centerAt |
( |
QPointF |
centerPos | ) |
|
|
virtual |
◆ getHeight()
double QGCustomText::getHeight |
( |
void |
| ) |
|
|
virtual |
◆ getNormalColor()
QColor QGCustomText::getNormalColor |
( |
void |
| ) |
|
|
virtual |
◆ getParmGroup()
◆ getPreColor()
QColor QGCustomText::getPreColor |
( |
void |
| ) |
|
|
virtual |
◆ getSelectColor()
QColor QGCustomText::getSelectColor |
( |
void |
| ) |
|
|
virtual |
◆ getWidth()
double QGCustomText::getWidth |
( |
void |
| ) |
|
|
virtual |
◆ hoverEnterEvent()
void QGCustomText::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ hoverLeaveEvent()
void QGCustomText::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ itemChange()
QVariant QGCustomText::itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overrideprotected |
◆ justifyLeftAt() [1/2]
void QGCustomText::justifyLeftAt |
( |
double |
cX, |
|
|
double |
cY, |
|
|
bool |
vCenter = true |
|
) |
| |
|
virtual |
◆ justifyLeftAt() [2/2]
void QGCustomText::justifyLeftAt |
( |
QPointF |
centerPos, |
|
|
bool |
vCenter = true |
|
) |
| |
|
virtual |
◆ justifyRightAt() [1/2]
void QGCustomText::justifyRightAt |
( |
double |
cX, |
|
|
double |
cY, |
|
|
bool |
vCenter = true |
|
) |
| |
|
virtual |
◆ justifyRightAt() [2/2]
void QGCustomText::justifyRightAt |
( |
QPointF |
centerPos, |
|
|
bool |
vCenter = true |
|
) |
| |
|
virtual |
◆ makeMark() [1/2]
◆ makeMark() [2/2]
void QGCustomText::makeMark |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
◆ paint()
void QGCustomText::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = nullptr |
|
) |
| |
|
overridevirtual |
◆ setColor()
void QGCustomText::setColor |
( |
QColor |
c | ) |
|
|
virtual |
References m_colCurrent, and m_colNormal.
Referenced by TechDrawGui::QGIWeldSymbol::drawTailText(), TechDrawGui::QGITile::makeText(), TechDrawGui::QGIBalloonLabel::setColor(), TechDrawGui::QGIDatumLabel::setColor(), TechDrawGui::QGITile::setPrettyNormal(), TechDrawGui::QGIWeldSymbol::setPrettyNormal(), TechDrawGui::QGITile::setPrettyPre(), TechDrawGui::QGIWeldSymbol::setPrettyPre(), TechDrawGui::QGITile::setPrettySel(), and TechDrawGui::QGIWeldSymbol::setPrettySel().
◆ setHighlighted()
void TechDrawGui::QGCustomText::setHighlighted |
( |
bool |
state | ) |
|
◆ setPrettyNormal()
void QGCustomText::setPrettyNormal |
( |
void |
| ) |
|
|
virtual |
◆ setPrettyPre()
void QGCustomText::setPrettyPre |
( |
void |
| ) |
|
|
virtual |
◆ setPrettySel()
void QGCustomText::setPrettySel |
( |
void |
| ) |
|
|
virtual |
◆ setTightBounding()
void QGCustomText::setTightBounding |
( |
bool |
tight | ) |
|
|
virtual |
◆ tightBoundingAdjust()
QPointF QGCustomText::tightBoundingAdjust |
( |
| ) |
const |
◆ tightBoundingRect()
QRectF QGCustomText::tightBoundingRect |
( |
| ) |
const |
◆ type()
int TechDrawGui::QGCustomText::type |
( |
| ) |
const |
|
override |
◆ isHighlighted
bool TechDrawGui::QGCustomText::isHighlighted |
|
protected |
◆ m_colCurrent
QColor TechDrawGui::QGCustomText::m_colCurrent |
|
protected |
◆ m_colNormal
QColor TechDrawGui::QGCustomText::m_colNormal |
|
protected |
◆ tightBounding
bool TechDrawGui::QGCustomText::tightBounding |
|
protected |
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/TechDraw/Gui/QGCustomText.h
- FreeCAD/src/Mod/TechDraw/Gui/QGCustomText.cpp