pub struct DataObjectIsOwned<const OWNED: bool>(/* private fields */);
Expand description
A wxDataObject represents data that can be copied to or from the clipboard, or dragged and dropped.
DataObject
represents a C++wxDataObject
class instance which your code has ownership,DataObjectIsOwned
<false>
represents one which don’t own.- Use
DataObject
’snew()
orBuildable::builder()
(if available) to create an instance of this class. - See C++
wxDataObject
class’s documentation for more details.
Implementations§
Trait Implementations§
Source§impl Clone for DataObjectIsOwned<false>
impl Clone for DataObjectIsOwned<false>
Source§impl<const OWNED: bool> DataObjectMethods for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> DataObjectMethods for DataObjectIsOwned<OWNED>
Source§fn get_data_here<D: DataFormatMethods>(
&self,
format: &D,
buf: *mut c_void,
) -> bool
fn get_data_here<D: DataFormatMethods>( &self, format: &D, buf: *mut c_void, ) -> bool
The method will write the data of the format format to the buffer buf. Read more
Source§fn get_data_size<D: DataFormatMethods>(&self, format: &D) -> usize
fn get_data_size<D: DataFormatMethods>(&self, format: &D) -> usize
Returns the data size of the given format format. Read more
Source§impl<const OWNED: bool> Drop for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> Drop for DataObjectIsOwned<OWNED>
Source§impl<const OWNED: bool> From<BitmapDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<BitmapDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: BitmapDataObjectIsOwned<OWNED>) -> Self
fn from(o: BitmapDataObjectIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<CustomDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<CustomDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: CustomDataObjectIsOwned<OWNED>) -> Self
fn from(o: CustomDataObjectIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<DataObjectCompositeIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<DataObjectCompositeIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: DataObjectCompositeIsOwned<OWNED>) -> Self
fn from(o: DataObjectCompositeIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<DataObjectSimpleIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<DataObjectSimpleIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: DataObjectSimpleIsOwned<OWNED>) -> Self
fn from(o: DataObjectSimpleIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<FileDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<FileDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: FileDataObjectIsOwned<OWNED>) -> Self
fn from(o: FileDataObjectIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<HTMLDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<HTMLDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: HTMLDataObjectIsOwned<OWNED>) -> Self
fn from(o: HTMLDataObjectIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<TextDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<TextDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: TextDataObjectIsOwned<OWNED>) -> Self
fn from(o: TextDataObjectIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<URLDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> From<URLDataObjectIsOwned<OWNED>> for DataObjectIsOwned<OWNED>
Source§fn from(o: URLDataObjectIsOwned<OWNED>) -> Self
fn from(o: URLDataObjectIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> WxRustMethods for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for DataObjectIsOwned<OWNED>
type Unowned = DataObjectIsOwned<false>
unsafe fn as_ptr(&self) -> *mut c_void
unsafe fn from_ptr(ptr: *mut c_void) -> Self
unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned
unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)
unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>where
Self: Sized,
Auto Trait Implementations§
impl<const OWNED: bool> Freeze for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> !Send for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> !Sync for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> Unpin for DataObjectIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for DataObjectIsOwned<OWNED>
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