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
.
Each tab definition is represented by this struct.
Implementations§
source§impl Tab
impl Tab
sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<Tab>>) -> Ref<Tab>
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)
.
Each tab definition is represented by this struct.
sourcepub unsafe fn delimiter_mut(&self) -> Ref<QChar>
pub unsafe fn delimiter_mut(&self) -> Ref<QChar>
Returns a mutable reference to the delimiter
field.
sourcepub unsafe fn new_0a() -> CppBox<Tab>
pub unsafe fn new_0a() -> CppBox<Tab>
Creates a default left tab with position 80.
Calls C++ function: [constructor] void QTextOption::Tab::Tab()
.
Creates a default left tab with position 80.
sourcepub unsafe fn new_3a(
pos: c_double,
tab_type: TabType,
delim: impl CastInto<Ref<QChar>>
) -> CppBox<Tab>
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 = …)
.
sourcepub unsafe fn new_2a(pos: c_double, tab_type: TabType) -> CppBox<Tab>
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)
.
sourcepub unsafe fn new_copy(other: impl CastInto<Ref<Tab>>) -> CppBox<Tab>
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)
.
Each tab definition is represented by this struct.
sourcepub unsafe fn set_delimiter(&self, value: impl CastInto<Ref<QChar>>)
pub unsafe fn set_delimiter(&self, value: impl CastInto<Ref<QChar>>)
Sets the value of the delimiter
field.
sourcepub unsafe fn set_position(&self, value: c_double)
pub unsafe fn set_position(&self, value: c_double)
Sets the value of the position
field.