Example #1
0
void PosLen::setPos(const Pos& pos)
      {
      switch(pos.type()) {
            case FRAMES:
                  setFrame(pos.frame());
                  break;
            case TICKS:
                  setTick(pos.tick());
                  break;
            }
      }
Example #2
0
File: pos.cpp Project: faesong/oom
Pos operator+(Pos a, int b)
{
    Pos c;
    c.setType(a.type());
    return c += b;
}