Provides a color for BBGrid to draw the rectangle.
| 2152 | |
| 2153 | // Provides a color for BBGrid to draw the rectangle. |
| 2154 | ScrollView::Color ColSegment::BoxColor() const { |
| 2155 | const ScrollView::Color kBoxColors[PT_COUNT] = { |
| 2156 | ScrollView::YELLOW, |
| 2157 | ScrollView::BLUE, |
| 2158 | ScrollView::YELLOW, |
| 2159 | ScrollView::MAGENTA, |
| 2160 | }; |
| 2161 | return kBoxColors[type_]; |
| 2162 | } |
| 2163 | |
| 2164 | // Insert a box into this column segment |
| 2165 | void ColSegment::InsertBox(const TBOX& other) { |
no outgoing calls
no test coverage detected