Python Script Engine
1.0
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) | |
void | Insert (DisplayObject &obj) |
unsigned int | GetCount (void) |
DisplayObject * | GetObjectByIndex (unsigned int index) |
DisplayObject * | TessellateObjects (DisplayObject::TessellateType_e tessType) |
void | AlignObjects (AlignType_e alignType) |
void | StretchToTallest (void) |
void | StretchToShortest (void) |
void | StretchToWidest (void) |
void | StretchToNarrowest (void) |
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 constructor.
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. |
void DisplayObjectArray::AlignObjects | ( | AlignType_e | alignType | ) |
Aligns an array of objects.
alignType | type of alignment to be performed |
unsigned int DisplayObjectArray::GetCount | ( | void | ) |
get the number of elements in the array
DisplayObject* DisplayObjectArray::GetObjectByIndex | ( | unsigned int | index | ) |
Returns an item based on index.
index | the index of the item to be returned |
void DisplayObjectArray::Insert | ( | DisplayObject & | obj | ) |
insert the given object at the end of the array
obj | object to insert |
void DisplayObjectArray::StretchToNarrowest | ( | void | ) |
Stretches the objects within an array to the same width as the narrowest object.
void DisplayObjectArray::StretchToShortest | ( | void | ) |
Stretches the objects within an array to the same height as the shortest object.
void DisplayObjectArray::StretchToTallest | ( | void | ) |
Stretches the objects within an array to the same height as the tallest object.
void DisplayObjectArray::StretchToWidest | ( | void | ) |
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 |