pub fn mime_data(&self, mode: Mode) -> Option<MimeData> {
        let enum_mode_1 = mode as u32;

        let (obj_data, funcs) = self.get_clipboard_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).mime_data)(obj_data, enum_mode_1);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = MimeData::new_from_rc(t);
            } else {
                ret_val = MimeData::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
///
/// Returns a pointer to a QMimeData representation of the current
/// clipboard data (can be NULL if the given *mode* is not
/// supported by the platform).
///
/// The *mode* argument is used to control which part of the system
/// clipboard is used. If *mode* is QClipboard::Clipboard, the
/// data is retrieved from the global clipboard. If *mode* is
/// QClipboard::Selection, the data is retrieved from the global
/// mouse selection. If *mode* is QClipboard::FindBuffer, the
/// data is retrieved from the search string buffer.
///
/// The text(), image(), and pixmap() functions are simpler
/// wrappers for retrieving text, image, and pixmap data.
///
/// **Note**: The pointer returned might become invalidated when the contents
/// of the clipboard changes; either by calling one of the setter functions
/// or externally by the system clipboard changing.
///
/// **See also:** [`set_mime_data()`]
Returns a pointer to a QMimeData representation of the current
clipboard data (can be NULL if the given *mode* is not
supported by the platform).

The *mode* argument is used to control which part of the system
clipboard is used. If *mode* is QClipboard::Clipboard, the
data is retrieved from the global clipboard. If *mode* is
QClipboard::Selection, the data is retrieved from the global
mouse selection. If *mode* is QClipboard::FindBuffer, the
data is retrieved from the search string buffer.

The text(), image(), and pixmap() functions are simpler
wrappers for retrieving text, image, and pixmap data.

Note**: The pointer returned might become invalidated when the contents
of the clipboard changes; either by calling one of the setter functions
or externally by the system clipboard changing.


Returns a pointer to a QMimeData representation of the current clipboard data ( can be NULL if the given * mode * is not supported by the platform ) . The * mode * argument is used to control which part of the system clipboard is used . If * mode * is QClipboard :: Clipboard the data is retrieved from the global clipboard . If * mode * is QClipboard :: Selection the data is retrieved from the global mouse selection . If * mode * is QClipboard :: FindBuffer the data is retrieved from the search string buffer . The text () image () and pixmap () functions are simpler wrappers for retrieving text image and pixmap data . Note ** : The pointer returned might become invalidated when the contents of the clipboard changes ; either by calling one of the setter functions or externally by the system clipboard changing .
pub fn mime_data(&self, mode: Mode) -> Option<MimeData> {
        let enum_mode_1 = mode as u32;
        let (obj_data, funcs) = self.get_clipboard_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).mime_data)(obj_data, enum_mode_1);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = MimeData::new_from_rc(t);
            } else {
                ret_val = MimeData::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn mime_data ( & self , mode : Mode ) -> Option < MimeData > { let enum_mode_1 = mode as u32 ; let ( obj_data , funcs ) = self . get_clipboard_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . mime_data ) ( obj_data , enum_mode_1 ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = MimeData :: new_from_rc ( t ) ; } else { ret_val = MimeData :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns a pointer to a QMimeData representation of the current
clipboard data (can be NULL if the given *mode* is not
supported by the platform).
Returns a pointer to a QMimeData representation of the current clipboard data ( can be NULL if the given * mode * is not supported by the platform ) .
&self
mode
Mode
&self
mode
Mode