pub struct QRawFont { /* private fields */ }Expand description
C++ class: QRawFont.
Implementations§
Source§impl QRawFont
impl QRawFont
Sourcepub unsafe fn advances_for_glyph_indexes_1a(
&self,
glyph_indexes: impl CastInto<Ref<QVectorOfUint>>,
) -> CppBox<QVectorOfQPointF>
pub unsafe fn advances_for_glyph_indexes_1a( &self, glyph_indexes: impl CastInto<Ref<QVectorOfUint>>, ) -> CppBox<QVectorOfQPointF>
Calls C++ function: QVector<QPointF> QRawFont::advancesForGlyphIndexes(const QVector<unsigned int>& glyphIndexes) const.
Sourcepub unsafe fn advances_for_glyph_indexes_2a(
&self,
glyph_indexes: impl CastInto<Ref<QVectorOfUint>>,
layout_flags: QFlags<LayoutFlag>,
) -> CppBox<QVectorOfQPointF>
pub unsafe fn advances_for_glyph_indexes_2a( &self, glyph_indexes: impl CastInto<Ref<QVectorOfUint>>, layout_flags: QFlags<LayoutFlag>, ) -> CppBox<QVectorOfQPointF>
Calls C++ function: QVector<QPointF> QRawFont::advancesForGlyphIndexes(const QVector<unsigned int>& glyphIndexes, QFlags<QRawFont::LayoutFlag> layoutFlags) const.
Sourcepub unsafe fn advances_for_glyph_indexes_3a(
&self,
glyph_indexes: *const c_uint,
advances: impl CastInto<Ptr<QPointF>>,
num_glyphs: c_int,
) -> bool
pub unsafe fn advances_for_glyph_indexes_3a( &self, glyph_indexes: *const c_uint, advances: impl CastInto<Ptr<QPointF>>, num_glyphs: c_int, ) -> bool
Calls C++ function: bool QRawFont::advancesForGlyphIndexes(const unsigned int* glyphIndexes, QPointF* advances, int numGlyphs) const.
Sourcepub unsafe fn advances_for_glyph_indexes_4a(
&self,
glyph_indexes: *const c_uint,
advances: impl CastInto<Ptr<QPointF>>,
num_glyphs: c_int,
layout_flags: QFlags<LayoutFlag>,
) -> bool
pub unsafe fn advances_for_glyph_indexes_4a( &self, glyph_indexes: *const c_uint, advances: impl CastInto<Ptr<QPointF>>, num_glyphs: c_int, layout_flags: QFlags<LayoutFlag>, ) -> bool
Calls C++ function: bool QRawFont::advancesForGlyphIndexes(const unsigned int* glyphIndexes, QPointF* advances, int numGlyphs, QFlags<QRawFont::LayoutFlag> layoutFlags) const.
Sourcepub unsafe fn alpha_map_for_glyph_3a(
&self,
glyph_index: c_uint,
antialiasing_type: AntialiasingType,
transform: impl CastInto<Ref<QTransform>>,
) -> CppBox<QImage>
pub unsafe fn alpha_map_for_glyph_3a( &self, glyph_index: c_uint, antialiasing_type: AntialiasingType, transform: impl CastInto<Ref<QTransform>>, ) -> CppBox<QImage>
Calls C++ function: QImage QRawFont::alphaMapForGlyph(unsigned int glyphIndex, QRawFont::AntialiasingType antialiasingType = …, const QTransform& transform = …) const.
Sourcepub unsafe fn alpha_map_for_glyph_2a(
&self,
glyph_index: c_uint,
antialiasing_type: AntialiasingType,
) -> CppBox<QImage>
pub unsafe fn alpha_map_for_glyph_2a( &self, glyph_index: c_uint, antialiasing_type: AntialiasingType, ) -> CppBox<QImage>
Calls C++ function: QImage QRawFont::alphaMapForGlyph(unsigned int glyphIndex, QRawFont::AntialiasingType antialiasingType = …) const.
Sourcepub unsafe fn alpha_map_for_glyph_1a(
&self,
glyph_index: c_uint,
) -> CppBox<QImage>
pub unsafe fn alpha_map_for_glyph_1a( &self, glyph_index: c_uint, ) -> CppBox<QImage>
Calls C++ function: QImage QRawFont::alphaMapForGlyph(unsigned int glyphIndex) const.
Sourcepub unsafe fn average_char_width(&self) -> c_double
pub unsafe fn average_char_width(&self) -> c_double
Calls C++ function: double QRawFont::averageCharWidth() const.
Sourcepub unsafe fn bounding_rect(&self, glyph_index: c_uint) -> CppBox<QRectF>
pub unsafe fn bounding_rect(&self, glyph_index: c_uint) -> CppBox<QRectF>
Calls C++ function: QRectF QRawFont::boundingRect(unsigned int glyphIndex) const.
Sourcepub unsafe fn cap_height(&self) -> c_double
pub unsafe fn cap_height(&self) -> c_double
Calls C++ function: double QRawFont::capHeight() const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QRawFont>>,
) -> Ref<QRawFont>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QRawFont>>, ) -> Ref<QRawFont>
Calls C++ function: QRawFont& QRawFont::operator=(const QRawFont& other).
Sourcepub unsafe fn family_name(&self) -> CppBox<QString>
pub unsafe fn family_name(&self) -> CppBox<QString>
Calls C++ function: QString QRawFont::familyName() const.
Sourcepub unsafe fn font_table(&self, tag_name: *const c_char) -> CppBox<QByteArray>
pub unsafe fn font_table(&self, tag_name: *const c_char) -> CppBox<QByteArray>
Calls C++ function: QByteArray QRawFont::fontTable(const char* tagName) const.
Sourcepub unsafe fn from_font_2a(
font: impl CastInto<Ref<QFont>>,
writing_system: WritingSystem,
) -> CppBox<QRawFont>
pub unsafe fn from_font_2a( font: impl CastInto<Ref<QFont>>, writing_system: WritingSystem, ) -> CppBox<QRawFont>
Calls C++ function: static QRawFont QRawFont::fromFont(const QFont& font, QFontDatabase::WritingSystem writingSystem = …).
Sourcepub unsafe fn from_font_1a(font: impl CastInto<Ref<QFont>>) -> CppBox<QRawFont>
pub unsafe fn from_font_1a(font: impl CastInto<Ref<QFont>>) -> CppBox<QRawFont>
Calls C++ function: static QRawFont QRawFont::fromFont(const QFont& font).
Sourcepub unsafe fn glyph_indexes_for_chars(
&self,
chars: impl CastInto<Ptr<QChar>>,
num_chars: c_int,
glyph_indexes: *mut c_uint,
num_glyphs: *mut c_int,
) -> bool
pub unsafe fn glyph_indexes_for_chars( &self, chars: impl CastInto<Ptr<QChar>>, num_chars: c_int, glyph_indexes: *mut c_uint, num_glyphs: *mut c_int, ) -> bool
Calls C++ function: bool QRawFont::glyphIndexesForChars(const QChar* chars, int numChars, unsigned int* glyphIndexes, int* numGlyphs) const.
Sourcepub unsafe fn glyph_indexes_for_string(
&self,
text: impl CastInto<Ref<QString>>,
) -> CppBox<QVectorOfUint>
pub unsafe fn glyph_indexes_for_string( &self, text: impl CastInto<Ref<QString>>, ) -> CppBox<QVectorOfUint>
Calls C++ function: QVector<unsigned int> QRawFont::glyphIndexesForString(const QString& text) const.
Sourcepub unsafe fn hinting_preference(&self) -> HintingPreference
pub unsafe fn hinting_preference(&self) -> HintingPreference
Calls C++ function: QFont::HintingPreference QRawFont::hintingPreference() const.
Sourcepub unsafe fn line_thickness(&self) -> c_double
pub unsafe fn line_thickness(&self) -> c_double
Calls C++ function: double QRawFont::lineThickness() const.
Sourcepub unsafe fn load_from_data(
&self,
font_data: impl CastInto<Ref<QByteArray>>,
pixel_size: c_double,
hinting_preference: HintingPreference,
)
pub unsafe fn load_from_data( &self, font_data: impl CastInto<Ref<QByteArray>>, pixel_size: c_double, hinting_preference: HintingPreference, )
Calls C++ function: void QRawFont::loadFromData(const QByteArray& fontData, double pixelSize, QFont::HintingPreference hintingPreference).
Sourcepub unsafe fn load_from_file(
&self,
file_name: impl CastInto<Ref<QString>>,
pixel_size: c_double,
hinting_preference: HintingPreference,
)
pub unsafe fn load_from_file( &self, file_name: impl CastInto<Ref<QString>>, pixel_size: c_double, hinting_preference: HintingPreference, )
Calls C++ function: void QRawFont::loadFromFile(const QString& fileName, double pixelSize, QFont::HintingPreference hintingPreference).
Sourcepub unsafe fn max_char_width(&self) -> c_double
pub unsafe fn max_char_width(&self) -> c_double
Calls C++ function: double QRawFont::maxCharWidth() const.
Sourcepub unsafe fn new() -> CppBox<QRawFont>
pub unsafe fn new() -> CppBox<QRawFont>
Calls C++ function: [constructor] void QRawFont::QRawFont().
Sourcepub unsafe fn from_q_string_double_hinting_preference(
file_name: impl CastInto<Ref<QString>>,
pixel_size: c_double,
hinting_preference: HintingPreference,
) -> CppBox<QRawFont>
pub unsafe fn from_q_string_double_hinting_preference( file_name: impl CastInto<Ref<QString>>, pixel_size: c_double, hinting_preference: HintingPreference, ) -> CppBox<QRawFont>
Calls C++ function: [constructor] void QRawFont::QRawFont(const QString& fileName, double pixelSize, QFont::HintingPreference hintingPreference = …).
Sourcepub unsafe fn from_q_byte_array_double_hinting_preference(
font_data: impl CastInto<Ref<QByteArray>>,
pixel_size: c_double,
hinting_preference: HintingPreference,
) -> CppBox<QRawFont>
pub unsafe fn from_q_byte_array_double_hinting_preference( font_data: impl CastInto<Ref<QByteArray>>, pixel_size: c_double, hinting_preference: HintingPreference, ) -> CppBox<QRawFont>
Calls C++ function: [constructor] void QRawFont::QRawFont(const QByteArray& fontData, double pixelSize, QFont::HintingPreference hintingPreference = …).
Sourcepub unsafe fn from_q_string_double(
file_name: impl CastInto<Ref<QString>>,
pixel_size: c_double,
) -> CppBox<QRawFont>
pub unsafe fn from_q_string_double( file_name: impl CastInto<Ref<QString>>, pixel_size: c_double, ) -> CppBox<QRawFont>
Calls C++ function: [constructor] void QRawFont::QRawFont(const QString& fileName, double pixelSize).
Sourcepub unsafe fn from_q_byte_array_double(
font_data: impl CastInto<Ref<QByteArray>>,
pixel_size: c_double,
) -> CppBox<QRawFont>
pub unsafe fn from_q_byte_array_double( font_data: impl CastInto<Ref<QByteArray>>, pixel_size: c_double, ) -> CppBox<QRawFont>
Calls C++ function: [constructor] void QRawFont::QRawFont(const QByteArray& fontData, double pixelSize).
Sourcepub unsafe fn new_copy(other: impl CastInto<Ref<QRawFont>>) -> CppBox<QRawFont>
pub unsafe fn new_copy(other: impl CastInto<Ref<QRawFont>>) -> CppBox<QRawFont>
Calls C++ function: [constructor] void QRawFont::QRawFont(const QRawFont& other).
Sourcepub unsafe fn path_for_glyph(&self, glyph_index: c_uint) -> CppBox<QPainterPath>
pub unsafe fn path_for_glyph(&self, glyph_index: c_uint) -> CppBox<QPainterPath>
Calls C++ function: QPainterPath QRawFont::pathForGlyph(unsigned int glyphIndex) const.
Sourcepub unsafe fn pixel_size(&self) -> c_double
pub unsafe fn pixel_size(&self) -> c_double
Calls C++ function: double QRawFont::pixelSize() const.
Sourcepub unsafe fn set_pixel_size(&self, pixel_size: c_double)
pub unsafe fn set_pixel_size(&self, pixel_size: c_double)
Calls C++ function: void QRawFont::setPixelSize(double pixelSize).
Sourcepub unsafe fn style_name(&self) -> CppBox<QString>
pub unsafe fn style_name(&self) -> CppBox<QString>
Calls C++ function: QString QRawFont::styleName() const.
Sourcepub unsafe fn supported_writing_systems(&self) -> CppBox<QListOfWritingSystem>
pub unsafe fn supported_writing_systems(&self) -> CppBox<QListOfWritingSystem>
Calls C++ function: QList<QFontDatabase::WritingSystem> QRawFont::supportedWritingSystems() const.
Sourcepub unsafe fn supports_character_uint(&self, ucs4: c_uint) -> bool
pub unsafe fn supports_character_uint(&self, ucs4: c_uint) -> bool
Calls C++ function: bool QRawFont::supportsCharacter(unsigned int ucs4) const.
Sourcepub unsafe fn supports_character_q_char(
&self,
character: impl CastInto<Ref<QChar>>,
) -> bool
pub unsafe fn supports_character_q_char( &self, character: impl CastInto<Ref<QChar>>, ) -> bool
Calls C++ function: bool QRawFont::supportsCharacter(QChar character) const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QRawFont>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QRawFont>>)
Calls C++ function: void QRawFont::swap(QRawFont& other).
Sourcepub unsafe fn underline_position(&self) -> c_double
pub unsafe fn underline_position(&self) -> c_double
Calls C++ function: double QRawFont::underlinePosition() const.
Sourcepub unsafe fn units_per_em(&self) -> c_double
pub unsafe fn units_per_em(&self) -> c_double
Calls C++ function: double QRawFont::unitsPerEm() const.