(&self, cx: &mut DrawContext)
| 139 | } |
| 140 | |
| 141 | fn draw(&self, cx: &mut DrawContext) { |
| 142 | cx.set_fill_brush(Brush::Solid(self.title_background)); |
| 143 | |
| 144 | let region = cx.region(); |
| 145 | cx.fill(®ion); |
| 146 | |
| 147 | cx.mouse_region(region).on_down({ |
| 148 | move |cx| { |
| 149 | cx.drag_window(); |
| 150 | } |
| 151 | }); |
| 152 | |
| 153 | self.close.draw(cx); |
| 154 | self.maximize.draw(cx); |
| 155 | self.minimize.draw(cx); |
| 156 | } |
| 157 | |
| 158 | fn children(&self) -> Vec<Token> { |
| 159 | vec![ |
nothing calls this directly
no test coverage detected