view.py 711 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. class View:
  2. def __init__(self, config={}):
  3. self.x = config['x'] if 'x' in config else 0
  4. self.y = config['y'] if 'y' in config else 0
  5. self.width = config['width'] if 'width' in config else 0
  6. self.height = config['height'] if 'height' in config else 0
  7. def dimensions(self):
  8. pass
  9. # Major -> Minor -> Menu -> Item
  10. #
  11. # MAJOR
  12. # _____________________
  13. # | |
  14. # | |
  15. # | |
  16. # | |
  17. # | |
  18. # |_____________________|
  19. #
  20. #
  21. # MINOR
  22. # _____
  23. # | |
  24. # | |
  25. # |_____|
  26. #
  27. #
  28. # MENU
  29. # _________________
  30. # | |
  31. # |_________________|
  32. #
  33. #
  34. # ITEM
  35. #
  36. # ____
  37. # |____|
  38. #