[][src]Struct qt_gui::q_text_block_format::MarkerType

#[repr(transparent)]pub struct MarkerType(_);

This enum describes the types of markers a list item can have. If a list item (a paragraph for which QTextBlock::textList() returns the list) has a marker, it is rendered instead of the normal bullet. In this way, checkable list items can be mixed with plain list items in the same list, overriding the type of bullet specified by the QTextListFormat::style() for the entire list.

C++ enum: QTextBlockFormat::MarkerType.

C++ documentation:

This enum describes the types of markers a list item can have. If a list item (a paragraph for which QTextBlock::textList() returns the list) has a marker, it is rendered instead of the normal bullet. In this way, checkable list items can be mixed with plain list items in the same list, overriding the type of bullet specified by the QTextListFormat::style() for the entire list.

In the future, this may be extended to specify other types of paragraph decorations.

This enum was introduced or modified in Qt 5.14.

See also QTextListFormat::style().

Methods

impl MarkerType[src]

pub fn to_int(&self) -> c_int[src]

impl MarkerType[src]

pub const NoMarker: MarkerType[src]

This is the default: the list item's bullet will be shown. (C++ enum variant: NoMarker = 0)

pub const Unchecked: MarkerType[src]

Instead of the list item's bullet, an unchecked checkbox will be shown. (C++ enum variant: Unchecked = 1)

pub const Checked: MarkerType[src]

Instead of the list item's bullet, a checked checkbox will be shown. (C++ enum variant: Checked = 2)

Trait Implementations

impl Clone for MarkerType[src]

impl Copy for MarkerType[src]

impl Debug for MarkerType[src]

impl Eq for MarkerType[src]

impl From<MarkerType> for c_int[src]

impl From<i32> for MarkerType[src]

impl PartialEq<MarkerType> for MarkerType[src]

impl StructuralEq for MarkerType[src]

impl StructuralPartialEq for MarkerType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.