#include <guiEditFrameTimelineCtrl_ScriptBinding.h>
Inherits GuiEditFrameStripCtrl.
|
| void | clearCaret () |
| void | clearPreviewSprite () |
| String | getFrames () |
| String | getNameAt (slot) |
| String | getNamedFrames () |
| Integer | getPlayheadSlot () |
| Integer | getSelectedSlot () |
| String | getSlotRect (slot) |
| Boolean | insertFrame (slot, frame) |
| Boolean | insertFrameAtPoint (point, frame) |
| Boolean | moveSlot (from, to) |
| Boolean | removeSlot (slot) |
| void | setFrames (frames) |
| void | setNamedFrames (names) |
| Boolean | setPreviewSprite (sprite) |
| void | setSelectedSlot (slot) |
| Integer | showCaretAt (x, y) |
| Integer | getCellAtPoint (x, y) |
| Integer | getCellCount () |
| String | getCellRect (index) |
| Integer | getCellSize () |
| Integer | getFrameAt (index) |
| String | getImageAsset () |
| Integer | getImageFrameCount () |
| void | setCellSize (cellSize) |
| void | setImageAsset (imageAssetId) |
| void | addGuiControl (int controlId) |
| void | applySizing () |
| Boolean | canBeChildOf (GuiControl parent) |
| void | childrenReordered () |
| Integer | findHitControl (int x, int y) |
| String | getCenter () |
| String | getExtent (...) |
| String | getGlobalCenter () |
| String | getGlobalPosition () |
| String | getMinExtent () |
| Integer | getParent () |
| String | getPosition () |
| String | getText () |
| Boolean | getTextExtend () |
| Boolean | getTextWrap () |
| String | getValue () |
| Boolean | isActive () |
| Boolean | isAwake () |
| Boolean | isGeometryEditable () |
| Boolean | isVisible () |
| void | makeFirstResponder (isFirst) |
| void | performClick () |
| Boolean | pointInControl (int x, int y) |
| Boolean | pullIntoView () |
| Boolean | rendersChildren () |
| void | reorderChild (child1, child2) |
| void | resize (int x, int y, int w, int h) |
| void | setActive (isActive) |
| void | setCanSave (bool canSave) |
| void | setCenter (int x, int y) |
| void | setExtent (int width, int height) |
| void | setFirstResponder () |
| void | setPosition (int x, int y) |
| void | setPositionGlobal (int x, int y) |
| void | setProfile (GuiControlProfile p) |
| void | setText (text) |
| void | setTextExtend (setting) |
| void | setTextID (id) |
| void | setTextWrap (setting) |
| void | setValue (value) |
| void | setVisible (isVisible) |
◆ clearCaret()
Hides the insertion caret.
- Returns
- No return value.
◆ clearPreviewSprite()
| void clearPreviewSprite |
( |
| ) |
|
Forgets the preview sprite, so the playhead marker stands down.
- Returns
- No return value.
◆ getFrames()
Gets the frames the timeline holds, in order. Trimmed, deliberately unlike AnimationAsset::getAnimationFrames, which leaves a trailing space.
- Returns
- The frame indices, space separated, or an empty string.
◆ getNameAt()
Gets the cell name in a slot.
- Parameters
-
- Returns
- The cell name, or an empty string when the image does not name its cells.
◆ getNamedFrames()
Gets the frames the timeline holds, by cell name, in order.
For an image in explicit mode, whose cells have names. A frame whose cell has since been deleted still reports its name – the timeline keeps it, and draws it as an empty outlined slot, rather than dropping a frame the user never asked to lose.
- Returns
- The cell names, space separated, or an empty string.
◆ getPlayheadSlot()
Gets the slot the preview is currently showing.
- Returns
- The slot index, or -1 when there is no preview or it is not playing this animation.
◆ getSelectedSlot()
Gets the picked slot.
- Returns
- The slot index, or -1 when nothing is picked.
◆ getSlotRect()
Gets where a slot is on the canvas.
- Parameters
-
- Returns
- The rect as "x y width height" in global coordinates.
◆ insertFrame()
| Boolean insertFrame |
( |
slot | , |
|
|
frame | ) |
Puts a frame into the list at a slot.
- Parameters
-
| slot | Where it goes, from 0 to the count inclusive. |
| frame | The image frame index. |
- Returns
- Whether it went in.
◆ insertFrameAtPoint()
| Boolean insertFrameAtPoint |
( |
point | , |
|
|
frame | ) |
Puts a frame in where a drag was released. Uses the same arithmetic the caret was drawn from, so what was shown is what happens.
- Parameters
-
| point | The global point as "x y". |
| frame | The image frame index. |
- Returns
- Whether it went in.
◆ moveSlot()
Moves a slot to a new place in the list.
- Parameters
-
| from | The slot to lift. |
| to | Where to put it, measured against the list as it stands now. |
- Returns
- Whether anything moved.
◆ removeSlot()
Takes a slot out of the list.
- Parameters
-
- Returns
- Whether there was one to take.
◆ setFrames()
| void setFrames |
( |
frames | | ) |
|
Replaces the whole list. Separators are space, tab and newline, matching what AnimationAsset::setAnimationFrames accepts, so a list can be handed straight from one to the other.
- Parameters
-
| frames | The frame indices, space separated. |
- Returns
- No return value.
◆ setNamedFrames()
| void setNamedFrames |
( |
names | | ) |
|
Replaces the whole list, by cell name. Separators are space, tab, newline and comma, matching what AnimationAsset::setNamedAnimationFrames accepts.
- Parameters
-
| names | The cell names, space separated. |
- Returns
- No return value.
◆ setPreviewSprite()
| Boolean setPreviewSprite |
( |
sprite | | ) |
|
Points the playhead marker at a sprite's playback.
- Parameters
-
| sprite | The preview sprite. |
- Returns
- Whether it was a sprite.
◆ setSelectedSlot()
| void setSelectedSlot |
( |
slot | | ) |
|
Picks a slot, or -1 for none.
- Parameters
-
- Returns
- No return value.
◆ showCaretAt()
Shows the insertion caret for a point on the canvas.
- Parameters
-
| x | The global x coordinate, or "x y" as one argument. |
| y | The global y coordinate. |
- Returns
- The slot a drop released here would land in.