pub struct Dnd {
xconn: Arc<XConnection>,
pub version: Option<c_long>,
pub type_list: Option<Vec<Atom>>,
pub source_window: Option<Window>,
pub result: Option<Result<Vec<PathBuf>, DndDataParseError>>,
}Fields§
§xconn: Arc<XConnection>§version: Option<c_long>§type_list: Option<Vec<Atom>>§source_window: Option<Window>§result: Option<Result<Vec<PathBuf>, DndDataParseError>>Implementations§
Source§impl Dnd
impl Dnd
pub fn new(xconn: Arc<XConnection>) -> Result<Self, X11Error>
pub fn reset(&mut self)
pub unsafe fn send_status( &self, this_window: Window, target_window: Window, state: DndState, ) -> Result<(), X11Error>
pub unsafe fn send_finished( &self, this_window: Window, target_window: Window, state: DndState, ) -> Result<(), X11Error>
pub unsafe fn get_type_list( &self, source_window: Window, ) -> Result<Vec<Atom>, GetPropertyError>
pub unsafe fn convert_selection(&self, window: Window, time: Timestamp)
pub unsafe fn read_data( &self, window: Window, ) -> Result<Vec<c_uchar>, GetPropertyError>
pub fn parse_data( &self, data: &mut [c_uchar], ) -> Result<Vec<PathBuf>, DndDataParseError>
Auto Trait Implementations§
impl Freeze for Dnd
impl !RefUnwindSafe for Dnd
impl Send for Dnd
impl Sync for Dnd
impl Unpin for Dnd
impl UnsafeUnpin 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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.