pub struct TabItem<'a> { /* private fields */ }
Available on crate feature
gui
only.Expand description
A single item of a Tab
control.
Note: Each object keeps the zero-based index of an item. If new items are added/removed from the tab control, the object may then point to a different item.
You cannot directly instantiate this object, it is created internally by the control.
Implementations§
source§impl<'a> TabItem<'a>
impl<'a> TabItem<'a>
sourcepub unsafe fn delete(&self)
pub unsafe fn delete(&self)
Deletes the item by sending a
tcm::DeleteItem
message.
§Safety
If you delete a tab automatically created, which has a container window attached to it, the rendering will be out-of-order.
sourcepub fn lparam(&self) -> isize
pub fn lparam(&self) -> isize
Retrieves the user-defined value by sending an
tcm::GetItem
message.
sourcepub fn set_lparam(&self, lparam: isize)
pub fn set_lparam(&self, lparam: isize)
Sets the user-defined value by sending an
lvm::SetItem
message.
sourcepub fn set_text(&self, text: &str)
pub fn set_text(&self, text: &str)
Sets the text by sending a
tcm:SetItem
message.
sourcepub fn text(&self) -> String
pub fn text(&self) -> String
Retrieves the text by sending a
tcm:GetItem
message.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TabItem<'a>
impl<'a> !RefUnwindSafe for TabItem<'a>
impl<'a> !Send for TabItem<'a>
impl<'a> !Sync for TabItem<'a>
impl<'a> Unpin for TabItem<'a>
impl<'a> !UnwindSafe for TabItem<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more