Skip to main content

QTextTableFormat

Struct QTextTableFormat 

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

C++ class: QTextTableFormat.

Implementations§

Source§

impl QTextTableFormat

Source

pub unsafe fn alignment(&self) -> QFlags<AlignmentFlag>

Calls C++ function: QFlags<Qt::AlignmentFlag> QTextTableFormat::alignment() const.

Source

pub unsafe fn border_collapse(&self) -> bool

Calls C++ function: bool QTextTableFormat::borderCollapse() const.

Source

pub unsafe fn cell_padding(&self) -> c_double

Calls C++ function: double QTextTableFormat::cellPadding() const.

Source

pub unsafe fn cell_spacing(&self) -> c_double

Calls C++ function: double QTextTableFormat::cellSpacing() const.

Source

pub unsafe fn clear_column_width_constraints(&self)

Calls C++ function: void QTextTableFormat::clearColumnWidthConstraints().

Source

pub unsafe fn column_width_constraints(&self) -> CppBox<QVectorOfQTextLength>

Calls C++ function: QVector<QTextLength> QTextTableFormat::columnWidthConstraints() const.

Source

pub unsafe fn columns(&self) -> c_int

Calls C++ function: int QTextTableFormat::columns() const.

Source

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

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

Source

pub unsafe fn header_row_count(&self) -> c_int

Calls C++ function: int QTextTableFormat::headerRowCount() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

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

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

Source

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

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

Source

pub unsafe fn set_alignment(&self, alignment: QFlags<AlignmentFlag>)

Calls C++ function: void QTextTableFormat::setAlignment(QFlags<Qt::AlignmentFlag> alignment).

Source

pub unsafe fn set_border_collapse(&self, border_collapse: bool)

Calls C++ function: void QTextTableFormat::setBorderCollapse(bool borderCollapse).

Source

pub unsafe fn set_cell_padding(&self, padding: c_double)

Calls C++ function: void QTextTableFormat::setCellPadding(double padding).

Source

pub unsafe fn set_cell_spacing(&self, spacing: c_double)

Calls C++ function: void QTextTableFormat::setCellSpacing(double spacing).

Source

pub unsafe fn set_column_width_constraints( &self, constraints: impl CastInto<Ref<QVectorOfQTextLength>>, )

Calls C++ function: void QTextTableFormat::setColumnWidthConstraints(const QVector<QTextLength>& constraints).

Source

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

Calls C++ function: void QTextTableFormat::setColumns(int columns).

Source

pub unsafe fn set_header_row_count(&self, count: c_int)

Calls C++ function: void QTextTableFormat::setHeaderRowCount(int count).

Methods from Deref<Target = QTextFrameFormat>§

Source

pub unsafe fn border(&self) -> c_double

Calls C++ function: double QTextFrameFormat::border() const.

Source

pub unsafe fn border_brush(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFrameFormat::borderBrush() const.

Source

pub unsafe fn border_style(&self) -> BorderStyle

Calls C++ function: QTextFrameFormat::BorderStyle QTextFrameFormat::borderStyle() const.

Source

pub unsafe fn bottom_margin(&self) -> c_double

Calls C++ function: double QTextFrameFormat::bottomMargin() const.

Source

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

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

Source

pub unsafe fn height(&self) -> CppBox<QTextLength>

Calls C++ function: QTextLength QTextFrameFormat::height() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

pub unsafe fn left_margin(&self) -> c_double

Calls C++ function: double QTextFrameFormat::leftMargin() const.

Source

pub unsafe fn margin(&self) -> c_double

Calls C++ function: double QTextFrameFormat::margin() const.

Source

pub unsafe fn padding(&self) -> c_double

Calls C++ function: double QTextFrameFormat::padding() const.

Source

pub unsafe fn page_break_policy(&self) -> QFlags<PageBreakFlag>

Calls C++ function: QFlags<QTextFormat::PageBreakFlag> QTextFrameFormat::pageBreakPolicy() const.

Source

pub unsafe fn position(&self) -> Position

Calls C++ function: QTextFrameFormat::Position QTextFrameFormat::position() const.

Source

pub unsafe fn right_margin(&self) -> c_double

Calls C++ function: double QTextFrameFormat::rightMargin() const.

Source

pub unsafe fn set_border(&self, border: c_double)

Calls C++ function: void QTextFrameFormat::setBorder(double border).

Source

pub unsafe fn set_border_brush(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFrameFormat::setBorderBrush(const QBrush& brush).

Source

pub unsafe fn set_border_style(&self, style: BorderStyle)

Calls C++ function: void QTextFrameFormat::setBorderStyle(QTextFrameFormat::BorderStyle style).

Source

pub unsafe fn set_bottom_margin(&self, margin: c_double)

Calls C++ function: void QTextFrameFormat::setBottomMargin(double margin).

Source

pub unsafe fn set_height_double(&self, height: c_double)

Calls C++ function: void QTextFrameFormat::setHeight(double height).

Source

pub unsafe fn set_height_q_text_length( &self, height: impl CastInto<Ref<QTextLength>>, )

Calls C++ function: void QTextFrameFormat::setHeight(const QTextLength& height).

Source

pub unsafe fn set_left_margin(&self, margin: c_double)

Calls C++ function: void QTextFrameFormat::setLeftMargin(double margin).

Source

pub unsafe fn set_margin(&self, margin: c_double)

Calls C++ function: void QTextFrameFormat::setMargin(double margin).

Source

pub unsafe fn set_padding(&self, padding: c_double)

Calls C++ function: void QTextFrameFormat::setPadding(double padding).

Source

pub unsafe fn set_page_break_policy(&self, flags: QFlags<PageBreakFlag>)

Calls C++ function: void QTextFrameFormat::setPageBreakPolicy(QFlags<QTextFormat::PageBreakFlag> flags).

Source

pub unsafe fn set_position(&self, f: Position)

Calls C++ function: void QTextFrameFormat::setPosition(QTextFrameFormat::Position f).

Source

pub unsafe fn set_right_margin(&self, margin: c_double)

Calls C++ function: void QTextFrameFormat::setRightMargin(double margin).

Source

pub unsafe fn set_top_margin(&self, margin: c_double)

Calls C++ function: void QTextFrameFormat::setTopMargin(double margin).

Source

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

Calls C++ function: void QTextFrameFormat::setWidth(double width).

Source

pub unsafe fn set_width_q_text_length( &self, length: impl CastInto<Ref<QTextLength>>, )

Calls C++ function: void QTextFrameFormat::setWidth(const QTextLength& length).

Source

pub unsafe fn top_margin(&self) -> c_double

Calls C++ function: double QTextFrameFormat::topMargin() const.

Source

pub unsafe fn width(&self) -> CppBox<QTextLength>

Calls C++ function: QTextLength QTextFrameFormat::width() const.

Methods from Deref<Target = QTextFormat>§

Source

pub unsafe fn background(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::background() const.

Source

pub unsafe fn bool_property(&self, property_id: c_int) -> bool

Calls C++ function: bool QTextFormat::boolProperty(int propertyId) const.

Source

pub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::brushProperty(int propertyId) const.

Source

pub unsafe fn clear_background(&self)

Calls C++ function: void QTextFormat::clearBackground().

Source

pub unsafe fn clear_foreground(&self)

Calls C++ function: void QTextFormat::clearForeground().

Source

pub unsafe fn clear_property(&self, property_id: c_int)

Calls C++ function: void QTextFormat::clearProperty(int propertyId).

Source

pub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>

Calls C++ function: QColor QTextFormat::colorProperty(int propertyId) const.

Source

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

Calls C++ function: QTextFormat& QTextFormat::operator=(const QTextFormat& rhs).

Source

pub unsafe fn double_property(&self, property_id: c_int) -> c_double

Calls C++ function: double QTextFormat::doubleProperty(int propertyId) const.

Source

pub unsafe fn foreground(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::foreground() const.

Source

pub unsafe fn has_property(&self, property_id: c_int) -> bool

Calls C++ function: bool QTextFormat::hasProperty(int propertyId) const.

Source

pub unsafe fn int_property(&self, property_id: c_int) -> c_int

Calls C++ function: int QTextFormat::intProperty(int propertyId) const.

Source

pub unsafe fn is_block_format(&self) -> bool

Calls C++ function: bool QTextFormat::isBlockFormat() const.

Source

pub unsafe fn is_char_format(&self) -> bool

Calls C++ function: bool QTextFormat::isCharFormat() const.

Source

pub unsafe fn is_empty(&self) -> bool

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

Source

pub unsafe fn is_frame_format(&self) -> bool

Calls C++ function: bool QTextFormat::isFrameFormat() const.

Source

pub unsafe fn is_image_format(&self) -> bool

Calls C++ function: bool QTextFormat::isImageFormat() const.

Source

pub unsafe fn is_list_format(&self) -> bool

Calls C++ function: bool QTextFormat::isListFormat() const.

Source

pub unsafe fn is_table_cell_format(&self) -> bool

Calls C++ function: bool QTextFormat::isTableCellFormat() const.

Source

pub unsafe fn is_table_format(&self) -> bool

Calls C++ function: bool QTextFormat::isTableFormat() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

pub unsafe fn layout_direction(&self) -> LayoutDirection

Calls C++ function: Qt::LayoutDirection QTextFormat::layoutDirection() const.

Source

pub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>

Calls C++ function: QTextLength QTextFormat::lengthProperty(int propertyId) const.

Source

pub unsafe fn length_vector_property( &self, property_id: c_int, ) -> CppBox<QVectorOfQTextLength>

Calls C++ function: QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) const.

Source

pub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)

Calls C++ function: void QTextFormat::merge(const QTextFormat& other).

Source

pub unsafe fn object_index(&self) -> c_int

Calls C++ function: int QTextFormat::objectIndex() const.

Source

pub unsafe fn object_type(&self) -> c_int

Calls C++ function: int QTextFormat::objectType() const.

Source

pub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>

Calls C++ function: QPen QTextFormat::penProperty(int propertyId) const.

Source

pub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>

Calls C++ function: QMap<int, QVariant> QTextFormat::properties() const.

Source

pub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>

Calls C++ function: QVariant QTextFormat::property(int propertyId) const.

Source

pub unsafe fn property_count(&self) -> c_int

Calls C++ function: int QTextFormat::propertyCount() const.

Source

pub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFormat::setBackground(const QBrush& brush).

Source

pub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFormat::setForeground(const QBrush& brush).

Source

pub unsafe fn set_layout_direction(&self, direction: LayoutDirection)

Calls C++ function: void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction).

Source

pub unsafe fn set_object_index(&self, object: c_int)

Calls C++ function: void QTextFormat::setObjectIndex(int object).

Source

pub unsafe fn set_object_type(&self, type_: c_int)

Calls C++ function: void QTextFormat::setObjectType(int type).

Source

pub unsafe fn set_property_int_q_variant( &self, property_id: c_int, value: impl CastInto<Ref<QVariant>>, )

Calls C++ function: void QTextFormat::setProperty(int propertyId, const QVariant& value).

Source

pub unsafe fn set_property_int_q_vector_of_q_text_length( &self, property_id: c_int, lengths: impl CastInto<Ref<QVectorOfQTextLength>>, )

Calls C++ function: void QTextFormat::setProperty(int propertyId, const QVector<QTextLength>& lengths).

Source

pub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>

Calls C++ function: QString QTextFormat::stringProperty(int propertyId) const.

Source

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

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

Source

pub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>

Calls C++ function: QTextBlockFormat QTextFormat::toBlockFormat() const.

Source

pub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>

Calls C++ function: QTextCharFormat QTextFormat::toCharFormat() const.

Source

pub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>

Calls C++ function: QTextFrameFormat QTextFormat::toFrameFormat() const.

Source

pub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>

Calls C++ function: QTextImageFormat QTextFormat::toImageFormat() const.

Source

pub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>

Calls C++ function: QTextListFormat QTextFormat::toListFormat() const.

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QTextFormat::operator QVariant() const.

Source

pub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>

Calls C++ function: QTextTableCellFormat QTextFormat::toTableCellFormat() const.

Source

pub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>

Calls C++ function: QTextTableFormat QTextFormat::toTableFormat() const.

Source

pub unsafe fn type_(&self) -> c_int

Calls C++ function: int QTextFormat::type() const.

Trait Implementations§

Source§

impl CppDeletable for QTextTableFormat

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QTextTableFormat

Source§

fn deref(&self) -> &QTextFrameFormat

Calls C++ function: QTextFrameFormat* static_cast<QTextFrameFormat*>(QTextTableFormat* ptr).

Source§

type Target = QTextFrameFormat

The resulting type after dereferencing.
Source§

impl StaticDowncast<QTextTableFormat> for QTextFormat

Source§

unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextTableFormat>

Calls C++ function: QTextTableFormat* static_cast<QTextTableFormat*>(QTextFormat* ptr).

Source§

impl StaticDowncast<QTextTableFormat> for QTextFrameFormat

Source§

unsafe fn static_downcast(ptr: Ptr<QTextFrameFormat>) -> Ptr<QTextTableFormat>

Calls C++ function: QTextTableFormat* static_cast<QTextTableFormat*>(QTextFrameFormat* ptr).

Source§

impl StaticUpcast<QTextFormat> for QTextTableFormat

Source§

unsafe fn static_upcast(ptr: Ptr<QTextTableFormat>) -> Ptr<QTextFormat>

Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextTableFormat* ptr).

Source§

impl StaticUpcast<QTextFrameFormat> for QTextTableFormat

Source§

unsafe fn static_upcast(ptr: Ptr<QTextTableFormat>) -> Ptr<QTextFrameFormat>

Calls C++ function: QTextFrameFormat* static_cast<QTextFrameFormat*>(QTextTableFormat* ptr).

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.