SwingUtilities.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_SwingUtilities__
  3. #define __javax_swing_SwingUtilities__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Component;
  14. class Container;
  15. class FontMetrics;
  16. class Graphics;
  17. class Point;
  18. class Rectangle;
  19. class Window;
  20. namespace event
  21. {
  22. class KeyEvent;
  23. class MouseEvent;
  24. }
  25. }
  26. }
  27. namespace javax
  28. {
  29. namespace accessibility
  30. {
  31. class Accessible;
  32. class AccessibleStateSet;
  33. }
  34. namespace swing
  35. {
  36. class Action;
  37. class ActionMap;
  38. class Icon;
  39. class InputMap;
  40. class JComponent;
  41. class JRootPane;
  42. class KeyStroke;
  43. class SwingUtilities;
  44. class SwingUtilities$OwnerFrame;
  45. }
  46. }
  47. }
  48. class javax::swing::SwingUtilities : public ::java::lang::Object
  49. {
  50. SwingUtilities();
  51. public:
  52. static ::java::awt::Rectangle * calculateInnerArea(::javax::swing::JComponent *, ::java::awt::Rectangle *);
  53. static ::java::awt::Component * findFocusOwner(::java::awt::Component *);
  54. static ::javax::accessibility::Accessible * getAccessibleAt(::java::awt::Component *, ::java::awt::Point *);
  55. static ::javax::accessibility::Accessible * getAccessibleChild(::java::awt::Component *, jint);
  56. static jint getAccessibleChildrenCount(::java::awt::Component *);
  57. static jint getAccessibleIndexInParent(::java::awt::Component *);
  58. static ::javax::accessibility::AccessibleStateSet * getAccessibleStateSet(::java::awt::Component *);
  59. static ::java::awt::Rectangle * getLocalBounds(::java::awt::Component *);
  60. static ::javax::swing::JRootPane * getRootPane(::java::awt::Component *);
  61. static ::java::awt::Container * getAncestorNamed(::java::lang::String *, ::java::awt::Component *);
  62. static ::java::awt::Container * getAncestorOfClass(::java::lang::Class *, ::java::awt::Component *);
  63. static ::java::awt::Window * getWindowAncestor(::java::awt::Component *);
  64. static ::java::awt::Window * windowForComponent(::java::awt::Component *);
  65. static ::java::awt::Component * getRoot(::java::awt::Component *);
  66. static jboolean isDescendingFrom(::java::awt::Component *, ::java::awt::Component *);
  67. static ::java::awt::Component * getDeepestComponentAt(::java::awt::Component *, jint, jint);
  68. static void convertPointToScreen(::java::awt::Point *, ::java::awt::Component *);
  69. static void convertPointFromScreen(::java::awt::Point *, ::java::awt::Component *);
  70. static ::java::awt::Point * convertPoint(::java::awt::Component *, jint, jint, ::java::awt::Component *);
  71. static ::java::awt::Point * convertPoint(::java::awt::Component *, ::java::awt::Point *, ::java::awt::Component *);
  72. static ::java::awt::Rectangle * convertRectangle(::java::awt::Component *, ::java::awt::Rectangle *, ::java::awt::Component *);
  73. static ::java::awt::event::MouseEvent * convertMouseEvent(::java::awt::Component *, ::java::awt::event::MouseEvent *, ::java::awt::Component *);
  74. static void updateComponentTreeUI(::java::awt::Component *);
  75. private:
  76. static void updateComponentTreeUIImpl(::java::awt::Component *);
  77. public:
  78. static ::java::lang::String * layoutCompoundLabel(::javax::swing::JComponent *, ::java::awt::FontMetrics *, ::java::lang::String *, ::javax::swing::Icon *, jint, jint, jint, jint, ::java::awt::Rectangle *, ::java::awt::Rectangle *, ::java::awt::Rectangle *, jint);
  79. static ::java::lang::String * layoutCompoundLabel(::java::awt::FontMetrics *, ::java::lang::String *, ::javax::swing::Icon *, jint, jint, jint, jint, ::java::awt::Rectangle *, ::java::awt::Rectangle *, ::java::awt::Rectangle *, jint);
  80. private:
  81. static ::java::lang::String * layoutCompoundLabelImpl(::javax::swing::JComponent *, ::java::awt::FontMetrics *, ::java::lang::String *, ::javax::swing::Icon *, jint, jint, jint, jint, ::java::awt::Rectangle *, ::java::awt::Rectangle *, ::java::awt::Rectangle *, jint);
  82. static ::java::lang::String * clipString(::javax::swing::JComponent *, ::java::awt::FontMetrics *, ::java::lang::String *, jint);
  83. public:
  84. static void invokeLater(::java::lang::Runnable *);
  85. static void invokeAndWait(::java::lang::Runnable *);
  86. static jboolean isEventDispatchThread();
  87. static void paintComponent(::java::awt::Graphics *, ::java::awt::Component *, ::java::awt::Container *, jint, jint, jint, jint);
  88. static void paintComponent(::java::awt::Graphics *, ::java::awt::Component *, ::java::awt::Container *, ::java::awt::Rectangle *);
  89. public: // actually package-private
  90. static ::java::awt::Window * getOwnerFrame(::java::awt::Window *);
  91. public:
  92. static jboolean isLeftMouseButton(::java::awt::event::MouseEvent *);
  93. static jboolean isMiddleMouseButton(::java::awt::event::MouseEvent *);
  94. static jboolean isRightMouseButton(::java::awt::event::MouseEvent *);
  95. static jboolean notifyAction(::javax::swing::Action *, ::javax::swing::KeyStroke *, ::java::awt::event::KeyEvent *, ::java::lang::Object *, jint);
  96. static void replaceUIActionMap(::javax::swing::JComponent *, ::javax::swing::ActionMap *);
  97. static void replaceUIInputMap(::javax::swing::JComponent *, jint, ::javax::swing::InputMap *);
  98. static JArray< ::java::awt::Rectangle * > * computeDifference(::java::awt::Rectangle *, ::java::awt::Rectangle *);
  99. static ::java::awt::Rectangle * computeIntersection(jint, jint, jint, jint, ::java::awt::Rectangle *);
  100. static jint computeStringWidth(::java::awt::FontMetrics *, ::java::lang::String *);
  101. static ::java::awt::Rectangle * computeUnion(jint, jint, jint, jint, ::java::awt::Rectangle *);
  102. static jboolean isRectangleContainingRectangle(::java::awt::Rectangle *, ::java::awt::Rectangle *);
  103. static ::javax::swing::InputMap * getUIInputMap(::javax::swing::JComponent *, jint);
  104. static ::javax::swing::ActionMap * getUIActionMap(::javax::swing::JComponent *);
  105. static jboolean processKeyBindings(::java::awt::event::KeyEvent *);
  106. public: // actually package-private
  107. static ::java::lang::String * convertHorizontalAlignmentCodeToString(jint);
  108. static ::java::lang::String * convertVerticalAlignmentCodeToString(jint);
  109. static ::java::lang::String * convertWindowConstantToString(jint);
  110. static void convertRectangleToAncestor(::java::awt::Component *, ::java::awt::Rectangle *, ::java::awt::Component *);
  111. private:
  112. static ::javax::swing::SwingUtilities$OwnerFrame * ownerFrame;
  113. public:
  114. static ::java::lang::Class class$;
  115. };
  116. #endif // __javax_swing_SwingUtilities__