Struct winsafe::gui::spec::HeaderItem
source · pub struct HeaderItem<'a> { /* private fields */ }
gui
only.Expand description
A single item of a Header
control.
Note: Each object keeps the zero-based index of an item. If new items are added/removed from the list view 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> HeaderItem<'a>
impl<'a> HeaderItem<'a>
sourcepub fn delete(&self)
pub fn delete(&self)
Deletes the item by sending a
hdm::DeleteItem
message.
sourcepub fn focus(&self)
pub fn focus(&self)
Sets the item as the focused one sending an
hdm:SetFocusedItem
message.
sourcepub fn format(&self) -> HDF
pub fn format(&self) -> HDF
Return the format flags of the item by sending a
hdm::GetItem
message.
sourcepub fn lparam(&self) -> isize
pub fn lparam(&self) -> isize
Retrieves the user-defined value by sending a
hdm::GetItem
message.
sourcepub fn order(&self) -> u32
pub fn order(&self) -> u32
Retrieves the order of the item by sending a
hdm::GetItem
message.
sourcepub fn set_arrow(&self, arrow_state: HeaderArrow)
pub fn set_arrow(&self, arrow_state: HeaderArrow)
Sets the arrow state of the item by sending a
hdm::SetItem
message.
sourcepub fn set_justify(&self, text_justification: HeaderJustify)
pub fn set_justify(&self, text_justification: HeaderJustify)
Sets the text justification of the column by sending a
hdm::SetItem
message.
sourcepub fn set_lparam(&self, lparam: isize)
pub fn set_lparam(&self, lparam: isize)
Sets the user-defined value of the item by sending a
hdm::SetItem
message.
sourcepub fn set_order(&self, order: u32)
pub fn set_order(&self, order: u32)
Sets the order of the item by sending a
hdm::SetItem
message.
sourcepub fn set_text(&self, text: &str)
pub fn set_text(&self, text: &str)
Sets the text of the item by sending a
hdm::SetItem
message.
sourcepub fn text(&self) -> String
pub fn text(&self) -> String
Retrieves the text of the item by sending a
hdm::GetItem
message.
Trait Implementations§
source§impl<'a> Clone for HeaderItem<'a>
impl<'a> Clone for HeaderItem<'a>
source§fn clone(&self) -> HeaderItem<'a>
fn clone(&self) -> HeaderItem<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more