pub struct Property(/* private fields */);
Expand description

This enum describes the different properties a format can have.

C++ enum: QTextFormat::Property.

C++ documentation:

This enum describes the different properties a format can have.

Paragraph and character properties

Paragraph properties

Character properties

List properties

Table and frame properties

Table cell properties

Image properties

Selection properties

Page break properties

See also property() and setProperty().

Implementations§

source§

impl Property

source

pub fn to_int(&self) -> c_int

source§

impl Property

source

pub const ObjectIndex: Property = _

The index of the formatted object. See objectIndex(). (C++ enum variant: ObjectIndex = 0)

source

pub const CssFloat: Property = _

How a frame is located relative to the surrounding text (C++ enum variant: CssFloat = 2048)

source

pub const LayoutDirection: Property = _

The layout direction of the text in the document (Qt::LayoutDirection). (C++ enum variant: LayoutDirection = 2049)

source

pub const OutlinePen: Property = _

  (C++ enum variant: OutlinePen = 2064)

source

pub const BackgroundBrush: Property = _

  (C++ enum variant: BackgroundBrush = 2080)

source

pub const ForegroundBrush: Property = _

  (C++ enum variant: ForegroundBrush = 2081)

source

pub const BackgroundImageUrl: Property = _

  (C++ enum variant: BackgroundImageUrl = 2083)

source

pub const BlockAlignment: Property = _

  (C++ enum variant: BlockAlignment = 4112)

source

pub const BlockTopMargin: Property = _

  (C++ enum variant: BlockTopMargin = 4144)

source

pub const BlockBottomMargin: Property = _

  (C++ enum variant: BlockBottomMargin = 4145)

source

pub const BlockLeftMargin: Property = _

  (C++ enum variant: BlockLeftMargin = 4146)

source

pub const BlockRightMargin: Property = _

  (C++ enum variant: BlockRightMargin = 4147)

source

pub const TextIndent: Property = _

  (C++ enum variant: TextIndent = 4148)

source

pub const TabPositions: Property = _

Specifies the tab positions. The tab positions are structs of QTextOption::Tab which are stored in a QList (internally, in a QList<QVariant>). (C++ enum variant: TabPositions = 4149)

source

pub const BlockIndent: Property = _

  (C++ enum variant: BlockIndent = 4160)

source

pub const LineHeight: Property = _

  (C++ enum variant: LineHeight = 4168)

source

pub const LineHeightType: Property = _

  (C++ enum variant: LineHeightType = 4169)

source

pub const BlockNonBreakableLines: Property = _

  (C++ enum variant: BlockNonBreakableLines = 4176)

source

pub const BlockTrailingHorizontalRulerWidth: Property = _

The width of a horizontal ruler element. (C++ enum variant: BlockTrailingHorizontalRulerWidth = 4192)

source

pub const FirstFontProperty: Property = _

C++ enum variant: FirstFontProperty = 8160

source

pub const FontCapitalization: Property = _

Specifies the capitalization type that is to be applied to the text. (C++ enum variant: FontCapitalization = 8160)

source

pub const FontLetterSpacingType: Property = _

Specifies the meaning of the FontLetterSpacing property. The default is QFont::PercentageSpacing. (C++ enum variant: FontLetterSpacingType = 8243)

source

pub const FontLetterSpacing: Property = _

Changes the default spacing between individual letters in the font. The value is specified as a percentage or absolute value, depending on FontLetterSpacingType. The default value is 100%. (C++ enum variant: FontLetterSpacing = 8161)

source

pub const FontWordSpacing: Property = _

Changes the default spacing between individual words. A positive value increases the word spacing by the corresponding pixels; a negative value decreases the spacing. (C++ enum variant: FontWordSpacing = 8162)

source

pub const FontStretch: Property = _

Corresponds to the QFont::Stretch property (C++ enum variant: FontStretch = 8244)

source

pub const FontStyleHint: Property = _

Corresponds to the QFont::StyleHint property (C++ enum variant: FontStyleHint = 8163)

source

pub const FontStyleStrategy: Property = _

Corresponds to the QFont::StyleStrategy property (C++ enum variant: FontStyleStrategy = 8164)

source

pub const FontKerning: Property = _

Specifies whether the font has kerning turned on. (C++ enum variant: FontKerning = 8165)

source

pub const FontHintingPreference: Property = _

Controls the use of hinting according to values of the QFont::HintingPreference enum. (C++ enum variant: FontHintingPreference = 8166)

source

pub const FontFamily: Property = _

  (C++ enum variant: FontFamily = 8192)

source

pub const FontPointSize: Property = _

  (C++ enum variant: FontPointSize = 8193)

source

pub const FontSizeAdjustment: Property = _

Specifies the change in size given to the fontsize already set using FontPointSize or FontPixelSize. (C++ enum variant: FontSizeAdjustment = 8194)

source

pub const FontSizeIncrement: Property = _

C++ enum variant: FontSizeIncrement = 8194

source

pub const FontWeight: Property = _

  (C++ enum variant: FontWeight = 8195)

source

pub const FontItalic: Property = _

  (C++ enum variant: FontItalic = 8196)

source

pub const FontUnderline: Property = _

This property has been deprecated. Use QTextFormat::TextUnderlineStyle instead. (C++ enum variant: FontUnderline = 8197)

source

pub const FontOverline: Property = _

  (C++ enum variant: FontOverline = 8198)

source

pub const FontStrikeOut: Property = _

  (C++ enum variant: FontStrikeOut = 8199)

source

pub const FontFixedPitch: Property = _

  (C++ enum variant: FontFixedPitch = 8200)

source

pub const FontPixelSize: Property = _

  (C++ enum variant: FontPixelSize = 8201)

source

pub const LastFontProperty: Property = _

C++ enum variant: LastFontProperty = 8201

source

pub const TextUnderlineColor: Property = _

  (C++ enum variant: TextUnderlineColor = 8208)

source

pub const TextVerticalAlignment: Property = _

  (C++ enum variant: TextVerticalAlignment = 8225)

source

pub const TextOutline: Property = _

  (C++ enum variant: TextOutline = 8226)

source

pub const TextUnderlineStyle: Property = _

  (C++ enum variant: TextUnderlineStyle = 8227)

source

pub const TextToolTip: Property = _

Specifies the (optional) tool tip to be displayed for a fragment of text. (C++ enum variant: TextToolTip = 8228)

source

pub const IsAnchor: Property = _

  (C++ enum variant: IsAnchor = 8240)

source

pub const AnchorHref: Property = _

  (C++ enum variant: AnchorHref = 8241)

source

pub const AnchorName: Property = _

  (C++ enum variant: AnchorName = 8242)

source

pub const ObjectType: Property = _

  (C++ enum variant: ObjectType = 12032)

source

pub const ListStyle: Property = _

Specifies the style used for the items in a list, described by values of the QTextListFormat::Style enum. (C++ enum variant: ListStyle = 12288)

source

pub const ListIndent: Property = _

Specifies the amount of indentation used for a list. (C++ enum variant: ListIndent = 12289)

source

pub const ListNumberPrefix: Property = _

Defines the text which is prepended to item numbers in numeric lists. (C++ enum variant: ListNumberPrefix = 12290)

source

pub const ListNumberSuffix: Property = _

Defines the text which is appended to item numbers in numeric lists. (C++ enum variant: ListNumberSuffix = 12291)

source

pub const FrameBorder: Property = _

  (C++ enum variant: FrameBorder = 16384)

source

pub const FrameMargin: Property = _

  (C++ enum variant: FrameMargin = 16385)

source

pub const FramePadding: Property = _

  (C++ enum variant: FramePadding = 16386)

source

pub const FrameWidth: Property = _

  (C++ enum variant: FrameWidth = 16387)

source

pub const FrameHeight: Property = _

  (C++ enum variant: FrameHeight = 16388)

source

pub const FrameTopMargin: Property = _

  (C++ enum variant: FrameTopMargin = 16389)

source

pub const FrameBottomMargin: Property = _

  (C++ enum variant: FrameBottomMargin = 16390)

source

pub const FrameLeftMargin: Property = _

  (C++ enum variant: FrameLeftMargin = 16391)

source

pub const FrameRightMargin: Property = _

  (C++ enum variant: FrameRightMargin = 16392)

source

pub const FrameBorderBrush: Property = _

  (C++ enum variant: FrameBorderBrush = 16393)

source

pub const FrameBorderStyle: Property = _

See the BorderStyle enum. (C++ enum variant: FrameBorderStyle = 16400)

source

pub const TableColumns: Property = _

  (C++ enum variant: TableColumns = 16640)

source

pub const TableColumnWidthConstraints: Property = _

  (C++ enum variant: TableColumnWidthConstraints = 16641)

source

pub const TableCellSpacing: Property = _

  (C++ enum variant: TableCellSpacing = 16642)

source

pub const TableCellPadding: Property = _

  (C++ enum variant: TableCellPadding = 16643)

source

pub const TableHeaderRowCount: Property = _

  (C++ enum variant: TableHeaderRowCount = 16644)

source

pub const TableCellRowSpan: Property = _

C++ enum variant: TableCellRowSpan = 18448

source

pub const TableCellColumnSpan: Property = _

C++ enum variant: TableCellColumnSpan = 18449

source

pub const TableCellTopPadding: Property = _

C++ enum variant: TableCellTopPadding = 18450

source

pub const TableCellBottomPadding: Property = _

C++ enum variant: TableCellBottomPadding = 18451

source

pub const TableCellLeftPadding: Property = _

C++ enum variant: TableCellLeftPadding = 18452

source

pub const TableCellRightPadding: Property = _

C++ enum variant: TableCellRightPadding = 18453

source

pub const ImageName: Property = _

The filename or source of the image. (C++ enum variant: ImageName = 20480)

source

pub const ImageWidth: Property = _

  (C++ enum variant: ImageWidth = 20496)

source

pub const ImageHeight: Property = _

  (C++ enum variant: ImageHeight = 20497)

source

pub const FullWidthSelection: Property = _

When set on the characterFormat of a selection, the whole width of the text will be shown selected. (C++ enum variant: FullWidthSelection = 24576)

source

pub const PageBreakPolicy: Property = _

Specifies how pages are broken. See the PageBreakFlag enum. (C++ enum variant: PageBreakPolicy = 28672)

source

pub const UserProperty: Property = _

  (C++ enum variant: UserProperty = 1048576)

source

pub const HeadingLevel: Property = _

The level of a heading, for example 1 corresponds to an HTML H1 tag; otherwise 0. This enum value has been added in Qt 5.12. (C++ enum variant: HeadingLevel = 4208)

source

pub const ImageQuality: Property = _

  (C++ enum variant: ImageQuality = 20500)

source

pub const FontFamilies: Property = _

  (C++ enum variant: FontFamilies = 8167)

source

pub const FontStyleName: Property = _

  (C++ enum variant: FontStyleName = 8168)

source

pub const BlockQuoteLevel: Property = _

The depth of nested quoting on this block: 1 means the block is a top-level block quote. Blocks that are not block quotes should not have this property. This enum value has been added in Qt 5.14. (C++ enum variant: BlockQuoteLevel = 4224)

source

pub const BlockCodeLanguage: Property = _

The programming language in a preformatted or code block. Blocks that do not contain code should not have this property. This enum value has been added in Qt 5.14. (C++ enum variant: BlockCodeLanguage = 4240)

source

pub const BlockCodeFence: Property = _

The character that was used in the “fences” around a Markdown code block. If the code block was indented rather than fenced, the block should not have this property. This enum value has been added in Qt 5.14. (C++ enum variant: BlockCodeFence = 4241)

source

pub const BlockMarker: Property = _

The type of adornment to be shown alongside the block. This enum value has been added in Qt 5.14. (C++ enum variant: BlockMarker = 4256)

source

pub const TableBorderCollapse: Property = _

Specifies the QTextTableFormat::borderCollapse property. (C++ enum variant: TableBorderCollapse = 16645)

source

pub const TableCellTopBorder: Property = _

C++ enum variant: TableCellTopBorder = 18454

source

pub const TableCellBottomBorder: Property = _

C++ enum variant: TableCellBottomBorder = 18455

source

pub const TableCellLeftBorder: Property = _

C++ enum variant: TableCellLeftBorder = 18456

source

pub const TableCellRightBorder: Property = _

C++ enum variant: TableCellRightBorder = 18457

source

pub const TableCellTopBorderStyle: Property = _

C++ enum variant: TableCellTopBorderStyle = 18458

source

pub const TableCellBottomBorderStyle: Property = _

C++ enum variant: TableCellBottomBorderStyle = 18459

source

pub const TableCellLeftBorderStyle: Property = _

C++ enum variant: TableCellLeftBorderStyle = 18460

source

pub const TableCellRightBorderStyle: Property = _

C++ enum variant: TableCellRightBorderStyle = 18461

source

pub const TableCellTopBorderBrush: Property = _

C++ enum variant: TableCellTopBorderBrush = 18462

source

pub const TableCellBottomBorderBrush: Property = _

C++ enum variant: TableCellBottomBorderBrush = 18463

source

pub const TableCellLeftBorderBrush: Property = _

C++ enum variant: TableCellLeftBorderBrush = 18464

source

pub const TableCellRightBorderBrush: Property = _

C++ enum variant: TableCellRightBorderBrush = 18465

source

pub const ImageTitle: Property = _

The title attribute of an HTML image tag, or the quoted string that comes after the URL in a Markdown image link. This enum value has been added in Qt 5.14. (C++ enum variant: ImageTitle = 20481)

source

pub const ImageAltText: Property = _

The alt attribute of an HTML image tag, or the image description in a Markdown image link. This enum value has been added in Qt 5.14. (C++ enum variant: ImageAltText = 20482)

Trait Implementations§

source§

impl Clone for Property

source§

fn clone(&self) -> Property

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Property

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Property> for c_int

source§

fn from(value: Property) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Property

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Property

source§

fn eq(&self, other: &Property) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Property

source§

impl Eq for Property

source§

impl StructuralEq for Property

source§

impl StructuralPartialEq for Property

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.