Skip to main content

QGlyphRun

Struct QGlyphRun 

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

C++ class: QGlyphRun.

Implementations§

Source§

impl QGlyphRun

Source

pub unsafe fn bounding_rect(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QGlyphRun::boundingRect() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QGlyphRun::clear().

Source

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

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

Source

pub unsafe fn flags(&self) -> QFlags<GlyphRunFlag>

Calls C++ function: QFlags<QGlyphRun::GlyphRunFlag> QGlyphRun::flags() const.

Source

pub unsafe fn glyph_indexes(&self) -> CppBox<QVectorOfUint>

Calls C++ function: QVector<unsigned int> QGlyphRun::glyphIndexes() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QGlyphRun::isEmpty() const.

Source

pub unsafe fn is_right_to_left(&self) -> bool

Calls C++ function: bool QGlyphRun::isRightToLeft() const.

Source

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

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

Source

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

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

Source

pub unsafe fn overline(&self) -> bool

Calls C++ function: bool QGlyphRun::overline() const.

Source

pub unsafe fn positions(&self) -> CppBox<QVectorOfQPointF>

Calls C++ function: QVector<QPointF> QGlyphRun::positions() const.

Source

pub unsafe fn raw_font(&self) -> CppBox<QRawFont>

Calls C++ function: QRawFont QGlyphRun::rawFont() const.

Source

pub unsafe fn set_bounding_rect( &self, bounding_rect: impl CastInto<Ref<QRectF>>, )

Calls C++ function: void QGlyphRun::setBoundingRect(const QRectF& boundingRect).

Source

pub unsafe fn set_flag_2a(&self, flag: GlyphRunFlag, enabled: bool)

Calls C++ function: void QGlyphRun::setFlag(QGlyphRun::GlyphRunFlag flag, bool enabled = …).

Source

pub unsafe fn set_flag_1a(&self, flag: GlyphRunFlag)

Calls C++ function: void QGlyphRun::setFlag(QGlyphRun::GlyphRunFlag flag).

Source

pub unsafe fn set_flags(&self, flags: QFlags<GlyphRunFlag>)

Calls C++ function: void QGlyphRun::setFlags(QFlags<QGlyphRun::GlyphRunFlag> flags).

Source

pub unsafe fn set_glyph_indexes( &self, glyph_indexes: impl CastInto<Ref<QVectorOfUint>>, )

Calls C++ function: void QGlyphRun::setGlyphIndexes(const QVector<unsigned int>& glyphIndexes).

Source

pub unsafe fn set_overline(&self, overline: bool)

Calls C++ function: void QGlyphRun::setOverline(bool overline).

Source

pub unsafe fn set_positions( &self, positions: impl CastInto<Ref<QVectorOfQPointF>>, )

Calls C++ function: void QGlyphRun::setPositions(const QVector<QPointF>& positions).

Source

pub unsafe fn set_raw_data( &self, glyph_index_array: *const c_uint, glyph_position_array: impl CastInto<Ptr<QPointF>>, size: c_int, )

Calls C++ function: void QGlyphRun::setRawData(const unsigned int* glyphIndexArray, const QPointF* glyphPositionArray, int size).

Source

pub unsafe fn set_raw_font(&self, raw_font: impl CastInto<Ref<QRawFont>>)

Calls C++ function: void QGlyphRun::setRawFont(const QRawFont& rawFont).

Source

pub unsafe fn set_right_to_left(&self, on: bool)

Calls C++ function: void QGlyphRun::setRightToLeft(bool on).

Source

pub unsafe fn set_strike_out(&self, strike_out: bool)

Calls C++ function: void QGlyphRun::setStrikeOut(bool strikeOut).

Source

pub unsafe fn set_underline(&self, underline: bool)

Calls C++ function: void QGlyphRun::setUnderline(bool underline).

Source

pub unsafe fn strike_out(&self) -> bool

Calls C++ function: bool QGlyphRun::strikeOut() const.

Source

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

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

Source

pub unsafe fn underline(&self) -> bool

Calls C++ function: bool QGlyphRun::underline() const.

Trait Implementations§

Source§

impl CppDeletable for QGlyphRun

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QGlyphRun>> for QGlyphRun

Source§

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

Calls C++ function: bool QGlyphRun::operator==(const QGlyphRun& 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.