MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Position

Method Position

src/ClipBase.cpp:19–28  ·  view source on GitHub ↗

Set position on timeline (in seconds)

Source from the content-addressed store, hash-verified

17
18// Set position on timeline (in seconds)
19void ClipBase::Position(float value) {
20
21 position = value;
22
23 if (ParentTimeline()) {
24 // Resort timeline items (internal clips/effects arrays)
25 Timeline *parentTimeline = (Timeline *) ParentTimeline();
26 parentTimeline->SortTimeline();
27 }
28}
29
30// Set layer of clip on timeline (lower number is covered by higher numbers)
31void ClipBase::Layer(int value) {

Callers

nothing calls this directly

Calls 1

SortTimelineMethod · 0.80

Tested by

no test coverage detected