Skip to main content

QRawFont

Struct QRawFont 

Source
pub struct QRawFont { /* private fields */ }
Expand description

C++ class: QRawFont.

Implementations§

Source§

impl QRawFont

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub unsafe fn ascent(&self) -> c_double

Calls C++ function: double QRawFont::ascent() const.

Source

pub unsafe fn average_char_width(&self) -> c_double

Calls C++ function: double QRawFont::averageCharWidth() const.

Source

pub unsafe fn bounding_rect(&self, glyph_index: c_uint) -> CppBox<QRectF>

Calls C++ function: QRectF QRawFont::boundingRect(unsigned int glyphIndex) const.

Source

pub unsafe fn cap_height(&self) -> c_double

Calls C++ function: double QRawFont::capHeight() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QRawFont>>, ) -> Ref<QRawFont>

Calls C++ function: QRawFont& QRawFont::operator=(const QRawFont& other).

Source

pub unsafe fn descent(&self) -> c_double

Calls C++ function: double QRawFont::descent() const.

Source

pub unsafe fn family_name(&self) -> CppBox<QString>

Calls C++ function: QString QRawFont::familyName() const.

Source

pub unsafe fn font_table(&self, tag_name: *const c_char) -> CppBox<QByteArray>

Calls C++ function: QByteArray QRawFont::fontTable(const char* tagName) const.

Source

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 = …).

Source

pub unsafe fn from_font_1a(font: impl CastInto<Ref<QFont>>) -> CppBox<QRawFont>

Calls C++ function: static QRawFont QRawFont::fromFont(const QFont& font).

Source

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.

Source

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.

Source

pub unsafe fn hinting_preference(&self) -> HintingPreference

Calls C++ function: QFont::HintingPreference QRawFont::hintingPreference() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QRawFont::isValid() const.

Source

pub unsafe fn leading(&self) -> c_double

Calls C++ function: double QRawFont::leading() const.

Source

pub unsafe fn line_thickness(&self) -> c_double

Calls C++ function: double QRawFont::lineThickness() const.

Source

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).

Source

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).

Source

pub unsafe fn max_char_width(&self) -> c_double

Calls C++ function: double QRawFont::maxCharWidth() const.

Source

pub unsafe fn new() -> CppBox<QRawFont>

Calls C++ function: [constructor] void QRawFont::QRawFont().

Source

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 = …).

Source

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 = …).

Source

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).

Source

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).

Source

pub unsafe fn new_copy(other: impl CastInto<Ref<QRawFont>>) -> CppBox<QRawFont>

Calls C++ function: [constructor] void QRawFont::QRawFont(const QRawFont& other).

Source

pub unsafe fn path_for_glyph(&self, glyph_index: c_uint) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QRawFont::pathForGlyph(unsigned int glyphIndex) const.

Source

pub unsafe fn pixel_size(&self) -> c_double

Calls C++ function: double QRawFont::pixelSize() const.

Source

pub unsafe fn set_pixel_size(&self, pixel_size: c_double)

Calls C++ function: void QRawFont::setPixelSize(double pixelSize).

Source

pub unsafe fn style(&self) -> Style

Calls C++ function: QFont::Style QRawFont::style() const.

Source

pub unsafe fn style_name(&self) -> CppBox<QString>

Calls C++ function: QString QRawFont::styleName() const.

Source

pub unsafe fn supported_writing_systems(&self) -> CppBox<QListOfWritingSystem>

Calls C++ function: QList<QFontDatabase::WritingSystem> QRawFont::supportedWritingSystems() const.

Source

pub unsafe fn supports_character_uint(&self, ucs4: c_uint) -> bool

Calls C++ function: bool QRawFont::supportsCharacter(unsigned int ucs4) const.

Source

pub unsafe fn supports_character_q_char( &self, character: impl CastInto<Ref<QChar>>, ) -> bool

Calls C++ function: bool QRawFont::supportsCharacter(QChar character) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QRawFont>>)

Calls C++ function: void QRawFont::swap(QRawFont& other).

Source

pub unsafe fn underline_position(&self) -> c_double

Calls C++ function: double QRawFont::underlinePosition() const.

Source

pub unsafe fn units_per_em(&self) -> c_double

Calls C++ function: double QRawFont::unitsPerEm() const.

Source

pub unsafe fn weight(&self) -> c_int

Calls C++ function: int QRawFont::weight() const.

Source

pub unsafe fn x_height(&self) -> c_double

Calls C++ function: double QRawFont::xHeight() const.

Trait Implementations§

Source§

impl CppDeletable for QRawFont

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QRawFont::~QRawFont().

Source§

impl PartialEq<Ref<QRawFont>> for QRawFont

Source§

fn eq(&self, other: &Ref<QRawFont>) -> bool

Calls C++ function: bool QRawFont::operator==(const QRawFont& other) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.