RepaintManager.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_RepaintManager__
  3. #define __javax_swing_RepaintManager__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. extern "Java"
  7. {
  8. namespace java
  9. {
  10. namespace awt
  11. {
  12. class Component;
  13. class Dimension;
  14. class Image;
  15. class Rectangle;
  16. }
  17. }
  18. namespace javax
  19. {
  20. namespace swing
  21. {
  22. class JComponent;
  23. class RepaintManager;
  24. class RepaintManager$RepaintWorker;
  25. }
  26. }
  27. }
  28. class javax::swing::RepaintManager : public ::java::lang::Object
  29. {
  30. public:
  31. RepaintManager();
  32. static ::javax::swing::RepaintManager * currentManager(::java::awt::Component *);
  33. static ::javax::swing::RepaintManager * currentManager(::javax::swing::JComponent *);
  34. static void setCurrentManager(::javax::swing::RepaintManager *);
  35. virtual void addInvalidComponent(::javax::swing::JComponent *);
  36. virtual void removeInvalidComponent(::javax::swing::JComponent *);
  37. virtual void addDirtyRegion(::javax::swing::JComponent *, jint, jint, jint, jint);
  38. virtual ::java::awt::Rectangle * getDirtyRegion(::javax::swing::JComponent *);
  39. virtual void markCompletelyDirty(::javax::swing::JComponent *);
  40. virtual void markCompletelyClean(::javax::swing::JComponent *);
  41. virtual jboolean isCompletelyDirty(::javax::swing::JComponent *);
  42. virtual void validateInvalidComponents();
  43. virtual void paintDirtyRegions();
  44. private:
  45. void compileRepaintRoots(::java::util::HashMap *, ::javax::swing::JComponent *, ::java::util::HashSet *);
  46. public:
  47. virtual ::java::awt::Image * getOffscreenBuffer(::java::awt::Component *, jint, jint);
  48. public: // actually package-private
  49. virtual void commitBuffer(::java::awt::Component *, jint, jint, jint, jint);
  50. public:
  51. virtual ::java::awt::Image * getVolatileOffscreenBuffer(::java::awt::Component *, jint, jint);
  52. virtual ::java::awt::Dimension * getDoubleBufferMaximumSize();
  53. virtual void setDoubleBufferMaximumSize(::java::awt::Dimension *);
  54. virtual void setDoubleBufferingEnabled(jboolean);
  55. virtual jboolean isDoubleBufferingEnabled();
  56. virtual ::java::lang::String * toString();
  57. private:
  58. void invokeLater(::java::lang::Runnable *);
  59. public: // actually package-private
  60. static ::java::util::WeakHashMap * currentRepaintManagers;
  61. private:
  62. static ::java::awt::Rectangle * rectCache;
  63. ::java::util::HashMap * __attribute__((aligned(__alignof__( ::java::lang::Object)))) dirtyComponents;
  64. ::java::util::HashMap * dirtyComponentsWork;
  65. ::javax::swing::RepaintManager$RepaintWorker * repaintWorker;
  66. ::java::util::ArrayList * invalidComponents;
  67. jboolean doubleBufferingEnabled;
  68. ::java::util::WeakHashMap * offscreenBuffers;
  69. ::java::awt::Dimension * doubleBufferMaximumSize;
  70. public:
  71. static ::java::lang::Class class$;
  72. };
  73. #endif // __javax_swing_RepaintManager__