wtest_basic 0.1.14

Tools for writing tests. The most basic things.
Documentation
/// Internal namespace.
pub( crate ) mod private
{
  use crate::protected::*;

  /// Drawing.
  #[ derive( Debug, Clone ) ]
  pub struct Drawing
  {
    pub( crate ) id : Id,
  }

  impl Drawing
  {
    /// Constructor.
    pub fn new() -> Self
    {
      let id = Id::new::< Self >();
      Self
      {
        id,
      }
    }
  }

  impl HasIdInterface for Drawing
  {
    #[ inline ]
    fn id( &self ) -> Id
    {
      self.id
    }
  }

}

crate::mod_interface!
{

  /// Draw changer.
  layer changer;
  /// ChangeInterface for drawing constructor.
  layer change_new;
  /// Draw command.
  layer command;
  /// Draw queue.
  layer queue;
  /// New shape : rectangle.
  layer rect_change_new;
  /// Change region of the rectangle.
  layer rect_change_region;
  /// Rectangle change.
  layer rect_changer;

  exposed use Drawing;

}