DefaultCaret.h 4.9 KB

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