[][src]Struct qt_gui::q_text_option::Tab

#[repr(C)]
pub struct Tab { /* fields omitted */ }

Each tab definition is represented by this struct.

C++ class: QTextOption::Tab.

C++ documentation:

Each tab definition is represented by this struct.

Methods

impl Tab[src]

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<Tab>>
) -> MutRef<Tab>
[src]

Each tab definition is represented by this struct.

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

C++ documentation:

Each tab definition is represented by this struct.

pub unsafe fn delimiter(&self) -> Ref<QChar>[src]

Returns a reference to the delimiter field.

pub unsafe fn delimiter_mut(&mut self) -> MutRef<QChar>[src]

Returns a mutable reference to the delimiter field.

pub unsafe fn new_0a() -> CppBox<Tab>[src]

Creates a default left tab with position 80.

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

C++ documentation:

Creates a default left tab with position 80.

pub unsafe fn new_3a(
    pos: c_double,
    tab_type: TabType,
    delim: impl CastInto<Ref<QChar>>
) -> CppBox<Tab>
[src]

Calls C++ function: [constructor] void QTextOption::Tab::Tab(double pos, QTextOption::TabType tabType, QChar delim = …).

pub unsafe fn new_2a(pos: c_double, tab_type: TabType) -> CppBox<Tab>[src]

Calls C++ function: [constructor] void QTextOption::Tab::Tab(double pos, QTextOption::TabType tabType).

pub unsafe fn new_copy(other: impl CastInto<Ref<Tab>>) -> CppBox<Tab>[src]

Each tab definition is represented by this struct.

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

C++ documentation:

Each tab definition is represented by this struct.

pub unsafe fn position(&self) -> c_double[src]

Returns the value of the position field.

pub unsafe fn set_delimiter(&mut self, value: impl CastInto<Ref<QChar>>)[src]

Sets the value of the delimiter field.

pub unsafe fn set_position(&mut self, value: c_double)[src]

Sets the value of the position field.

pub unsafe fn set_type(&mut self, value: TabType)[src]

Sets the value of the type field.

pub unsafe fn type_(&self) -> TabType[src]

Returns the value of the type field.

Trait Implementations

impl CppDeletable for Tab[src]

unsafe fn delete(&mut self)[src]

Each tab definition is represented by this struct.

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

C++ documentation:

Each tab definition is represented by this struct.

impl PartialEq<Ref<Tab>> for Tab[src]

fn eq(&self, other: &Ref<Tab>) -> bool[src]

Returns true if tab other is equal to this tab; otherwise returns false.

Calls C++ function: bool QTextOption::Tab::operator==(const QTextOption::Tab& other) const.

C++ documentation:

Returns true if tab other is equal to this tab; otherwise returns false.

Auto Trait Implementations

impl RefUnwindSafe for Tab

impl Send for Tab

impl Sync for Tab

impl Unpin for Tab

impl UnwindSafe for Tab

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