Struct winsafe::gui::spec::ListViewItem[][src]

pub struct ListViewItem<'a> { /* fields omitted */ }
Expand description

Represents a single item of a ListView 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

Deletes the item by sending an lvm::DeleteItem message.

Scrolls the list by sending an lvm::EnsureVisible message so that the item is visible in the list.

Returns the zero-based index of the item.

Tells if the item is the focused one by sending an lvm::GetItemState message.

Tells if the item is selected by sending an lvm::GetItemState message.

Tells if the item is currently visible by sending an lvm::IsItemVisible message.

Retrieves the unique ID for the item index by sending an lvm::MapIndexToId message.

If the item index has became invalid, returns None.

Retrieves the bound rectangle of item by sending an lvm::GetItemRect message.

Sets the item as the focused one sending an lvm:SetItemState message.

Sets or removes the selection from the item by sending an lvm::SetItemState message.

Sets the text of the item under a column by sending an lvm::SetItemText message.

Retrieves the text of an item under a column by sending an lvm::GetItemText message.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.