| 74 | } |
| 75 | |
| 76 | void draw ( |
| 77 | const canvas& c |
| 78 | ) const |
| 79 | { |
| 80 | if (hidden == false ) |
| 81 | { |
| 82 | fill_rect(c,rect,rgb_pixel(red,green,blue)); |
| 83 | std::vector<point> poly; |
| 84 | poly.push_back((rect.tl_corner()+rect.tr_corner())/2); |
| 85 | poly.push_back((rect.tr_corner()+rect.br_corner())/2); |
| 86 | poly.push_back((rect.br_corner()+rect.bl_corner())/2); |
| 87 | poly.push_back((rect.bl_corner()+rect.tl_corner())/2); |
| 88 | draw_solid_convex_polygon(c,poly,rgb_alpha_pixel(0,0,0,70)); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void on_wheel_up( |
| 93 | unsigned long state |
nothing calls this directly
no test coverage detected