pub(crate) struct Dnd {
xconn: Arc<XConnection>,
pub atoms: DndAtoms,
pub version: Option<c_long>,
pub type_list: Option<Vec<c_ulong>>,
pub source_window: Option<c_ulong>,
pub result: Option<Result<Vec<PathBuf>, DndDataParseError>>,
}
Fields§
§xconn: Arc<XConnection>
§atoms: DndAtoms
§version: Option<c_long>
§type_list: Option<Vec<c_ulong>>
§source_window: Option<c_ulong>
§result: Option<Result<Vec<PathBuf>, DndDataParseError>>
Implementations§
source§impl Dnd
impl Dnd
pub fn new(xconn: Arc<XConnection>) -> Result<Self, XError>
pub fn reset(&mut self)
pub unsafe fn send_status( &self, this_window: c_ulong, target_window: c_ulong, state: DndState ) -> Result<(), XError>
pub unsafe fn send_finished( &self, this_window: c_ulong, target_window: c_ulong, state: DndState ) -> Result<(), XError>
pub unsafe fn get_type_list( &self, source_window: c_ulong ) -> Result<Vec<Atom>, GetPropertyError>
pub unsafe fn convert_selection(&self, window: c_ulong, time: c_ulong)
pub unsafe fn read_data( &self, window: c_ulong ) -> Result<Vec<c_uchar>, GetPropertyError>
pub fn parse_data( &self, data: &mut [c_uchar] ) -> Result<Vec<PathBuf>, DndDataParseError>
Auto Trait Implementations§
impl !RefUnwindSafe for Dnd
impl Send for Dnd
impl Sync for Dnd
impl Unpin for Dnd
impl !UnwindSafe for Dnd
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more