Guest User

Untitled

a guest
Aug 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Class.declare("Foundation.geometry.Point",{
  2. slots:{
  3. x:0,
  4. y:0
  5. },
  6. constructor:function(cfg){
  7. Class.init(this,cfg);
  8. }
  9. })
  10.  
  11. Class.declare("Foundation.geometry.Size",{
  12. slots:{
  13. height:0,
  14. width:0
  15. },
  16. constructor:function(cfg){
  17. Class.init(this,cfg);
  18. }
  19. })
  20.  
  21. Class.declare("Foundation.geometry.Rect",{
  22. mixins:[ Foundation.geometry.Point, Foundation.geometry.Size ]
  23. })
Add Comment
Please, Sign In to add comment