Struct makepad_platform::os::linux::x11::xlib_window::Dnd
source · 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 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