ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DUIWindow.java 719B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package org.openzen.drawablegui;
  7. import live.LiveBool;
  8. import live.LiveObject;
  9. /**
  10. *
  11. * @author Hoofdgebruiker
  12. */
  13. public interface DUIWindow {
  14. LiveObject<DIRectangle> getWindowBounds();
  15. DUIContext getContext();
  16. boolean hasTitleBar();
  17. void close();
  18. void maximize();
  19. void restore();
  20. void minimize();
  21. LiveObject<State> getWindowState();
  22. LiveBool getActive();
  23. void focus(DComponent component);
  24. DUIWindow openModal(String title, DComponent root);
  25. enum State {
  26. NORMAL,
  27. MAXIMIZED,
  28. MINIMIZED
  29. };
  30. }