This is an extremely primitive API for performing basic object layout. More...
|typedef std::vector< object_t >||layout::vec_obj_t|
|void||layout::layout_info_t::clear (void) throw ()|
|void||layout::object_t::clear (void) throw ()|
|void||layout::performLayout (const layout_info_t &info,vec_obj_t &objects)|
|the only function in the 2D layout library! |
This is an extremely primitive API for performing basic object layout.
I only have 2D layouts for now and have no plans for higher dimensions :)
This isn't much code but felt better abstracted to a general library rather than put in the application.
|void layout::layout_info_t::clear||(||void||)|| throw ()
|void layout::object_t::clear||(||void||)|| throw ()
|void layout::performLayout||(||const layout_info_t &||info,|
the only function in the 2D layout library!
Given the layout instructions (layout_info_t object), and the list of objects to be laid out (vec_obj_t vector), this routine calculates the proper position for each object.