| 182 | } |
| 183 | |
| 184 | void SpeedGraph::CanvasControl_Draw(winrt::Microsoft::Graphics::Canvas::UI::Xaml::CanvasControl const& sender, winrt::Microsoft::Graphics::Canvas::UI::Xaml::CanvasDrawEventArgs const& args) |
| 185 | { |
| 186 | auto drawingSession = args.DrawingSession(); |
| 187 | |
| 188 | auto const width = sender.ActualWidth(); |
| 189 | auto const height = sender.ActualHeight(); |
| 190 | auto const color = winrt::Windows::UI::ColorHelper::FromArgb(32, 255, 255, 255); |
| 191 | |
| 192 | for (int i = 0; i < width; i += BackgroundCircleDistance) |
| 193 | { |
| 194 | for (int j = 0; j < height; j += BackgroundCircleDistance) |
| 195 | { |
| 196 | drawingSession.FillCircle(i, j, 1, color); |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | void SpeedGraph::UserControl_SizeChanged(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::SizeChangedEventArgs const& e) |
| 202 | { |
nothing calls this directly
no outgoing calls
no test coverage detected