Skip to main content

QFontDatabase

Struct QFontDatabase 

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

C++ class: QFontDatabase.

Implementations§

Source§

impl QFontDatabase

Source

pub unsafe fn add_application_font( file_name: impl CastInto<Ref<QString>>, ) -> c_int

Calls C++ function: static int QFontDatabase::addApplicationFont(const QString& fileName).

Source

pub unsafe fn add_application_font_from_data( font_data: impl CastInto<Ref<QByteArray>>, ) -> c_int

Calls C++ function: static int QFontDatabase::addApplicationFontFromData(const QByteArray& fontData).

Source

pub unsafe fn application_font_families(id: c_int) -> CppBox<QStringList>

Calls C++ function: static QStringList QFontDatabase::applicationFontFamilies(int id).

Source

pub unsafe fn bold( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::bold(const QString& family, const QString& style) const.

Source

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

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

Source

pub unsafe fn families_1a( &self, writing_system: WritingSystem, ) -> CppBox<QStringList>

Calls C++ function: QStringList QFontDatabase::families(QFontDatabase::WritingSystem writingSystem = …) const.

Source

pub unsafe fn families_0a(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QFontDatabase::families() const.

Source

pub unsafe fn font( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, point_size: c_int, ) -> CppBox<QFont>

Calls C++ function: QFont QFontDatabase::font(const QString& family, const QString& style, int pointSize) const.

Source

pub unsafe fn has_family(&self, family: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: bool QFontDatabase::hasFamily(const QString& family) const.

Source

pub unsafe fn is_bitmap_scalable_2a( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isBitmapScalable(const QString& family, const QString& style = …) const.

Source

pub unsafe fn is_bitmap_scalable_1a( &self, family: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isBitmapScalable(const QString& family) const.

Source

pub unsafe fn is_fixed_pitch_2a( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isFixedPitch(const QString& family, const QString& style = …) const.

Source

pub unsafe fn is_fixed_pitch_1a( &self, family: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isFixedPitch(const QString& family) const.

Source

pub unsafe fn is_private_family( &self, family: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isPrivateFamily(const QString& family) const.

Source

pub unsafe fn is_scalable_2a( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isScalable(const QString& family, const QString& style = …) const.

Source

pub unsafe fn is_scalable_1a(&self, family: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: bool QFontDatabase::isScalable(const QString& family) const.

Source

pub unsafe fn is_smoothly_scalable_2a( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isSmoothlyScalable(const QString& family, const QString& style = …) const.

Source

pub unsafe fn is_smoothly_scalable_1a( &self, family: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::isSmoothlyScalable(const QString& family) const.

Source

pub unsafe fn italic( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QFontDatabase::italic(const QString& family, const QString& style) const.

Source

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

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

Source

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

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

Source

pub unsafe fn point_sizes_2a( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfInt>

Calls C++ function: QList<int> QFontDatabase::pointSizes(const QString& family, const QString& style = …).

Source

pub unsafe fn point_sizes_1a( &self, family: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfInt>

Calls C++ function: QList<int> QFontDatabase::pointSizes(const QString& family).

Source

pub unsafe fn remove_all_application_fonts() -> bool

Calls C++ function: static bool QFontDatabase::removeAllApplicationFonts().

Source

pub unsafe fn remove_application_font(id: c_int) -> bool

Calls C++ function: static bool QFontDatabase::removeApplicationFont(int id).

Source

pub unsafe fn smooth_sizes( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfInt>

Calls C++ function: QList<int> QFontDatabase::smoothSizes(const QString& family, const QString& style).

Source

pub unsafe fn standard_sizes() -> CppBox<QListOfInt>

Calls C++ function: static QList<int> QFontDatabase::standardSizes().

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn style_string_q_font( &self, font: impl CastInto<Ref<QFont>>, ) -> CppBox<QString>

Calls C++ function: QString QFontDatabase::styleString(const QFont& font).

Source

pub unsafe fn style_string_q_font_info( &self, font_info: impl CastInto<Ref<QFontInfo>>, ) -> CppBox<QString>

Calls C++ function: QString QFontDatabase::styleString(const QFontInfo& fontInfo).

Source

pub unsafe fn styles( &self, family: impl CastInto<Ref<QString>>, ) -> CppBox<QStringList>

Calls C++ function: QStringList QFontDatabase::styles(const QString& family) const.

Source

pub unsafe fn supports_threaded_font_rendering() -> bool

Calls C++ function: static bool QFontDatabase::supportsThreadedFontRendering().

Source

pub unsafe fn system_font(type_: SystemFont) -> CppBox<QFont>

Calls C++ function: static QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type).

Source

pub unsafe fn weight( &self, family: impl CastInto<Ref<QString>>, style: impl CastInto<Ref<QString>>, ) -> c_int

Calls C++ function: int QFontDatabase::weight(const QString& family, const QString& style) const.

Source

pub unsafe fn writing_system_name( writing_system: WritingSystem, ) -> CppBox<QString>

Calls C++ function: static QString QFontDatabase::writingSystemName(QFontDatabase::WritingSystem writingSystem).

Source

pub unsafe fn writing_system_sample( writing_system: WritingSystem, ) -> CppBox<QString>

Calls C++ function: static QString QFontDatabase::writingSystemSample(QFontDatabase::WritingSystem writingSystem).

Source

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

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

Source

pub unsafe fn writing_systems_1a( &self, family: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfWritingSystem>

Calls C++ function: QList<QFontDatabase::WritingSystem> QFontDatabase::writingSystems(const QString& family) const.

Trait Implementations§

Source§

impl CppDeletable for QFontDatabase

Source§

unsafe fn delete(&self)

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

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.