pub struct Dnd {
pub atoms: DndAtoms,
pub display: *mut Display,
pub type_list: Option<Vec<Atom>>,
pub selection: Option<CString>,
}Fields§
§atoms: DndAtoms§display: *mut Display§type_list: Option<Vec<Atom>>§selection: Option<CString>Implementations§
Source§impl Dnd
impl Dnd
pub unsafe fn new(display: *mut Display) -> Dnd
Sourcepub unsafe fn enable_for_window(&mut self, window: Window)
pub unsafe fn enable_for_window(&mut self, window: Window)
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: Window,
) -> Vec<c_uchar> ⓘ
pub unsafe fn get_selection_property( &mut self, source_window: Window, ) -> Vec<c_uchar> ⓘ
Gets the XDndSelection property from the source window.
Sourcepub unsafe fn get_type_list_property(
&mut self,
source_window: Window,
) -> Vec<Atom> ⓘ
pub unsafe fn get_type_list_property( &mut self, source_window: Window, ) -> Vec<Atom> ⓘ
Gets the XDndTypeList property from the source window.
Sourcepub unsafe fn send_status_event(
&mut self,
source_window: Window,
target_window: Window,
accepted: bool,
)
pub unsafe fn send_status_event( &mut self, source_window: Window, target_window: Window, accepted: bool, )
Sends a XDndStatus event to the target window.
pub unsafe fn convert_selection(&self, target_window: Window)
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