Skip to main content

QTextLine

Struct QTextLine 

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

C++ class: QTextLine.

Implementations§

Source§

impl QTextLine

Source

pub unsafe fn ascent(&self) -> c_double

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

Source

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

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

Source

pub unsafe fn cursor_to_x_int_edge( &self, cursor_pos: *mut c_int, edge: Edge, ) -> c_double

Calls C++ function: double QTextLine::cursorToX(int* cursorPos, QTextLine::Edge edge = …) const.

Source

pub unsafe fn cursor_to_x_int_edge2( &self, cursor_pos: c_int, edge: Edge, ) -> c_double

Calls C++ function: double QTextLine::cursorToX(int cursorPos, QTextLine::Edge edge = …) const.

Source

pub unsafe fn cursor_to_x_int(&self, cursor_pos: *mut c_int) -> c_double

Calls C++ function: double QTextLine::cursorToX(int* cursorPos) const.

Source

pub unsafe fn cursor_to_x_int2(&self, cursor_pos: c_int) -> c_double

Calls C++ function: double QTextLine::cursorToX(int cursorPos) const.

Source

pub unsafe fn descent(&self) -> c_double

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

Source

pub unsafe fn draw_3a( &self, p: impl CastInto<Ptr<QPainter>>, point: impl CastInto<Ref<QPointF>>, selection: impl CastInto<Ptr<FormatRange>>, )

Calls C++ function: void QTextLine::draw(QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection = …) const.

Source

pub unsafe fn draw_2a( &self, p: impl CastInto<Ptr<QPainter>>, point: impl CastInto<Ref<QPointF>>, )

Calls C++ function: void QTextLine::draw(QPainter* p, const QPointF& point) const.

Source

pub unsafe fn glyph_runs_2a( &self, from: c_int, length: c_int, ) -> CppBox<QListOfQGlyphRun>

Calls C++ function: QList<QGlyphRun> QTextLine::glyphRuns(int from = …, int length = …) const.

Source

pub unsafe fn glyph_runs_1a(&self, from: c_int) -> CppBox<QListOfQGlyphRun>

Calls C++ function: QList<QGlyphRun> QTextLine::glyphRuns(int from = …) const.

Source

pub unsafe fn glyph_runs_0a(&self) -> CppBox<QListOfQGlyphRun>

Calls C++ function: QList<QGlyphRun> QTextLine::glyphRuns() const.

Source

pub unsafe fn height(&self) -> c_double

Calls C++ function: double QTextLine::height() const.

Source

pub unsafe fn horizontal_advance(&self) -> c_double

Calls C++ function: double QTextLine::horizontalAdvance() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

pub unsafe fn leading(&self) -> c_double

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

Source

pub unsafe fn leading_included(&self) -> bool

Calls C++ function: bool QTextLine::leadingIncluded() const.

Source

pub unsafe fn line_number(&self) -> c_int

Calls C++ function: int QTextLine::lineNumber() const.

Source

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

Calls C++ function: QRectF QTextLine::naturalTextRect() const.

Source

pub unsafe fn natural_text_width(&self) -> c_double

Calls C++ function: double QTextLine::naturalTextWidth() const.

Source

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

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

Source

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

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

Source

pub unsafe fn position(&self) -> CppBox<QPointF>

Calls C++ function: QPointF QTextLine::position() const.

Source

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

Calls C++ function: QRectF QTextLine::rect() const.

Source

pub unsafe fn set_leading_included(&self, included: bool)

Calls C++ function: void QTextLine::setLeadingIncluded(bool included).

Source

pub unsafe fn set_line_width(&self, width: c_double)

Calls C++ function: void QTextLine::setLineWidth(double width).

Source

pub unsafe fn set_num_columns_1a(&self, columns: c_int)

Calls C++ function: void QTextLine::setNumColumns(int columns).

Source

pub unsafe fn set_num_columns_2a( &self, columns: c_int, alignment_width: c_double, )

Calls C++ function: void QTextLine::setNumColumns(int columns, double alignmentWidth).

Source

pub unsafe fn set_position(&self, pos: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QTextLine::setPosition(const QPointF& pos).

Source

pub unsafe fn text_length(&self) -> c_int

Calls C++ function: int QTextLine::textLength() const.

Source

pub unsafe fn text_start(&self) -> c_int

Calls C++ function: int QTextLine::textStart() const.

Source

pub unsafe fn width(&self) -> c_double

Calls C++ function: double QTextLine::width() const.

Source

pub unsafe fn x(&self) -> c_double

Calls C++ function: double QTextLine::x() const.

Source

pub unsafe fn x_to_cursor_2a(&self, x: c_double, arg2: CursorPosition) -> c_int

Calls C++ function: int QTextLine::xToCursor(double x, QTextLine::CursorPosition arg2 = …) const.

Source

pub unsafe fn x_to_cursor_1a(&self, x: c_double) -> c_int

Calls C++ function: int QTextLine::xToCursor(double x) const.

Source

pub unsafe fn y(&self) -> c_double

Calls C++ function: double QTextLine::y() const.

Trait Implementations§

Source§

impl CppDeletable for QTextLine

Source§

unsafe fn delete(&self)

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

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.