Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.ClipboardClip Class Reference

Clipboard clip storing data in multiple formats. More...

Inheritance diagram for Dragengine.Gui.ClipboardClip:

Public Member Functions

Array collect (Block ablock)
 Collect data with block receiving object as argument returning true to include.
Array collectCastable (Block ablock)
 Collect data with block receiving object as argument returning true to include.
Object find (Block ablock)
 Find data with block receiving object as argument returning true if found.
Object findCastable (Block ablock)
 Find data with block receiving object as argument returning true if found.
void forEach (Block ablock)
 Visit data with block receiving object as argument.
void forEachCastable (Block ablock)
 Visit data with block receiving object as argument.
Object getAt (int index)
 Data at index.
int getCount ()
 Count of data.
Object last ()
 Last data.
ClipboardClip new (Array data)
 Create clipboard clip with data.

Detailed Description

Clipboard clip storing data in multiple formats.

Version
1.11

Data is added in the order of the most specific object class to the most generic. Adding String as last entry for non-String objects is not required since the clip consumer has to call toString() on the last data entry if he wants to consume any type of object as string.

Immutable class.

Member Function Documentation

◆ collect()

Array Dragengine.Gui.ClipboardClip.collect ( Block ablock)

Collect data with block receiving object as argument returning true to include.

Returns Array containing all objects for which block returns true.

References forEachCastable().

Referenced by collectCastable().

◆ collectCastable()

Array Dragengine.Gui.ClipboardClip.collectCastable ( Block ablock)

Collect data with block receiving object as argument returning true to include.

Returns Array containing all objects for which block returns true. Block is called only for objects castable to block argument.

References collect(), collectCastable(), find(), and findCastable().

Referenced by collectCastable().

◆ find()

Object Dragengine.Gui.ClipboardClip.find ( Block ablock)

Find data with block receiving object as argument returning true if found.

Returns first object for which block returns true or null.

References getAt(), and last().

Referenced by collectCastable().

◆ findCastable()

Object Dragengine.Gui.ClipboardClip.findCastable ( Block ablock)

Find data with block receiving object as argument returning true if found.

Returns first object for which block returns true or null. Block is called only for objects castable to block argument.

References forEach().

Referenced by collectCastable().

◆ forEach()

void Dragengine.Gui.ClipboardClip.forEach ( Block ablock)

Visit data with block receiving object as argument.

Referenced by findCastable().

◆ forEachCastable()

void Dragengine.Gui.ClipboardClip.forEachCastable ( Block ablock)

Visit data with block receiving object as argument.

Block is only called for objects castable to block argument.

References getCount().

Referenced by collect().

◆ getAt()

Object Dragengine.Gui.ClipboardClip.getAt ( int index)

Data at index.

Referenced by find().

◆ getCount()

int Dragengine.Gui.ClipboardClip.getCount ( )

Count of data.

Referenced by forEachCastable(), and new().

◆ last()

Object Dragengine.Gui.ClipboardClip.last ( )

Last data.

Referenced by find().

◆ new()

ClipboardClip Dragengine.Gui.ClipboardClip.new ( Array data)

Create clipboard clip with data.

Exceptions
ENullPointerdata or entry in data is null.
EInvalidParamdata is empty.

References getCount(), and new().

Referenced by new().


The documentation for this class was generated from the following file: