Struct winsafe::gui::spec::ListViewColumn
source · pub struct ListViewColumn<'a, T: 'static = ()> { /* private fields */ }
gui
only.Expand description
A single column of a ListView
control.
Note: Each object keeps the zero-based index of a column. If new columns 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, T> ListViewColumn<'a, T>
impl<'a, T> ListViewColumn<'a, T>
sourcepub fn set_title(&self, text: &str)
pub fn set_title(&self, text: &str)
Sets the title of the column by sending an
lvm::SetColumn
message.
sourcepub fn set_width(&self, width: u32)
pub fn set_width(&self, width: u32)
Sets the width of the column by sending an
lvm::SetColumnWidth
message.
Width will be adjusted to match current system DPI.
sourcepub fn set_width_to_fill(&self)
pub fn set_width_to_fill(&self)
Sets the width of the column by sending an
lvm::SetColumnWidth
message. The
width will be calculated to fill the remaining space.
sourcepub fn title(&self) -> String
pub fn title(&self) -> String
Retrieves the title of the column by sending an
lvm::GetColumn
message.
sourcepub fn width(&self) -> u32
pub fn width(&self) -> u32
Retrieves the width of the column by sending an
lvm::GetColumnWidth
message.
Trait Implementations§
source§impl<'a, T: Clone + 'static> Clone for ListViewColumn<'a, T>
impl<'a, T: Clone + 'static> Clone for ListViewColumn<'a, T>
source§fn clone(&self) -> ListViewColumn<'a, T>
fn clone(&self) -> ListViewColumn<'a, T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more