| 1129 | } |
| 1130 | |
| 1131 | void |
| 1132 | ViewObjectUI::do_render_bg (const lay::Viewport &vp, lay::ViewObjectCanvas &canvas) |
| 1133 | { |
| 1134 | m_needs_update_bg = false; |
| 1135 | |
| 1136 | std::vector<lay::BackgroundViewObject *> bg_objects; |
| 1137 | |
| 1138 | for (background_object_iterator obj = begin_background_objects (); obj != end_background_objects (); ++obj) { |
| 1139 | if (obj->is_visible ()) { |
| 1140 | bg_objects.push_back (&*obj); |
| 1141 | } |
| 1142 | } |
| 1143 | |
| 1144 | // Sort objects by z-order |
| 1145 | tl::sort (bg_objects.begin (), bg_objects.end (), z_order_compare_f ()); |
| 1146 | |
| 1147 | for (std::vector<lay::BackgroundViewObject *>::const_iterator obj = bg_objects.begin (); obj != bg_objects.end (); ++obj) { |
| 1148 | BEGIN_PROTECTED_SILENT |
| 1149 | (*obj)->render_bg (vp, canvas); |
| 1150 | END_PROTECTED_SILENT |
| 1151 | } |
| 1152 | } |
| 1153 | |
| 1154 | void |
| 1155 | ViewObjectUI::do_render (const lay::Viewport &vp, lay::ViewObjectCanvas &canvas, bool st) |
nothing calls this directly
no test coverage detected