|
Python Script Engine
8.3
GL Studio Editor Python Script API
|
Public Types | |
| enum | AlignType_e { ALIGN_TOP , ALIGN_BOTTOM , ALIGN_MIDDLE , ALIGN_LEFT , ALIGN_RIGHT , ALIGN_CENTER } |
Public Member Functions | |
| DisplayObjectArray (int initialSize=2) | |
| None | Insert (DisplayObject &obj) |
| int | GetCount () |
| DisplayObject * | GetObjectByIndex (int index) |
| DisplayObject * | TessellateObjects (DisplayObject::TessellateType_e tessType) |
| None | AlignObjects (AlignType_e alignType) |
| None | StretchToTallest () |
| None | StretchToShortest () |
| None | StretchToWidest () |
| None | StretchToNarrowest () |
Common editor interface DisplayObjectArray.
If the DisplayObjectArray instance is empty, it will return 'False' in comparison checks.
Alignment enumeration.
Passed into alignment calls
| DisplayObjectArray::DisplayObjectArray | ( | int | initialSize = 2 | ) |
Default ructor.
| initialSize | the initial size of the array. If you know the size of your array ahead of time, this will speed up insertion into the array. |
| None DisplayObjectArray::AlignObjects | ( | AlignType_e | alignType | ) |
Aligns an array of objects.
| alignType | type of alignment to be performed |
| int DisplayObjectArray::GetCount | ( | ) |
get the number of elements in the array
| DisplayObject * DisplayObjectArray::GetObjectByIndex | ( | int | index | ) |
Returns an item based on index.
| index | the index of the item to be returned |
| None DisplayObjectArray::Insert | ( | DisplayObject & | obj | ) |
insert the given object at the end of the array
| obj | object to insert |
| None DisplayObjectArray::StretchToNarrowest | ( | ) |
Stretches the objects within an array to the same width as the narrowest object.
| None DisplayObjectArray::StretchToShortest | ( | ) |
Stretches the objects within an array to the same height as the shortest object.
| None DisplayObjectArray::StretchToTallest | ( | ) |
Stretches the objects within an array to the same height as the tallest object.
| None DisplayObjectArray::StretchToWidest | ( | ) |
Stretches the objects within an array to the same width as the widest object.
| DisplayObject * DisplayObjectArray::TessellateObjects | ( | DisplayObject::TessellateType_e | tessType | ) |
Tessellates the objects.
| tessType | Type of tessellation to perform |