void PosLen::setPos(const Pos& pos) { switch(pos.type()) { case FRAMES: setFrame(pos.frame()); break; case TICKS: setTick(pos.tick()); break; } }
Pos operator+(Pos a, int b) { Pos c; c.setType(a.type()); return c += b; }