Format Interrogation | |
deprecated typedef opIn_r | has |
Determines whether the clipboard contains data in the specified format. | |
int | formats () |
The number of formats currently on the clipboard. | |
bool | opIn_r (CLIPBOARD_FORMAT f) |
Determines whether the clipboard contains data in the specified format. | |
CLIPBOARD_FORMAT | firstOf (CLIPBOARD_FORMAT[] f) |
Checks the clipboard for data in any of the specified formats, in order of priority. | |
Public Member Functions | |
this (WindowBase w) | |
Locks the clipboard, enabling operations to be done on it. | |
~this () | |
Copying to the Clipboard | |
void | reset () |
Resets the clipboard, ready to copy new data to it. | |
void | opIndexAssign (ClipboardData data, CLIPBOARD_FORMAT format) |
Copies data to the clipboard in the specified format. | |
void | opIndexAssign (void[] data, CLIPBOARD_FORMAT format) |
Copies data to the clipboard in the specified format. | |
void | opIndexAssign (cstring data, CLIPBOARD_FORMAT format) |
Copies text data to the clipboard in the specified format. | |
Pasting from the Clipboard | |
ClipboardData | opIndex (CLIPBOARD_FORMAT format) |
Gets data from the clipboard. |
This enables the application to communicate with the clipboard.
smjg.libs.sdwf.clipboard.Clipboard.this | ( | WindowBase | w | ) |
smjg.libs.sdwf.clipboard.Clipboard.~this | ( | ) |
void smjg.libs.sdwf.clipboard.Clipboard.reset | ( | ) |
void smjg.libs.sdwf.clipboard.Clipboard.opIndexAssign | ( | ClipboardData | data, | |
CLIPBOARD_FORMAT | format | |||
) |
Copies data to the clipboard in the specified format.
(Implementation of this[format] = data
.)
data | a ClipboardData object containing the data to be copied. | |
format | identifier of the data format. |
format
is in the range PRIVATEFIRST
to GDIOBJLAST
, the data belongs to the clipboard once it has been transferred. The data object will therefore become invalid when the clipboard is subsequently emptied or overwritten. Hence the application should discard the reference immediately. The .dup property of the data object can be used to create an ad-hoc copy of the data for this purpose.void smjg.libs.sdwf.clipboard.Clipboard.opIndexAssign | ( | void[] | data, | |
CLIPBOARD_FORMAT | format | |||
) |
Copies data to the clipboard in the specified format.
(Implementation of this[format] = data
.)
data | the data to be copied. | |
format | identifier of the data format. |
void smjg.libs.sdwf.clipboard.Clipboard.opIndexAssign | ( | cstring | data, | |
CLIPBOARD_FORMAT | format | |||
) |
Copies text data to the clipboard in the specified format.
(Implementation of this[format] = data
.)
data | the data to be copied. | |
format | identifier of the data format. |
int smjg.libs.sdwf.clipboard.Clipboard.formats | ( | ) |
The number of formats currently on the clipboard.
bool smjg.libs.sdwf.clipboard.Clipboard.opIn_r | ( | CLIPBOARD_FORMAT | f | ) |
Determines whether the clipboard contains data in the specified format.
(Implementation of f in this
.)
CLIPBOARD_FORMAT smjg.libs.sdwf.clipboard.Clipboard.firstOf | ( | CLIPBOARD_FORMAT[] | f | ) |
ClipboardData smjg.libs.sdwf.clipboard.Clipboard.opIndex | ( | CLIPBOARD_FORMAT | format | ) |
Gets data from the clipboard.
(Implementation of this[format]
.)
format | the format in which data is to be retrieved. |
BITMAP
and PALETTE
, in which case it is a Bitmap or Palette object. format
is in the range PRIVATEFIRST
to GDIOBJLAST
, the data continues to belong to the clipboard after it has been transferred. The data object will therefore become invalid when the clipboard is subsequently overwritten. Hence the application should immediately make its own copy of the pasted data. The .dup property of the returned object can be used to create this copy, or alternatively the data itself from a GlobalMemoryObject can be immediately duplicated or inserted as required.
deprecated typedef opIn_r smjg.libs.sdwf.clipboard.Clipboard.has |
Determines whether the clipboard contains data in the specified format.