Updated the OnDrawingContent method across multiple classes to accept a DrawContext? context parameter, replacing the parameterless version. This change standardizes the drawing API and enables context-aware drawing operations.

The refactor includes:
- Modifying method signatures in classes like `AnimationScenario`, `Images`, `DrawingArea`, `AttributeView`, `Snake`, and others.
- Removing the parameterless `OnDrawingContent` method from the `View` class.
- Updating calls to the base class implementation to pass the `context` parameter.
- Adjusting comments and documentation to reflect the new method signature.

This change ensures consistency and prepares the codebase for more advanced drawing capabilities.
This commit is contained in:
Tig
2025-12-04 14:48:02 -07:00
parent 3a8de25dce
commit e192b5622d
30 changed files with 33 additions and 47 deletions

View File

@@ -109,7 +109,7 @@ internal class GradientsView : View
private const int LABEL_HEIGHT = 1;
private const int GRADIENT_WITH_LABEL_HEIGHT = GRADIENT_HEIGHT + LABEL_HEIGHT + 1; // +1 for spacing
protected override bool OnDrawingContent ()
protected override bool OnDrawingContent (DrawContext? context)
{
DrawTopLineGradient (Viewport);