pub struct QTextLine { /* private fields */ }Expand description
C++ class: QTextLine.
Implementations§
Source§impl QTextLine
impl QTextLine
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextLine>>,
) -> Ref<QTextLine>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextLine>>, ) -> Ref<QTextLine>
Calls C++ function: QTextLine& QTextLine::operator=(const QTextLine& other).
Sourcepub unsafe fn cursor_to_x_int_edge(
&self,
cursor_pos: *mut c_int,
edge: Edge,
) -> c_double
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.
Sourcepub unsafe fn cursor_to_x_int_edge2(
&self,
cursor_pos: c_int,
edge: Edge,
) -> c_double
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.
Sourcepub unsafe fn cursor_to_x_int(&self, cursor_pos: *mut c_int) -> c_double
pub unsafe fn cursor_to_x_int(&self, cursor_pos: *mut c_int) -> c_double
Calls C++ function: double QTextLine::cursorToX(int* cursorPos) const.
Sourcepub unsafe fn cursor_to_x_int2(&self, cursor_pos: c_int) -> c_double
pub unsafe fn cursor_to_x_int2(&self, cursor_pos: c_int) -> c_double
Calls C++ function: double QTextLine::cursorToX(int cursorPos) const.
Sourcepub unsafe fn descent(&self) -> c_double
pub unsafe fn descent(&self) -> c_double
Calls C++ function: double QTextLine::descent() const.
Sourcepub unsafe fn draw_3a(
&self,
p: impl CastInto<Ptr<QPainter>>,
point: impl CastInto<Ref<QPointF>>,
selection: impl CastInto<Ptr<FormatRange>>,
)
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.
Sourcepub unsafe fn draw_2a(
&self,
p: impl CastInto<Ptr<QPainter>>,
point: impl CastInto<Ref<QPointF>>,
)
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.
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> QTextLine::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> QTextLine::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> QTextLine::glyphRuns() const.
Sourcepub unsafe fn horizontal_advance(&self) -> c_double
pub unsafe fn horizontal_advance(&self) -> c_double
Calls C++ function: double QTextLine::horizontalAdvance() const.
Sourcepub unsafe fn leading(&self) -> c_double
pub unsafe fn leading(&self) -> c_double
Calls C++ function: double QTextLine::leading() const.
Sourcepub unsafe fn leading_included(&self) -> bool
pub unsafe fn leading_included(&self) -> bool
Calls C++ function: bool QTextLine::leadingIncluded() const.
Sourcepub unsafe fn line_number(&self) -> c_int
pub unsafe fn line_number(&self) -> c_int
Calls C++ function: int QTextLine::lineNumber() const.
Sourcepub unsafe fn natural_text_rect(&self) -> CppBox<QRectF>
pub unsafe fn natural_text_rect(&self) -> CppBox<QRectF>
Calls C++ function: QRectF QTextLine::naturalTextRect() const.
Sourcepub unsafe fn natural_text_width(&self) -> c_double
pub unsafe fn natural_text_width(&self) -> c_double
Calls C++ function: double QTextLine::naturalTextWidth() const.
Sourcepub unsafe fn new() -> CppBox<QTextLine>
pub unsafe fn new() -> CppBox<QTextLine>
Calls C++ function: [constructor] void QTextLine::QTextLine().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextLine>>,
) -> CppBox<QTextLine>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextLine>>, ) -> CppBox<QTextLine>
Calls C++ function: [constructor] void QTextLine::QTextLine(const QTextLine& other).
Sourcepub unsafe fn position(&self) -> CppBox<QPointF>
pub unsafe fn position(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QTextLine::position() const.
Sourcepub unsafe fn rect(&self) -> CppBox<QRectF>
pub unsafe fn rect(&self) -> CppBox<QRectF>
Calls C++ function: QRectF QTextLine::rect() const.
Sourcepub unsafe fn set_leading_included(&self, included: bool)
pub unsafe fn set_leading_included(&self, included: bool)
Calls C++ function: void QTextLine::setLeadingIncluded(bool included).
Sourcepub unsafe fn set_line_width(&self, width: c_double)
pub unsafe fn set_line_width(&self, width: c_double)
Calls C++ function: void QTextLine::setLineWidth(double width).
Sourcepub unsafe fn set_num_columns_1a(&self, columns: c_int)
pub unsafe fn set_num_columns_1a(&self, columns: c_int)
Calls C++ function: void QTextLine::setNumColumns(int columns).
Sourcepub unsafe fn set_num_columns_2a(
&self,
columns: c_int,
alignment_width: c_double,
)
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).
Sourcepub unsafe fn set_position(&self, pos: impl CastInto<Ref<QPointF>>)
pub unsafe fn set_position(&self, pos: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QTextLine::setPosition(const QPointF& pos).
Sourcepub unsafe fn text_length(&self) -> c_int
pub unsafe fn text_length(&self) -> c_int
Calls C++ function: int QTextLine::textLength() const.
Sourcepub unsafe fn text_start(&self) -> c_int
pub unsafe fn text_start(&self) -> c_int
Calls C++ function: int QTextLine::textStart() const.
Sourcepub unsafe fn x_to_cursor_2a(&self, x: c_double, arg2: CursorPosition) -> c_int
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.
Sourcepub unsafe fn x_to_cursor_1a(&self, x: c_double) -> c_int
pub unsafe fn x_to_cursor_1a(&self, x: c_double) -> c_int
Calls C++ function: int QTextLine::xToCursor(double x) const.