1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_DefaultCaret__
|
5 |
|
|
#define __javax_swing_text_DefaultCaret__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/awt/Rectangle.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Graphics;
|
19 |
|
|
class Point;
|
20 |
|
|
class Rectangle;
|
21 |
|
|
namespace event
|
22 |
|
|
{
|
23 |
|
|
class FocusEvent;
|
24 |
|
|
class MouseEvent;
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
namespace beans
|
28 |
|
|
{
|
29 |
|
|
class PropertyChangeListener;
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
namespace javax
|
33 |
|
|
{
|
34 |
|
|
namespace swing
|
35 |
|
|
{
|
36 |
|
|
class Timer;
|
37 |
|
|
namespace event
|
38 |
|
|
{
|
39 |
|
|
class ChangeEvent;
|
40 |
|
|
class ChangeListener;
|
41 |
|
|
class DocumentListener;
|
42 |
|
|
class EventListenerList;
|
43 |
|
|
}
|
44 |
|
|
namespace text
|
45 |
|
|
{
|
46 |
|
|
class DefaultCaret;
|
47 |
|
|
class DefaultCaret$BlinkTimerListener;
|
48 |
|
|
class Highlighter$HighlightPainter;
|
49 |
|
|
class JTextComponent;
|
50 |
|
|
class NavigationFilter$FilterBypass;
|
51 |
|
|
}
|
52 |
|
|
}
|
53 |
|
|
}
|
54 |
|
|
}
|
55 |
|
|
|
56 |
|
|
class javax::swing::text::DefaultCaret : public ::java::awt::Rectangle
|
57 |
|
|
{
|
58 |
|
|
|
59 |
|
|
public:
|
60 |
|
|
DefaultCaret();
|
61 |
|
|
private:
|
62 |
|
|
::javax::swing::text::NavigationFilter$FilterBypass * getBypass();
|
63 |
|
|
public:
|
64 |
|
|
virtual void setUpdatePolicy(jint);
|
65 |
|
|
virtual jint getUpdatePolicy();
|
66 |
|
|
virtual void mouseDragged(::java::awt::event::MouseEvent *);
|
67 |
|
|
virtual void mouseMoved(::java::awt::event::MouseEvent *);
|
68 |
|
|
virtual void mouseClicked(::java::awt::event::MouseEvent *);
|
69 |
|
|
virtual void mouseEntered(::java::awt::event::MouseEvent *);
|
70 |
|
|
virtual void mouseExited(::java::awt::event::MouseEvent *);
|
71 |
|
|
virtual void mousePressed(::java::awt::event::MouseEvent *);
|
72 |
|
|
virtual void mouseReleased(::java::awt::event::MouseEvent *);
|
73 |
|
|
virtual void focusGained(::java::awt::event::FocusEvent *);
|
74 |
|
|
virtual void focusLost(::java::awt::event::FocusEvent *);
|
75 |
|
|
private:
|
76 |
|
|
void updateTimerStatus();
|
77 |
|
|
public: // actually protected
|
78 |
|
|
virtual void moveCaret(::java::awt::event::MouseEvent *);
|
79 |
|
|
virtual void positionCaret(::java::awt::event::MouseEvent *);
|
80 |
|
|
public:
|
81 |
|
|
virtual void deinstall(::javax::swing::text::JTextComponent *);
|
82 |
|
|
virtual void install(::javax::swing::text::JTextComponent *);
|
83 |
|
|
virtual void setMagicCaretPosition(::java::awt::Point *);
|
84 |
|
|
virtual ::java::awt::Point * getMagicCaretPosition();
|
85 |
|
|
virtual jint getMark();
|
86 |
|
|
private:
|
87 |
|
|
void clearHighlight();
|
88 |
|
|
void handleHighlight();
|
89 |
|
|
public:
|
90 |
|
|
virtual void setSelectionVisible(jboolean);
|
91 |
|
|
virtual jboolean isSelectionVisible();
|
92 |
|
|
public: // actually protected
|
93 |
|
|
virtual void repaint();
|
94 |
|
|
public:
|
95 |
|
|
virtual void paint(::java::awt::Graphics *);
|
96 |
|
|
virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
|
97 |
|
|
virtual void addChangeListener(::javax::swing::event::ChangeListener *);
|
98 |
|
|
virtual void removeChangeListener(::javax::swing::event::ChangeListener *);
|
99 |
|
|
virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners();
|
100 |
|
|
public: // actually protected
|
101 |
|
|
virtual void fireStateChanged();
|
102 |
|
|
virtual ::javax::swing::text::JTextComponent * getComponent();
|
103 |
|
|
public:
|
104 |
|
|
virtual jint getBlinkRate();
|
105 |
|
|
virtual void setBlinkRate(jint);
|
106 |
|
|
virtual jint getDot();
|
107 |
|
|
virtual void moveDot(jint);
|
108 |
|
|
public: // actually package-private
|
109 |
|
|
virtual void moveDotImpl(jint);
|
110 |
|
|
public:
|
111 |
|
|
virtual void setDot(jint);
|
112 |
|
|
public: // actually package-private
|
113 |
|
|
virtual void setDotImpl(jint);
|
114 |
|
|
virtual void appear();
|
115 |
|
|
public:
|
116 |
|
|
virtual jboolean isActive();
|
117 |
|
|
virtual jboolean isVisible();
|
118 |
|
|
virtual void setVisible(jboolean);
|
119 |
|
|
public: // actually protected
|
120 |
|
|
virtual ::javax::swing::text::Highlighter$HighlightPainter * getSelectionPainter();
|
121 |
|
|
virtual void damage(::java::awt::Rectangle *);
|
122 |
|
|
virtual void adjustVisibility(::java::awt::Rectangle *);
|
123 |
|
|
private:
|
124 |
|
|
void initBlinkTimer();
|
125 |
|
|
public: // actually package-private
|
126 |
|
|
static ::javax::swing::text::JTextComponent * componentWithSelection;
|
127 |
|
|
private:
|
128 |
|
|
static const jlong serialVersionUID = 4325555698756477346LL;
|
129 |
|
|
public:
|
130 |
|
|
static const jint ALWAYS_UPDATE = 2;
|
131 |
|
|
static const jint NEVER_UPDATE = 1;
|
132 |
|
|
static const jint UPDATE_WHEN_ON_EDT = 0;
|
133 |
|
|
public: // actually package-private
|
134 |
|
|
jint __attribute__((aligned(__alignof__( ::java::awt::Rectangle)))) policy;
|
135 |
|
|
public: // actually protected
|
136 |
|
|
::javax::swing::event::ChangeEvent * changeEvent;
|
137 |
|
|
::javax::swing::event::EventListenerList * listenerList;
|
138 |
|
|
public: // actually package-private
|
139 |
|
|
::javax::swing::event::DocumentListener * documentListener;
|
140 |
|
|
::java::beans::PropertyChangeListener * propertyChangeListener;
|
141 |
|
|
::javax::swing::text::JTextComponent * textComponent;
|
142 |
|
|
private:
|
143 |
|
|
jboolean selectionVisible;
|
144 |
|
|
jint blinkRate;
|
145 |
|
|
jint dot;
|
146 |
|
|
jint mark;
|
147 |
|
|
::java::awt::Point * magicCaretPosition;
|
148 |
|
|
public: // actually package-private
|
149 |
|
|
jboolean visible;
|
150 |
|
|
jboolean active;
|
151 |
|
|
private:
|
152 |
|
|
::java::lang::Object * highlightEntry;
|
153 |
|
|
::javax::swing::Timer * blinkTimer;
|
154 |
|
|
::javax::swing::text::DefaultCaret$BlinkTimerListener * blinkListener;
|
155 |
|
|
public: // actually package-private
|
156 |
|
|
::javax::swing::text::NavigationFilter$FilterBypass * bypass;
|
157 |
|
|
public:
|
158 |
|
|
static ::java::lang::Class class$;
|
159 |
|
|
};
|
160 |
|
|
|
161 |
|
|
#endif // __javax_swing_text_DefaultCaret__
|