Logo Search packages:      
Sourcecode: patchage version File versions  Download package

void PatchBay::PatchBayArea::set_default_placement ( Module m  ) 

Sets the passed module's location to a reasonable default.

Definition at line 156 of file PatchBayArea.cpp.

References PatchBay::Module::move_to().

{
      // Simple cascade.  This will get more clever in the future.
      double x = ((m_width / 2.0) + (m_modules.size() * 25));
      double y = ((m_height / 2.0) + (m_modules.size() * 25));

      m->move_to(x, y);
}


Generated by  Doxygen 1.6.0   Back to index