Struct qt_gui::q_text_option::Tab

source ·
#[repr(C)]
pub struct Tab { /* private fields */ }
Expand description

Each tab definition is represented by this struct.

C++ class: QTextOption::Tab.

C++ documentation:

Each tab definition is represented by this struct.

Implementations§

source§

impl Tab

source

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

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.

source

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

Returns a reference to the delimiter field.

source

pub unsafe fn delimiter_mut(&self) -> Ref<QChar>

Returns a mutable reference to the delimiter field.

source

pub unsafe fn new_0a() -> CppBox<Tab>

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.

source

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

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

source

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

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

source

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

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.

source

pub unsafe fn position(&self) -> c_double

Returns the value of the position field.

source

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

Sets the value of the delimiter field.

source

pub unsafe fn set_position(&self, value: c_double)

Sets the value of the position field.

source

pub unsafe fn set_type(&self, value: TabType)

Sets the value of the type field.

source

pub unsafe fn type_(&self) -> TabType

Returns the value of the type field.

Trait Implementations§

source§

impl CppDeletable for Tab

source§

unsafe fn delete(&self)

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.

source§

impl PartialEq<Ref<Tab>> for Tab

source§

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

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.

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.

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§

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