1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_AsyncBoxView__
|
5 |
|
|
#define __javax_swing_text_AsyncBoxView__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/text/View.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Graphics;
|
19 |
|
|
class Shape;
|
20 |
|
|
}
|
21 |
|
|
}
|
22 |
|
|
namespace javax
|
23 |
|
|
{
|
24 |
|
|
namespace swing
|
25 |
|
|
{
|
26 |
|
|
namespace event
|
27 |
|
|
{
|
28 |
|
|
class DocumentEvent;
|
29 |
|
|
class DocumentEvent$ElementChange;
|
30 |
|
|
}
|
31 |
|
|
namespace text
|
32 |
|
|
{
|
33 |
|
|
class AsyncBoxView;
|
34 |
|
|
class AsyncBoxView$ChildLocator;
|
35 |
|
|
class AsyncBoxView$ChildState;
|
36 |
|
|
class Element;
|
37 |
|
|
class LayoutQueue;
|
38 |
|
|
class Position$Bias;
|
39 |
|
|
class View;
|
40 |
|
|
class ViewFactory;
|
41 |
|
|
}
|
42 |
|
|
}
|
43 |
|
|
}
|
44 |
|
|
}
|
45 |
|
|
|
46 |
|
|
class javax::swing::text::AsyncBoxView : public ::javax::swing::text::View
|
47 |
|
|
{
|
48 |
|
|
|
49 |
|
|
public:
|
50 |
|
|
AsyncBoxView(::javax::swing::text::Element *, jint);
|
51 |
|
|
virtual jint getMajorAxis();
|
52 |
|
|
virtual jint getMinorAxis();
|
53 |
|
|
virtual ::javax::swing::text::View * getView(jint);
|
54 |
|
|
virtual jint getViewCount();
|
55 |
|
|
virtual jint getViewIndex(jint, ::javax::swing::text::Position$Bias *);
|
56 |
|
|
virtual jfloat getTopInset();
|
57 |
|
|
virtual void setTopInset(jfloat);
|
58 |
|
|
virtual jfloat getBottomInset();
|
59 |
|
|
virtual void setBottomInset(jfloat);
|
60 |
|
|
virtual jfloat getLeftInset();
|
61 |
|
|
virtual void setLeftInset(jfloat);
|
62 |
|
|
virtual jfloat getRightInset();
|
63 |
|
|
virtual void setRightInset(jfloat);
|
64 |
|
|
public: // actually protected
|
65 |
|
|
virtual void loadChildren(::javax::swing::text::ViewFactory *);
|
66 |
|
|
virtual jfloat getInsetSpan(jint);
|
67 |
|
|
virtual void setEstimatedMajorSpan(jboolean);
|
68 |
|
|
virtual jboolean getEstimatedMajorSpan();
|
69 |
|
|
virtual void minorRequirementChange(::javax::swing::text::AsyncBoxView$ChildState *);
|
70 |
|
|
virtual void majorRequirementChange(::javax::swing::text::AsyncBoxView$ChildState *, jfloat);
|
71 |
|
|
public:
|
72 |
|
|
virtual void setParent(::javax::swing::text::View *);
|
73 |
|
|
virtual void setSize(jfloat, jfloat);
|
74 |
|
|
virtual void replace(jint, jint, JArray< ::javax::swing::text::View * > *);
|
75 |
|
|
virtual void paint(::java::awt::Graphics *, ::java::awt::Shape *);
|
76 |
|
|
virtual jfloat getPreferredSpan(jint);
|
77 |
|
|
virtual ::java::awt::Shape * modelToView(jint, ::java::awt::Shape *, ::javax::swing::text::Position$Bias *);
|
78 |
|
|
virtual jint viewToModel(jfloat, jfloat, ::java::awt::Shape *, JArray< ::javax::swing::text::Position$Bias * > *);
|
79 |
|
|
virtual ::java::awt::Shape * getChildAllocation(jint, ::java::awt::Shape *);
|
80 |
|
|
virtual jfloat getMaximumSpan(jint);
|
81 |
|
|
virtual jfloat getMinimumSpan(jint);
|
82 |
|
|
virtual void preferenceChanged(::javax::swing::text::View *, jboolean, jboolean);
|
83 |
|
|
public: // actually protected
|
84 |
|
|
virtual void updateLayout(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *);
|
85 |
|
|
virtual ::javax::swing::text::AsyncBoxView$ChildState * getChildState(jint);
|
86 |
|
|
virtual ::javax::swing::text::LayoutQueue * getLayoutQueue();
|
87 |
|
|
virtual jint getViewIndexAtPosition(jint, ::javax::swing::text::Position$Bias *);
|
88 |
|
|
virtual ::javax::swing::text::AsyncBoxView$ChildState * createChildState(::javax::swing::text::View *);
|
89 |
|
|
virtual void flushRequirementChanges();
|
90 |
|
|
private:
|
91 |
|
|
jint __attribute__((aligned(__alignof__( ::javax::swing::text::View)))) majorAxis;
|
92 |
|
|
jfloat topInset;
|
93 |
|
|
jfloat bottomInset;
|
94 |
|
|
jfloat leftInset;
|
95 |
|
|
jboolean estimatedMajorSpan;
|
96 |
|
|
jfloat rightInset;
|
97 |
|
|
::java::util::ArrayList * childStates;
|
98 |
|
|
public: // actually package-private
|
99 |
|
|
::javax::swing::text::AsyncBoxView$ChildState * changing;
|
100 |
|
|
::javax::swing::text::AsyncBoxView$ChildState * minReq;
|
101 |
|
|
::javax::swing::text::AsyncBoxView$ChildState * prefReq;
|
102 |
|
|
private:
|
103 |
|
|
jboolean majorChanged;
|
104 |
|
|
public: // actually package-private
|
105 |
|
|
jboolean minorChanged;
|
106 |
|
|
jfloat majorSpan;
|
107 |
|
|
jfloat minorSpan;
|
108 |
|
|
private:
|
109 |
|
|
::java::lang::Runnable * flushTask;
|
110 |
|
|
public: // actually protected
|
111 |
|
|
::javax::swing::text::AsyncBoxView$ChildLocator * locator;
|
112 |
|
|
public:
|
113 |
|
|
static ::java::lang::Class class$;
|
114 |
|
|
};
|
115 |
|
|
|
116 |
|
|
#endif // __javax_swing_text_AsyncBoxView__
|