jiao 0.2.1

Cross platform 2D rendering engine
Documentation
// Copyright (c) 2022 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Apache-2.0 License that can be found
// in the LICENSE file.

use super::shape_manager::ShapeManager;

#[allow(clippy::module_name_repetitions)]
pub trait PaintContextTrait {
    /// Repaint immediately.
    fn repaint(&mut self);

    /// Schedule a repaint operation.
    fn update(&mut self);

    /// Get a mutable reference to internal `shape_manager` object.
    fn shape_manager(&mut self) -> &mut ShapeManager;
}