[][src]Struct qt_gui::q_text_format::PageBreakFlag

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

This enum describes how page breaking is performed when printing. It maps to the corresponding css properties.

C++ enum: QTextFormat::PageBreakFlag.

C++ documentation:

This enum describes how page breaking is performed when printing. It maps to the corresponding css properties.

This enum was introduced or modified in Qt 4.2.

The PageBreakFlags type is a typedef for QFlags<PageBreakFlag>. It stores an OR combination of PageBreakFlag values.

See also QTextBlockFormat::pageBreakPolicy(), QTextFrameFormat::pageBreakPolicy(), and PageBreakPolicy.

Methods

impl PageBreakFlag[src]

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

impl PageBreakFlag[src]

pub const PageBreakAuto: PageBreakFlag[src]

The page break is determined automatically depending on the available space on the current page (C++ enum variant: PageBreak_Auto = 0)

pub const PageBreakAlwaysBefore: PageBreakFlag[src]

The page is always broken before the paragraph/table (C++ enum variant: PageBreak_AlwaysBefore = 1)

pub const PageBreakAlwaysAfter: PageBreakFlag[src]

A new page is always started after the paragraph/table (C++ enum variant: PageBreak_AlwaysAfter = 16)

Trait Implementations

impl<T: Into<QFlags<PageBreakFlag>>> BitOr<T> for PageBreakFlag[src]

type Output = QFlags<PageBreakFlag>

The resulting type after applying the | operator.

impl Clone for PageBreakFlag[src]

impl Copy for PageBreakFlag[src]

impl Debug for PageBreakFlag[src]

impl Eq for PageBreakFlag[src]

impl From<PageBreakFlag> for c_int[src]

impl From<PageBreakFlag> for QFlags<PageBreakFlag>[src]

impl From<i32> for PageBreakFlag[src]

impl PartialEq<PageBreakFlag> for PageBreakFlag[src]

impl StructuralEq for PageBreakFlag[src]

impl StructuralPartialEq for PageBreakFlag[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.