kmx > IUP-0.006 > IUP::Clipboard

Download:
IUP-0.006.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: IUP-0.202_1

NAME ^

IUP::Clipboard - [special] allows access to the clipboard

DESCRIPTION ^

Creates an element that allows access to the clipboard. Each clipboard should be destroyed using Destroy method, but you can use only one for entire application because it does not store any data inside. Or you can simply create and destroy everytime you need to copy or paste.

Example - copy to clipboard:

 $text = IUP::Text->new();
 #...
 $clipboard = IUP::Clipboard->new();
 $clipboard->TEXT( $text->VALUE );
 $clipboard->Destroy();
 ###ZZZ-test-this

Example - paste from clipboard:

 $text = IUP::Text->new();
 #...
 $clipboard = IUP::Clipboard->new();
 $text->VALUE( $clipboard->TEXT );
 $clipboard->Destroy();
 ###ZZZ-test-this

USAGE ^

CREATION - new() method

 $clipboard = IUP::Clipboard->new();

Returns: the identifier of the created element, or undef if an error occurs.

NOTE: You can pass to new() other ATTRIBUTE=>'value' or CALLBACKNAME=>\&func pairs relevant to this element - see IUP::Manual::02_Elements.

ATTRIBUTES

For more info about concept of attributes (setting/getting values etc.) see IUP::Manual::03_Attributes. Attributes specific to this element:

EXAMPLES ^

Unfortunately there are no sample scripts using this element.

SEE ALSO ^

The original doc: iupclipboard.html

syntax highlighting: