[][src]Struct qt_gui::q_clipboard::Mode

#[repr(transparent)]
pub struct Mode(_);

This enum type is used to control which part of the system clipboard is used by QClipboard::mimeData(), QClipboard::setMimeData() and related functions.

C++ enum: QClipboard::Mode.

C++ documentation:

This enum type is used to control which part of the system clipboard is used by QClipboard::mimeData(), QClipboard::setMimeData() and related functions.

See also QClipboard::supportsSelection().

Methods

impl Mode[src]

pub fn to_int(&self) -> c_int[src]

impl Mode[src]

pub const Clipboard: Mode[src]

indicates that data should be stored and retrieved from the global clipboard. (C++ enum variant: Clipboard = 0)

pub const Selection: Mode[src]

indicates that data should be stored and retrieved from the global mouse selection. Support for Selection is provided only on systems with a global mouse selection (e.g. X11). (C++ enum variant: Selection = 1)

pub const FindBuffer: Mode[src]

indicates that data should be stored and retrieved from the Find buffer. This mode is used for holding search strings on macOS. (C++ enum variant: FindBuffer = 2)

pub const LastMode: Mode[src]

C++ enum variant: LastMode = 2

Trait Implementations

impl Eq for Mode[src]

impl Clone for Mode[src]

impl PartialEq<Mode> for Mode[src]

impl From<i32> for Mode[src]

impl From<Mode> for c_int[src]

impl Copy for Mode[src]

impl Debug for Mode[src]

Auto Trait Implementations

impl Send for Mode

impl Unpin for Mode

impl Sync for Mode

impl UnwindSafe for Mode

impl RefUnwindSafe for Mode

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]