[−][src]Struct qt_gui::q_text_option::Tab
Each tab definition is represented by this struct.
C++ class: QTextOption::Tab
.
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]
&mut self,
other: impl CastInto<Ref<Tab>>
) -> MutRef<Tab>
Each tab definition is represented by this struct.
Calls C++ function: QTextOption::Tab& QTextOption::Tab::operator=(const QTextOption::Tab& other)
.
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()
.
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]
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 = …)
.
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)
.
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()
.
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
.
Returns true
if tab other is equal to this tab; otherwise returns false
.
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,