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