Struct dui::clipboard::Clipboard [] [src]

pub struct Clipboard(_);

An element that allows access to the clipboard.

You can use only one for the entire application because it does not store any data inside. Or you can simply create and drop every time you need to copy or paste.

See the clipboard module documentation for more details on how the system clipboard works.

Other platform-dependent attributes can be found on the [IUP Clipboard Documentation][1]. [1]: http://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupclipboard.html

Ownership

The clipboard must be manually destroyed, thus for the user safety it returns a guarded object on the new constructor.

Please refer to the crate level documentation of IUP-Rust (the main doc page) for details on ownership of elements.

Methods

impl Clipboard
[src]

[src]

Creates a new clipboard operarator.

[src]

Clears any data on the clipboard.

[src]

Register a custom format for clipboard data given its name.

[src]

Informs if there is a text available at the clipboard.

[src]

Copy text into the clipboard.

[src]

Paste text off the clipboard.

[src]

Informs if there is a image available at the clipboard.

[src]

Copy text into the clipboard.

[src]

Informs if there is data of the specified format available at the clipboard.

[src]

Copy data from the specified format into the clipboard.

[src]

Paste data from the specified format off the clipboard.

Trait Implementations

impl Element for Clipboard
[src]

[src]

Gets the raw IUP handle associated with this element.

[src]

Constructs an Element from a raw IUP handle. Read more

[src]

Gets the [class name][1] the derived object should be targeting. [1]: http://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclassname.html Read more

[src]

Constructs a specialized Element object from a general Handle if they are compatible.

[src]

Constructs from a name associated with a element handle (with Element::add_handle_name or LED).

[src]

Constructs an Element from a raw IUP handle. Read more

[src]

Gets the [class name][1] of this element. [1]: http://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclassname.html Read more

[src]

Destroys an interface element and all its children. Read more

[src]

Checks if a specific attribute exists in the element.

[src]

Returns the names of all attributes of an element that are set in its internal hash table only. Read more

[src]

Sets an interface element attribute. Read more

[src]

Gets an interface element attribute. Read more

[src]

Sets a raw interface element attribute. Read more

[src]

Gets a raw interface element attribute.

[src]

Associates a element with an attribute. Read more

[src]

Gets the handle associated with an attribute.

[src]

Clears the value associated with an attribute and use the default value.

[src]

Removes an attribute from element and its children if the attrib is inheritable. Read more

[src]

Returns the identifier of an interface element that has an associated handle name using Element::add_handle_name or using LED. Read more

[src]

Associates a handle name with an interface element. Read more

[src]

Clears the handle name association on the specified name. Read more

impl Debug for Clipboard
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Clipboard
[src]

impl Clone for Clipboard
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl DestroyCb for Clipboard
[src]

[src]

[src]

impl From<Clipboard> for Handle
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Clipboard

impl !Sync for Clipboard