pub struct Dnd {
pub atoms: DndAtoms,
pub display: *mut _XDisplay,
pub type_list: Option<Vec<u64>>,
pub selection: Option<CString>,
}
Fields§
§atoms: DndAtoms
§display: *mut _XDisplay
§type_list: Option<Vec<u64>>
§selection: Option<CString>
Implementations§
Source§impl Dnd
impl Dnd
pub unsafe fn new(display: *mut _XDisplay) -> Dnd
Sourcepub unsafe fn enable_for_window(&mut self, window: u64)
pub unsafe fn enable_for_window(&mut self, window: u64)
Enables drag-and-drop for the given window.
Sourcepub unsafe fn handle_enter_event(&mut self, event: &XClientMessageEvent)
pub unsafe fn handle_enter_event(&mut self, event: &XClientMessageEvent)
Handles a XDndEnter event.
Sourcepub unsafe fn handle_drop_event(&mut self, event: &XClientMessageEvent)
pub unsafe fn handle_drop_event(&mut self, event: &XClientMessageEvent)
Handles a XDndDrop event.
Sourcepub unsafe fn handle_leave_event(&mut self, _event: &XClientMessageEvent)
pub unsafe fn handle_leave_event(&mut self, _event: &XClientMessageEvent)
Handles a XDndLeave event.
Sourcepub unsafe fn handle_position_event(&mut self, event: &XClientMessageEvent)
pub unsafe fn handle_position_event(&mut self, event: &XClientMessageEvent)
Handles a XDndPosition event.
Sourcepub unsafe fn handle_selection_event(&mut self, _event: &XSelectionEvent)
pub unsafe fn handle_selection_event(&mut self, _event: &XSelectionEvent)
Handles a XSelectionEvent.
Sourcepub unsafe fn get_selection_property(&mut self, source_window: u64) -> Vec<u8> ⓘ
pub unsafe fn get_selection_property(&mut self, source_window: u64) -> Vec<u8> ⓘ
Gets the XDndSelection property from the source window.
Sourcepub unsafe fn get_type_list_property(&mut self, source_window: u64) -> Vec<u64>
pub unsafe fn get_type_list_property(&mut self, source_window: u64) -> Vec<u64>
Gets the XDndTypeList property from the source window.
Sourcepub unsafe fn send_status_event(
&mut self,
source_window: u64,
target_window: u64,
accepted: bool,
)
pub unsafe fn send_status_event( &mut self, source_window: u64, target_window: u64, accepted: bool, )
Sends a XDndStatus event to the target window.
pub unsafe fn convert_selection(&self, target_window: u64)
Auto Trait Implementations§
impl Freeze for Dnd
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