summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/RepaintManager.h
blob: c599a47cc79065da21b4b36bd406567cbc41fbd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_RepaintManager__
#define __javax_swing_RepaintManager__

#pragma interface

#include <java/lang/Object.h>
extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Component;
        class Dimension;
        class Image;
        class Rectangle;
    }
  }
  namespace javax
  {
    namespace swing
    {
        class JComponent;
        class RepaintManager;
        class RepaintManager$RepaintWorker;
    }
  }
}

class javax::swing::RepaintManager : public ::java::lang::Object
{

public:
  RepaintManager();
  static ::javax::swing::RepaintManager * currentManager(::java::awt::Component *);
  static ::javax::swing::RepaintManager * currentManager(::javax::swing::JComponent *);
  static void setCurrentManager(::javax::swing::RepaintManager *);
  virtual void addInvalidComponent(::javax::swing::JComponent *);
  virtual void removeInvalidComponent(::javax::swing::JComponent *);
  virtual void addDirtyRegion(::javax::swing::JComponent *, jint, jint, jint, jint);
  virtual ::java::awt::Rectangle * getDirtyRegion(::javax::swing::JComponent *);
  virtual void markCompletelyDirty(::javax::swing::JComponent *);
  virtual void markCompletelyClean(::javax::swing::JComponent *);
  virtual jboolean isCompletelyDirty(::javax::swing::JComponent *);
  virtual void validateInvalidComponents();
  virtual void paintDirtyRegions();
private:
  void compileRepaintRoots(::java::util::HashMap *, ::javax::swing::JComponent *, ::java::util::HashSet *);
public:
  virtual ::java::awt::Image * getOffscreenBuffer(::java::awt::Component *, jint, jint);
public: // actually package-private
  virtual void commitBuffer(::java::awt::Component *, jint, jint, jint, jint);
public:
  virtual ::java::awt::Image * getVolatileOffscreenBuffer(::java::awt::Component *, jint, jint);
  virtual ::java::awt::Dimension * getDoubleBufferMaximumSize();
  virtual void setDoubleBufferMaximumSize(::java::awt::Dimension *);
  virtual void setDoubleBufferingEnabled(jboolean);
  virtual jboolean isDoubleBufferingEnabled();
  virtual ::java::lang::String * toString();
private:
  void invokeLater(::java::lang::Runnable *);
public: // actually package-private
  static ::java::util::WeakHashMap * currentRepaintManagers;
private:
  static ::java::awt::Rectangle * rectCache;
  ::java::util::HashMap * __attribute__((aligned(__alignof__( ::java::lang::Object)))) dirtyComponents;
  ::java::util::HashMap * dirtyComponentsWork;
  ::javax::swing::RepaintManager$RepaintWorker * repaintWorker;
  ::java::util::ArrayList * invalidComponents;
  jboolean doubleBufferingEnabled;
  ::java::util::WeakHashMap * offscreenBuffers;
  ::java::awt::Dimension * doubleBufferMaximumSize;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_RepaintManager__