Home
last modified time | relevance | path

Searched refs:textRect (Results 1 – 25 of 1625) sorted by relevance

12345678910>>...65

/dports/graphics/qtpbfimageplugin/QtPBFImagePlugin-2.1/src/
H A Dtextpointitem.cpp63 QRectF textRect(rect); in moveTextRect() local
67 textRect.moveCenter(_pos); in moveTextRect()
71 - font().pixelSize()/4.0, textRect.height() / 2)); in moveTextRect()
78 textRect.moveTopLeft(_pos - QPointF(textRect.width() / 2, in moveTextRect()
82 textRect.moveTopLeft(_pos - QPointF(textRect.width() / 2, in moveTextRect()
87 return textRect; in moveTextRect()
123 QRectF textRect; in paint() local
139 textRect = _boundingRect; in paint()
144 st.setTextWidth(textRect.width()); in paint()
158 painter->drawStaticText(textRect.topLeft(), st); in paint()
[all …]
/dports/x11-toolkits/skinlf/skinlf-6.7/src/com/l2fprod/gui/plaf/skin/
H A DSkinRadioButtonUI.java151 textRect.x = textRect.y = textRect.width = textRect.height = 0; in paint()
196 v.paint(g, textRect); in paint()
203 textRect.x, in paint()
204 textRect.y + fm.getAscent()); in paint()
210 textRect.x + 1, in paint()
211 textRect.y + fm.getAscent() + 1); in paint()
214 textRect.x, in paint()
215 textRect.y + fm.getAscent()); in paint()
221 textRect.width > 0 && textRect.height > 0) { in paint()
222 paintFocus(g, textRect, size); in paint()
[all …]
H A DSkinButtonUI.java114 private static Rectangle textRect = new Rectangle(); field in SkinButtonUI
140 textRect.x = textRect.y = textRect.width = textRect.height = 0; in paint()
151 viewRect, iconRect, textRect, in paint()
174 v.paint(g, textRect); in paint()
177 paintText(g, c, textRect, text); in paint()
183 paintFocus(g, b, viewRect, textRect, iconRect); in paint()
251 …protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Re… in paintFocus() argument
/dports/net/kpimtextedit/kpimtextedit-21.12.3/src/texteditor/commonwidget/
H A Dtextmessageindicator.cpp92 textRect.translate(-textRect.left(), -textRect.top()); in computeTextRect()
93 textRect.adjust(0, 0, 2, 2); in computeTextRect()
95 return textRect; in computeTextRect()
101 const QRect textRect = computeTextRect(mMessage, mSymbol.width()); in computeSizeAndResize() local
102 int width = textRect.width(); in computeSizeAndResize()
103 int height = textRect.height(); in computeSizeAndResize()
165 iconXOffset = 2 + textRect.width(); in paintEvent()
189 …awText(xStartPoint + shadowOffset, yStartPoint + shadowOffset, textRect.width(), textRect.height()… in paintEvent()
193 textRect.width(), in paintEvent()
199 …painter.drawText(xStartPoint, yStartPoint, textRect.width(), textRect.height(), textDrawingFlags, … in paintEvent()
[all …]
/dports/graphics/photoflare/photoflare-1.6.8/src/tools/
H A DTextTool.cpp28 textRect = QRect(0,0,0,0); in TextToolPrivate()
32 QRect textRect; member in TextToolPrivate
60 d->textRect = fontMetrics.boundingRect(d->textRect ,Qt::TextLongestVariant, text); in setText()
64 d->textRect.moveTo(QPoint(0,image->height()/2)); in setText()
72 d->textRect.moveCenter(QPoint(image->width()-(d->textRect.width()/2),image->height()/2)); in setText()
91 painter.drawRect(d->textRect); in previewText()
93 painter.fillRect(d->textRect, Qt::gray); in previewText()
111 painter.drawText(d->textRect, d->text); in drawText()
123 d->textRect = QRect(0,0,0,0); in disconnect()
135 if(!d->textRect.contains(pos)) in onMousePress()
[all …]
/dports/multimedia/subtitlecomposer/subtitlecomposer-0.7.1/src/gui/treeview/
H A Dlinesitemdelegate.cpp110 int iconSize = qMin(textRect.width(), textRect.height()) - 3; in drawTextPrimitive()
111 QRect iconRect = QRect(textRect.right() - iconSize - 2, textRect.y() + 1, iconSize, iconSize); in drawTextPrimitive()
120 textRect.setRight(textRect.right() - iconSize); in drawTextPrimitive()
144 textRect.setLeft(textRect.right() - painter->fontMetrics().horizontalAdvance(text)); in drawTextPrimitive()
148 textRect.setLeft(textRect.left() + (textRect.width() - w) / 2); in drawTextPrimitive()
149 textRect.setRight(textRect.left() + w); in drawTextPrimitive()
159 textRect.setLeft(textRect.left() + painter->fontMetrics().horizontalAdvance(sub)); in drawTextPrimitive()
260 int iconSize = qMin(textRect.width(), textRect.height()) - 3; in paint()
261 QRect iconRect = QRect(textRect.x() + 2, textRect.y() + 1, iconSize, iconSize); in paint()
272 textRect.setX(textRect.x() + iconSize + 2); in paint()
[all …]
/dports/graphics/digikam/digikam-7.4.0/core/dplugins/editor/decorate/inserttext/
H A Dinserttextwidget.cpp84 QRect textRect; member in DigikamEditorInsertTextToolPlugin::InsertTextWidget::Private
111 d->textRect = QRect(); in InsertTextWidget()
130 d->textRect = QRect(); in resetEdit()
195 if (d->textRect.isValid()) in setPositionHint()
199 d->textRect = QRect(); in setPositionHint()
209 if (d->textRect.isValid()) in getPositionHint()
231 if (d->textRect.isValid()) in makeInsertText()
269 if (d->textRect.isValid()) in makePixmap()
320 d->textRect.setX(textRect.x() + d->rect.x()); in makePixmap()
321 d->textRect.setY(textRect.y() + d->rect.y()); in makePixmap()
[all …]
/dports/graphics/mandelbulber/mandelbulber2-2.26/mandelbulber2/qt/
H A Dwave_form_view.cpp127 QRect textRect = painter.boundingRect(QRect(), Qt::AlignTop | Qt::AlignLeft, progressText); in paintEvent() local
128 textRect.setHeight(textRect.height() + 2); in paintEvent()
129 textRect.moveTopLeft(QPoint(5, 5)); in paintEvent()
130 setFixedWidth(textRect.width() + 5); in paintEvent()
131 painter.drawText(textRect, Qt::AlignTop | Qt::AlignLeft, progressText); in paintEvent()
143 QRect textRect = painter.boundingRect(QRect(), Qt::AlignTop | Qt::AlignLeft, progressText); in paintEvent() local
144 textRect.setHeight(textRect.height() + 2); in paintEvent()
145 textRect.moveTopLeft(QPoint(5, 5)); in paintEvent()
146 setFixedWidth(textRect.width() + 5); in paintEvent()
149 painter.fillRect(textRect, brush); in paintEvent()
[all …]
/dports/graphics/qgis-ltr/qgis-3.16.16/src/gui/
H A Dqgstextpreview.cpp61 QRectF textRect = rect(); in paintEvent() local
62 textRect.setLeft( xtrans ); in paintEvent()
63 textRect.setWidth( textRect.width() - xtrans ); in paintEvent()
64 textRect.setTop( ytrans ); in paintEvent()
65 if ( textRect.height() > 300 ) in paintEvent()
66 textRect.setHeight( 300 ); in paintEvent()
67 if ( textRect.width() > 2000 ) in paintEvent()
68 textRect.setWidth( 2000 ); in paintEvent()
71 QgsTextRenderer::drawText( textRect, 0, QgsTextRenderer::AlignLeft, QStringList() << text(), in paintEvent()
/dports/graphics/qgis/qgis-3.22.3/src/gui/
H A Dqgstextpreview.cpp61 QRectF textRect = rect(); in paintEvent() local
62 textRect.setLeft( xtrans ); in paintEvent()
63 textRect.setWidth( textRect.width() - xtrans ); in paintEvent()
64 textRect.setTop( ytrans ); in paintEvent()
65 if ( textRect.height() > 300 ) in paintEvent()
66 textRect.setHeight( 300 ); in paintEvent()
67 if ( textRect.width() > 2000 ) in paintEvent()
68 textRect.setWidth( 2000 ); in paintEvent()
71 QgsTextRenderer::drawText( textRect, 0, QgsTextRenderer::AlignLeft, QStringList() << text(), in paintEvent()
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/lab/
H A Dspecial.cpp63 _graphics->flowText(paperFont, 0, 0, 0, false, true, false, true, textRect, paperText.c_str()); in doWestPaper()
306 textRect.left = _monitorButton->_width + _utils->vgaScaleX(3); in drawMonText()
314 _graphics->rectFill(0, 0, _graphics->_screenWidth - 1, textRect.bottom, 0); in drawMonText()
319 _graphics->rectFill(0, 0, _graphics->_screenWidth - 1, textRect.bottom, 0); in drawMonText()
321 _graphics->rectFill(textRect, 0); in drawMonText()
336 …curText += _graphics->flowText(monitorFont, yspacing, 2, 0, false, false, false, true, textRect, c… in drawMonText()
366 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
412 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
420 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
425 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/lab/
H A Dspecial.cpp63 _graphics->flowText(paperFont, 0, 0, 0, false, true, false, true, textRect, paperText.c_str()); in doWestPaper()
306 textRect.left = _monitorButton->_width + _utils->vgaScaleX(3); in drawMonText()
314 _graphics->rectFill(0, 0, _graphics->_screenWidth - 1, textRect.bottom, 0); in drawMonText()
319 _graphics->rectFill(0, 0, _graphics->_screenWidth - 1, textRect.bottom, 0); in drawMonText()
321 _graphics->rectFill(textRect, 0); in drawMonText()
336 …curText += _graphics->flowText(monitorFont, yspacing, 2, 0, false, false, false, true, textRect, c… in drawMonText()
366 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
412 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
420 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
425 drawMonText(text.c_str(), monitorFont, textRect, isInteractive); in processMonitor()
[all …]
/dports/audio/polyphone/polyphone-75a5e88/sources/editor/widgets/
H A Dtableheaderviewv.cpp45 QRect textRect = rect; in paintSection() local
46 textRect.setWidth(textRect.width() - 2 * MARGIN); in paintSection()
48 textRect.setWidth(textRect.width() - iconRect.width() - MARGIN); in paintSection()
49 textRect.translate(MARGIN, 0); in paintSection()
53 QString adaptedText = fm.elidedText(text, Qt::ElideRight, textRect.width()); in paintSection()
69 painter->drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, adaptedText); in paintSection()
75 …painter->drawPixmap(textRect.right() + MARGIN, rect.top() + offsetY, iconRect.width(), iconRect.he… in paintSection()
/dports/editors/texmaker/texmaker-5.0.3/
H A Dicondelegate.cpp55 QRect textRect(0, 0, 0,0); in paint() local
101 QRect textRect(0, 0, 0,0); in sizeHint() local
106 return (pixmapRect|textRect|checkRect).size(); in sizeHint()
204 Q_ASSERT(checkRect && pixmapRect && textRect); in doLayout()
216 w = qMax(textRect->width(), pm.width()); in doLayout()
217 h = qMax(textRect->height(), pm.height()); in doLayout()
251 if (!textRect->isEmpty()) in doLayout()
252 textRect->setHeight(textRect->height() + textMargin); // add space in doLayout()
266 if (!textRect->isEmpty()) in doLayout()
267 textRect->setWidth(textRect->width() + textMargin); // add space in doLayout()
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicButtonUI.java251 private static Rectangle textRect = new Rectangle(); field in BasicButtonUI
281 v.paint(g, textRect); in paint()
283 paintText(g, b, textRect, text); in paint()
289 paintFocus(g,b,viewRect,textRect,iconRect); in paint()
392 textRect.x, textRect.y + fm.getAscent()); in paintText()
395 textRect.x - 1, textRect.y + fm.getAscent() - 1); in paintText()
409 paintText(g, (JComponent)b, textRect, text); in paintText()
503 return BasicHTML.getBaseline(b, textRect.y, fm.getAscent(), in getBaseline()
504 textRect.width, textRect.height); in getBaseline()
540 textRect.x = textRect.y = textRect.width = textRect.height = 0; in layout()
[all …]
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicButtonUI.java192 private static Rectangle textRect = new Rectangle(); field in BasicButtonUI
222 v.paint(g, textRect); in paint()
224 paintText(g, b, textRect, text); in paint()
230 paintFocus(g,b,viewRect,textRect,iconRect); in paint()
319 textRect.x, textRect.y + fm.getAscent()); in paintText()
322 textRect.x - 1, textRect.y + fm.getAscent() - 1); in paintText()
336 paintText(g, (JComponent)b, textRect, text); in paintText()
405 return BasicHTML.getBaseline(b, textRect.y, fm.getAscent(), in getBaseline()
406 textRect.width, textRect.height); in getBaseline()
442 textRect.x = textRect.y = textRect.width = textRect.height = 0; in layout()
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicButtonUI.java251 private static Rectangle textRect = new Rectangle(); field in BasicButtonUI
281 v.paint(g, textRect); in paint()
283 paintText(g, b, textRect, text); in paint()
289 paintFocus(g,b,viewRect,textRect,iconRect); in paint()
392 textRect.x, textRect.y + fm.getAscent()); in paintText()
395 textRect.x - 1, textRect.y + fm.getAscent() - 1); in paintText()
409 paintText(g, (JComponent)b, textRect, text); in paintText()
503 return BasicHTML.getBaseline(b, textRect.y, fm.getAscent(), in getBaseline()
504 textRect.width, textRect.height); in getBaseline()
540 textRect.x = textRect.y = textRect.width = textRect.height = 0; in layout()
[all …]
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicButtonUI.java251 private static Rectangle textRect = new Rectangle(); field in BasicButtonUI
281 v.paint(g, textRect); in paint()
283 paintText(g, b, textRect, text); in paint()
289 paintFocus(g,b,viewRect,textRect,iconRect); in paint()
392 textRect.x, textRect.y + fm.getAscent()); in paintText()
395 textRect.x - 1, textRect.y + fm.getAscent() - 1); in paintText()
409 paintText(g, (JComponent)b, textRect, text); in paintText()
503 return BasicHTML.getBaseline(b, textRect.y, fm.getAscent(), in getBaseline()
504 textRect.width, textRect.height); in getBaseline()
540 textRect.x = textRect.y = textRect.width = textRect.height = 0; in layout()
[all …]
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicButtonUI.java251 private static Rectangle textRect = new Rectangle(); field in BasicButtonUI
281 v.paint(g, textRect); in paint()
283 paintText(g, b, textRect, text); in paint()
289 paintFocus(g,b,viewRect,textRect,iconRect); in paint()
392 textRect.x, textRect.y + fm.getAscent()); in paintText()
395 textRect.x - 1, textRect.y + fm.getAscent() - 1); in paintText()
409 paintText(g, (JComponent)b, textRect, text); in paintText()
503 return BasicHTML.getBaseline(b, textRect.y, fm.getAscent(), in getBaseline()
504 textRect.width, textRect.height); in getBaseline()
540 textRect.x = textRect.y = textRect.width = textRect.height = 0; in layout()
[all …]
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicButtonUI.java192 private static Rectangle textRect = new Rectangle(); field in BasicButtonUI
222 v.paint(g, textRect); in paint()
224 paintText(g, b, textRect, text); in paint()
230 paintFocus(g,b,viewRect,textRect,iconRect); in paint()
319 textRect.x, textRect.y + fm.getAscent()); in paintText()
322 textRect.x - 1, textRect.y + fm.getAscent() - 1); in paintText()
336 paintText(g, (JComponent)b, textRect, text); in paintText()
405 return BasicHTML.getBaseline(b, textRect.y, fm.getAscent(), in getBaseline()
406 textRect.width, textRect.height); in getBaseline()
442 textRect.x = textRect.y = textRect.width = textRect.height = 0; in layout()
[all …]
/dports/graphics/okular/okular-21.12.3/part/
H A Dpageviewutils.cpp280 textRect.translate(-textRect.left(), -textRect.top()); in computeTextRect()
281 textRect.adjust(0, 0, 2, 2); in computeTextRect()
283 return textRect; in computeTextRect()
289 const QRect textRect = computeTextRect(m_message, m_symbol.width()); in computeSizeAndResize() local
290 int width = textRect.width(), height = textRect.height(); in computeSizeAndResize()
334 const QRect textRect = computeTextRect(m_message, m_symbol.width()); in paintEvent() local
346 iconXOffset = 2 + textRect.width(); in paintEvent()
368 …awText(xStartPoint + shadowOffset, yStartPoint + shadowOffset, textRect.width(), textRect.height()… in paintEvent()
370 …Text(xStartPoint + shadowOffset, yStartPoint + textRect.height() + m_lineSpacing + shadowOffset, t… in paintEvent()
372 …painter.drawText(xStartPoint, yStartPoint, textRect.width(), textRect.height(), textDrawingFlags, … in paintEvent()
[all …]
/dports/deskutils/basket/basket-2.49a-46-g60e38c6/src/
H A Dregiongrabber.cpp107 textRect.adjust(-2, -2, 4, 2); in paintEvent()
108 painter.drawRect(textRect); in paintEvent()
109 textRect.moveTopLeft(QPoint(3, 3)); in paintEvent()
110 painter.drawText(textRect, helpText); in paintEvent()
123 QRect boundingRect = textRect.adjusted(-4, 0, 0, 0); in paintEvent()
125 if (textRect.width() < r.width() - 2*handleSize && in paintEvent()
126 textRect.height() < r.height() - 2*handleSize && in paintEvent()
129 textRect.moveCenter(r.center()); in paintEvent()
130 } else if (r.y() - 3 > textRect.height() && in paintEvent()
136 textRect.moveTopRight(QPoint(r.x() - 5, r.y())); in paintEvent()
[all …]
/dports/x11-toolkits/kf5-kitemviews/kitemviews-5.89.0/src/
H A Dkcategorydrawer.cpp71 QRect textRect(option.rect); in drawCategory() local
72 textRect.setTop(textRect.top() + topPadding); in drawCategory()
73 textRect.setLeft(textRect.left() + sidePadding); in drawCategory()
74 textRect.setHeight(fontMetrics.height()); in drawCategory()
75 textRect.setRight(textRect.right() - sidePadding); in drawCategory()
81 painter->drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, category); in drawCategory()
/dports/x11-themes/Kvantum/Kvantum-0.20.2/Kvantum/style/
H A DviewItems.cpp153 if (!textRect->isValid()) in viewItemLayout()
155 textRect->setHeight(opt->fontMetrics.height()); in viewItemLayout()
156 textRect->setWidth(2); in viewItemLayout()
176 w = qMax(textRect->width(), pm.width()) in viewItemLayout()
605 *textRect = display; in viewItemLayout()
612 const QRect &textRect, in calculateElidedText() argument
629 textRect.width(), in calculateElidedText()
650 if (height + layoutRect.top() <= textRect.top()) in calculateElidedText()
666 if (nextHeight + layoutRect.top() > textRect.height() + textRect.top()) in calculateElidedText()
692 if ((height + layoutRect.top() >= textRect.bottom()) in calculateElidedText()
[all …]
/dports/cad/librepcb/librepcb-0.1.6/libs/librepcb/library/sym/
H A Dsymbolpreviewgraphicsitem.cpp154 props.textRect = metrics.boundingRect( in updateCacheAndRepaint()
166 dy = text.getPosition().toPxQPointF().y() - props.textRect.top(); in updateCacheAndRepaint()
171 (props.textRect.top() + props.textRect.bottom()) / 2; in updateCacheAndRepaint()
173 dx = text.getPosition().toPxQPointF().x() - props.textRect.left(); in updateCacheAndRepaint()
175 dx = text.getPosition().toPxQPointF().x() - props.textRect.right(); in updateCacheAndRepaint()
178 (props.textRect.left() + props.textRect.right()) / 2; in updateCacheAndRepaint()
199 props.textRect = props.textRect.translated(dx, dy).normalized(); in updateCacheAndRepaint()
200 mBoundingRect = mBoundingRect.united(props.textRect); in updateCacheAndRepaint()
202 props.textRect = QRectF(-props.textRect.x(), -props.textRect.y(), in updateCacheAndRepaint()
203 -props.textRect.width(), -props.textRect.height()) in updateCacheAndRepaint()
[all …]

12345678910>>...65