* @brief An value in the drawing cache */
| 122 | * @brief An value in the drawing cache |
| 123 | */ |
| 124 | struct CellCacheInfo |
| 125 | { |
| 126 | public: |
| 127 | CellCacheInfo () |
| 128 | : hits (0), fill (0), frame (0), vertex (0), text (0) |
| 129 | { } |
| 130 | |
| 131 | ~CellCacheInfo () |
| 132 | { |
| 133 | delete fill; |
| 134 | fill = 0; |
| 135 | delete frame; |
| 136 | frame = 0; |
| 137 | delete vertex; |
| 138 | vertex = 0; |
| 139 | delete text; |
| 140 | text = 0; |
| 141 | } |
| 142 | |
| 143 | size_t hits; |
| 144 | db::DPoint offset; |
| 145 | lay::Bitmap *fill, *frame, *vertex, *text; |
| 146 | }; |
| 147 | |
| 148 | /** |
| 149 | * @brief A callback class which is triggered when a snapshot is taken |