FontMetrics.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_FontMetrics__
  3. #define __java_awt_FontMetrics__
  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 Font;
  14. class FontMetrics;
  15. class Graphics;
  16. namespace font
  17. {
  18. class FontRenderContext;
  19. class LineMetrics;
  20. }
  21. namespace geom
  22. {
  23. class Rectangle2D;
  24. }
  25. }
  26. namespace text
  27. {
  28. class CharacterIterator;
  29. }
  30. }
  31. }
  32. class java::awt::FontMetrics : public ::java::lang::Object
  33. {
  34. public: // actually protected
  35. FontMetrics(::java::awt::Font *);
  36. public:
  37. virtual ::java::awt::Font * getFont();
  38. virtual jint getLeading();
  39. virtual jint getAscent();
  40. virtual jint getDescent();
  41. virtual jint getHeight();
  42. virtual jint getMaxAscent();
  43. virtual jint getMaxDescent();
  44. virtual jint getMaxDecent();
  45. virtual jint getMaxAdvance();
  46. virtual jint charWidth(jint);
  47. virtual jint charWidth(jchar);
  48. virtual jint stringWidth(::java::lang::String *);
  49. virtual jint charsWidth(JArray< jchar > *, jint, jint);
  50. virtual jint bytesWidth(JArray< jbyte > *, jint, jint);
  51. virtual JArray< jint > * getWidths();
  52. virtual ::java::lang::String * toString();
  53. virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::lang::String *, ::java::awt::Graphics *);
  54. virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::lang::String *, jint, jint, ::java::awt::Graphics *);
  55. virtual ::java::awt::font::LineMetrics * getLineMetrics(JArray< jchar > *, jint, jint, ::java::awt::Graphics *);
  56. virtual ::java::awt::geom::Rectangle2D * getMaxCharBounds(::java::awt::Graphics *);
  57. virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::text::CharacterIterator *, jint, jint, ::java::awt::Graphics *);
  58. virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::lang::String *, ::java::awt::Graphics *);
  59. virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::lang::String *, jint, jint, ::java::awt::Graphics *);
  60. virtual ::java::awt::geom::Rectangle2D * getStringBounds(JArray< jchar > *, jint, jint, ::java::awt::Graphics *);
  61. virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::text::CharacterIterator *, jint, jint, ::java::awt::Graphics *);
  62. private:
  63. ::java::awt::font::FontRenderContext * getFontRenderContext(::java::awt::Graphics *);
  64. public:
  65. virtual jboolean hasUniformLineMetrics();
  66. private:
  67. static const jlong serialVersionUID = 1681126225205050147LL;
  68. public: // actually protected
  69. ::java::awt::Font * __attribute__((aligned(__alignof__( ::java::lang::Object)))) font;
  70. private:
  71. static ::java::awt::font::FontRenderContext * gRC;
  72. public:
  73. static ::java::lang::Class class$;
  74. };
  75. #endif // __java_awt_FontMetrics__