winsafe

Struct LVITEM

Source
#[repr(C)]
pub struct LVITEM<'a> {
Show 13 fields pub mask: LVIF, pub iItem: i32, pub iSubItem: i32, pub state: LVIS, pub stateMask: LVIS, pub iImage: i32, pub lParam: isize, pub iIndent: i32, pub iGroupId: LVI_GROUPID, pub cColumns: u32, pub puColumns: *mut i32, pub piColFmt: *mut LVCFMT_I, pub iGroup: i32, /* private fields */
}
Available on crate feature comctl only.
Expand description

LVITEM struct.

Fields§

§mask: LVIF§iItem: i32§iSubItem: i32§state: LVIS§stateMask: LVIS§iImage: i32§lParam: isize§iIndent: i32§iGroupId: LVI_GROUPID§cColumns: u32§puColumns: *mut i32§piColFmt: *mut LVCFMT_I§iGroup: i32

Implementations§

Source§

impl<'a> LVITEM<'a>

Source

pub const fn raw_pszText(&self) -> (*mut u16, i32)

Returns the raw pointer to the string field, and its declared size.

This method can be used as an escape hatch to interoperate with other libraries.

Source

pub fn pszText(&self) -> Option<String>

Returns the string field.

Source

pub fn set_pszText(&mut self, buf: Option<&'a mut WString>)

Sets the string field.

Trait Implementations§

Source§

impl<'a> Default for LVITEM<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for LVITEM<'a>

§

impl<'a> RefUnwindSafe for LVITEM<'a>

§

impl<'a> !Send for LVITEM<'a>

§

impl<'a> !Sync for LVITEM<'a>

§

impl<'a> Unpin for LVITEM<'a>

§

impl<'a> !UnwindSafe for LVITEM<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.