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.

DDrawingContext.java 644B

1234567891011121314151617181920212223242526272829303132333435
  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. /**
  8. *
  9. * @author Hoofdgebruiker
  10. */
  11. public interface DDrawingContext {
  12. float getScale();
  13. void repaint(int x, int y, int width, int height);
  14. void setCursor(Cursor cursor);
  15. void focus(DComponent component);
  16. void scrollInView(int x, int y, int width, int height);
  17. DFontMetrics getFontMetrics(DFont font);
  18. enum Cursor {
  19. NORMAL,
  20. HAND,
  21. MOVE,
  22. TEXT,
  23. E_RESIZE,
  24. S_RESIZE,
  25. NE_RESIZE,
  26. NW_RESIZE,
  27. }
  28. }