qglyphrun.sip 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // qglyphrun.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtGui Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. %If (PyQt_RawFont)
  22. class QGlyphRun
  23. {
  24. %TypeHeaderCode
  25. #include <qglyphrun.h>
  26. %End
  27. public:
  28. QGlyphRun();
  29. QGlyphRun(const QGlyphRun &other);
  30. ~QGlyphRun();
  31. QRawFont rawFont() const;
  32. void setRawFont(const QRawFont &rawFont);
  33. QList<unsigned int> glyphIndexes() const;
  34. void setGlyphIndexes(const QList<unsigned int> &glyphIndexes);
  35. QList<QPointF> positions() const;
  36. void setPositions(const QList<QPointF> &positions);
  37. void clear();
  38. bool operator==(const QGlyphRun &other) const;
  39. bool operator!=(const QGlyphRun &other) const;
  40. void setOverline(bool overline);
  41. bool overline() const;
  42. void setUnderline(bool underline);
  43. bool underline() const;
  44. void setStrikeOut(bool strikeOut);
  45. bool strikeOut() const;
  46. enum GlyphRunFlag /BaseType=Flag/
  47. {
  48. Overline,
  49. Underline,
  50. StrikeOut,
  51. RightToLeft,
  52. SplitLigature,
  53. };
  54. typedef QFlags<QGlyphRun::GlyphRunFlag> GlyphRunFlags;
  55. void setRightToLeft(bool on);
  56. bool isRightToLeft() const;
  57. void setFlag(QGlyphRun::GlyphRunFlag flag, bool enabled = true);
  58. void setFlags(QGlyphRun::GlyphRunFlags flags);
  59. QGlyphRun::GlyphRunFlags flags() const;
  60. void setBoundingRect(const QRectF &boundingRect);
  61. QRectF boundingRect() const;
  62. bool isEmpty() const;
  63. void swap(QGlyphRun &other /Constrained/);
  64. %If (Qt_6_5_0 -)
  65. QList<qsizetype> stringIndexes() const;
  66. %End
  67. %If (Qt_6_5_0 -)
  68. void setStringIndexes(const QList<qsizetype> &stringIndexes);
  69. %End
  70. %If (Qt_6_5_0 -)
  71. void setSourceString(const QString &sourceString);
  72. %End
  73. %If (Qt_6_5_0 -)
  74. QString sourceString() const;
  75. %End
  76. };
  77. %End