#![allow(non_camel_case_types, non_snake_case)]
use crate::decl::*;
use crate::kernel::privs::*;
use crate::shell::{ffi, iterators::*};
handle! { HDROP;
}
impl HDROP {
#[must_use]
pub fn DragQueryFile(
&self,
) -> SysResult<impl DoubleEndedIterator<Item = SysResult<String>> + '_> {
HdropIter::new(self)
}
#[must_use]
pub fn DragQueryPoint(&self) -> (POINT, bool) {
let mut pt = POINT::default();
let client_area = unsafe { ffi::DragQueryPoint(self.ptr(), pvoid(&mut pt)) };
(pt, client_area != 0)
}
}