pub struct QTextFragment { /* private fields */ }Expand description
C++ class: QTextFragment.
Implementations§
Source§impl QTextFragment
impl QTextFragment
Sourcepub unsafe fn char_format(&self) -> CppBox<QTextCharFormat>
pub unsafe fn char_format(&self) -> CppBox<QTextCharFormat>
Calls C++ function: QTextCharFormat QTextFragment::charFormat() const.
Sourcepub unsafe fn char_format_index(&self) -> c_int
pub unsafe fn char_format_index(&self) -> c_int
Calls C++ function: int QTextFragment::charFormatIndex() const.
Sourcepub unsafe fn contains(&self, position: c_int) -> bool
pub unsafe fn contains(&self, position: c_int) -> bool
Calls C++ function: bool QTextFragment::contains(int position) const.
Sourcepub unsafe fn copy_from(
&self,
o: impl CastInto<Ref<QTextFragment>>,
) -> Ref<QTextFragment>
pub unsafe fn copy_from( &self, o: impl CastInto<Ref<QTextFragment>>, ) -> Ref<QTextFragment>
Calls C++ function: QTextFragment& QTextFragment::operator=(const QTextFragment& o).
Sourcepub unsafe fn glyph_runs_2a(
&self,
from: c_int,
length: c_int,
) -> CppBox<QListOfQGlyphRun>
pub unsafe fn glyph_runs_2a( &self, from: c_int, length: c_int, ) -> CppBox<QListOfQGlyphRun>
Calls C++ function: QList<QGlyphRun> QTextFragment::glyphRuns(int from = …, int length = …) const.
Sourcepub unsafe fn glyph_runs_1a(&self, from: c_int) -> CppBox<QListOfQGlyphRun>
pub unsafe fn glyph_runs_1a(&self, from: c_int) -> CppBox<QListOfQGlyphRun>
Calls C++ function: QList<QGlyphRun> QTextFragment::glyphRuns(int from = …) const.
Sourcepub unsafe fn glyph_runs_0a(&self) -> CppBox<QListOfQGlyphRun>
pub unsafe fn glyph_runs_0a(&self) -> CppBox<QListOfQGlyphRun>
Calls C++ function: QList<QGlyphRun> QTextFragment::glyphRuns() const.
Sourcepub unsafe fn new() -> CppBox<QTextFragment>
pub unsafe fn new() -> CppBox<QTextFragment>
Calls C++ function: [constructor] void QTextFragment::QTextFragment().
Sourcepub unsafe fn new_copy(
o: impl CastInto<Ref<QTextFragment>>,
) -> CppBox<QTextFragment>
pub unsafe fn new_copy( o: impl CastInto<Ref<QTextFragment>>, ) -> CppBox<QTextFragment>
Calls C++ function: [constructor] void QTextFragment::QTextFragment(const QTextFragment& o).
Trait Implementations§
Source§impl CppDeletable for QTextFragment
impl CppDeletable for QTextFragment
Source§impl Lt<Ref<QTextFragment>> for QTextFragment
impl Lt<Ref<QTextFragment>> for QTextFragment
Source§impl PartialEq<Ref<QTextFragment>> for QTextFragment
impl PartialEq<Ref<QTextFragment>> for QTextFragment
Auto Trait Implementations§
impl Freeze for QTextFragment
impl RefUnwindSafe for QTextFragment
impl Send for QTextFragment
impl Sync for QTextFragment
impl Unpin for QTextFragment
impl UnsafeUnpin for QTextFragment
impl UnwindSafe for QTextFragment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more