JViewport.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JViewport__
  3. #define __javax_swing_JViewport__
  4. #pragma interface
  5. #include <javax/swing/JComponent.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Component;
  14. class Dimension;
  15. class Graphics;
  16. class Image;
  17. class Insets;
  18. class LayoutManager;
  19. class Point;
  20. class Rectangle;
  21. }
  22. }
  23. namespace javax
  24. {
  25. namespace accessibility
  26. {
  27. class AccessibleContext;
  28. }
  29. namespace swing
  30. {
  31. class JViewport;
  32. class JViewport$ViewListener;
  33. namespace border
  34. {
  35. class Border;
  36. }
  37. namespace event
  38. {
  39. class ChangeEvent;
  40. class ChangeListener;
  41. }
  42. namespace plaf
  43. {
  44. class ViewportUI;
  45. }
  46. }
  47. }
  48. }
  49. class javax::swing::JViewport : public ::javax::swing::JComponent
  50. {
  51. public:
  52. JViewport();
  53. virtual ::java::awt::Dimension * getExtentSize();
  54. virtual ::java::awt::Dimension * toViewCoordinates(::java::awt::Dimension *);
  55. virtual ::java::awt::Point * toViewCoordinates(::java::awt::Point *);
  56. virtual void setExtentSize(::java::awt::Dimension *);
  57. virtual ::java::awt::Dimension * getViewSize();
  58. virtual void setViewSize(::java::awt::Dimension *);
  59. virtual ::java::awt::Point * getViewPosition();
  60. virtual void setViewPosition(::java::awt::Point *);
  61. virtual ::java::awt::Rectangle * getViewRect();
  62. virtual jboolean isBackingStoreEnabled();
  63. virtual void setBackingStoreEnabled(jboolean);
  64. virtual void setScrollMode(jint);
  65. virtual jint getScrollMode();
  66. virtual ::java::awt::Component * getView();
  67. virtual void setView(::java::awt::Component *);
  68. virtual void reshape(jint, jint, jint, jint);
  69. virtual ::java::awt::Insets * getInsets();
  70. virtual ::java::awt::Insets * getInsets(::java::awt::Insets *);
  71. virtual jboolean isOptimizedDrawingEnabled();
  72. virtual void paint(::java::awt::Graphics *);
  73. virtual void addChangeListener(::javax::swing::event::ChangeListener *);
  74. virtual void removeChangeListener(::javax::swing::event::ChangeListener *);
  75. virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners();
  76. virtual ::java::lang::String * getUIClassID();
  77. virtual void updateUI();
  78. virtual ::javax::swing::plaf::ViewportUI * getUI();
  79. virtual void setUI(::javax::swing::plaf::ViewportUI *);
  80. virtual void setBorder(::javax::swing::border::Border *);
  81. virtual void scrollRectToVisible(::java::awt::Rectangle *);
  82. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  83. virtual void repaint(jlong, jint, jint, jint, jint);
  84. public: // actually protected
  85. virtual void addImpl(::java::awt::Component *, ::java::lang::Object *, jint);
  86. virtual void fireStateChanged();
  87. virtual ::javax::swing::JViewport$ViewListener * createViewListener();
  88. virtual ::java::awt::LayoutManager * createLayoutManager();
  89. virtual jboolean computeBlit(jint, jint, ::java::awt::Point *, ::java::awt::Point *, ::java::awt::Dimension *, ::java::awt::Rectangle *);
  90. public: // actually package-private
  91. virtual void paintSimple(::java::awt::Graphics *);
  92. virtual void paintBackingStore(::java::awt::Graphics *);
  93. virtual void paintBlit(::java::awt::Graphics *);
  94. virtual void paintImmediately2(jint, jint, jint, jint);
  95. virtual jboolean isPaintRoot();
  96. public:
  97. static const jint SIMPLE_SCROLL_MODE = 0;
  98. static const jint BLIT_SCROLL_MODE = 1;
  99. static const jint BACKINGSTORE_SCROLL_MODE = 2;
  100. private:
  101. static const jlong serialVersionUID = -6925142919680527970LL;
  102. static jint defaultScrollMode;
  103. public: // actually protected
  104. jboolean __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) scrollUnderway;
  105. jboolean isViewSizeSet;
  106. jboolean backingStore;
  107. ::java::awt::Image * backingStoreImage;
  108. ::java::awt::Point * lastPaintPosition;
  109. public: // actually package-private
  110. ::javax::swing::event::ChangeEvent * changeEvent;
  111. jint scrollMode;
  112. ::javax::swing::JViewport$ViewListener * viewListener;
  113. ::java::awt::Point * cachedBlitFrom;
  114. ::java::awt::Point * cachedBlitTo;
  115. ::java::awt::Dimension * cachedBlitSize;
  116. ::java::awt::Rectangle * cachedBlitPaint;
  117. jboolean damaged;
  118. jboolean sizeChanged;
  119. private:
  120. jboolean isPaintRoot__;
  121. public:
  122. static ::java::lang::Class class$;
  123. };
  124. #endif // __javax_swing_JViewport__