Font.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_Font__
  3. #define __java_awt_Font__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace java
  12. {
  13. namespace awt
  14. {
  15. class ClasspathToolkit;
  16. namespace peer
  17. {
  18. class ClasspathFontPeer;
  19. }
  20. }
  21. }
  22. }
  23. namespace java
  24. {
  25. namespace awt
  26. {
  27. class Font;
  28. namespace font
  29. {
  30. class FontRenderContext;
  31. class GlyphVector;
  32. class LineMetrics;
  33. }
  34. namespace geom
  35. {
  36. class AffineTransform;
  37. class Rectangle2D;
  38. }
  39. namespace peer
  40. {
  41. class FontPeer;
  42. }
  43. }
  44. namespace text
  45. {
  46. class AttributedCharacterIterator$Attribute;
  47. class CharacterIterator;
  48. }
  49. }
  50. }
  51. class java::awt::Font : public ::java::lang::Object
  52. {
  53. public:
  54. static ::java::awt::Font * decode(::java::lang::String *);
  55. public: // actually package-private
  56. static ::gnu::java::awt::ClasspathToolkit * tk();
  57. static ::java::awt::Font * getFontFromToolkit(::java::lang::String *, ::java::util::Map *);
  58. static ::gnu::java::awt::peer::ClasspathFontPeer * getPeerFromToolkit(::java::lang::String *, ::java::util::Map *);
  59. public:
  60. static ::java::awt::Font * getFont(::java::lang::String *, ::java::awt::Font *);
  61. static ::java::awt::Font * getFont(::java::lang::String *);
  62. public: // actually protected
  63. Font(::java::awt::Font *);
  64. public:
  65. Font(::java::lang::String *, jint, jint);
  66. Font(::java::util::Map *);
  67. public: // actually package-private
  68. Font(::java::lang::String *, ::java::util::Map *);
  69. public:
  70. virtual ::java::lang::String * getName();
  71. virtual jint getSize();
  72. virtual jfloat getSize2D();
  73. virtual jboolean isPlain();
  74. virtual jboolean isBold();
  75. virtual jboolean isItalic();
  76. virtual ::java::lang::String * getFamily();
  77. virtual jint getStyle();
  78. virtual jboolean canDisplay(jchar);
  79. virtual jboolean canDisplay(jint);
  80. virtual jint canDisplayUpTo(::java::lang::String *);
  81. virtual jint canDisplayUpTo(JArray< jchar > *, jint, jint);
  82. virtual jint canDisplayUpTo(::java::text::CharacterIterator *, jint, jint);
  83. static ::java::awt::Font * createFont(jint, ::java::io::InputStream *);
  84. static ::java::awt::Font * createFont(jint, ::java::io::File *);
  85. virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::font::FontRenderContext *, ::java::lang::String *);
  86. virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::font::FontRenderContext *, ::java::text::CharacterIterator *);
  87. virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::font::FontRenderContext *, JArray< jchar > *);
  88. virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::font::FontRenderContext *, JArray< jint > *);
  89. virtual ::java::awt::Font * deriveFont(jint, jfloat);
  90. virtual ::java::awt::Font * deriveFont(jfloat);
  91. virtual ::java::awt::Font * deriveFont(jint);
  92. virtual ::java::awt::Font * deriveFont(jint, ::java::awt::geom::AffineTransform *);
  93. virtual ::java::awt::Font * deriveFont(::java::awt::geom::AffineTransform *);
  94. virtual ::java::awt::Font * deriveFont(::java::util::Map *);
  95. virtual ::java::util::Map * getAttributes();
  96. virtual JArray< ::java::text::AttributedCharacterIterator$Attribute * > * getAvailableAttributes();
  97. virtual jbyte getBaselineFor(jchar);
  98. virtual ::java::lang::String * getFamily(::java::util::Locale *);
  99. static ::java::awt::Font * getFont(::java::util::Map *);
  100. virtual ::java::lang::String * getFontName();
  101. virtual ::java::lang::String * getFontName(::java::util::Locale *);
  102. virtual jfloat getItalicAngle();
  103. virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::lang::String *, jint, jint, ::java::awt::font::FontRenderContext *);
  104. virtual ::java::awt::font::LineMetrics * getLineMetrics(JArray< jchar > *, jint, jint, ::java::awt::font::FontRenderContext *);
  105. virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::text::CharacterIterator *, jint, jint, ::java::awt::font::FontRenderContext *);
  106. virtual ::java::awt::geom::Rectangle2D * getMaxCharBounds(::java::awt::font::FontRenderContext *);
  107. virtual jint getMissingGlyphCode();
  108. virtual jint getNumGlyphs();
  109. virtual ::java::lang::String * getPSName();
  110. virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::lang::String *, ::java::awt::font::FontRenderContext *);
  111. virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::lang::String *, jint, jint, ::java::awt::font::FontRenderContext *);
  112. virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::text::CharacterIterator *, jint, jint, ::java::awt::font::FontRenderContext *);
  113. virtual ::java::awt::geom::Rectangle2D * getStringBounds(JArray< jchar > *, jint, jint, ::java::awt::font::FontRenderContext *);
  114. virtual ::java::awt::geom::AffineTransform * getTransform();
  115. virtual jboolean hasUniformLineMetrics();
  116. virtual jboolean isTransformed();
  117. virtual ::java::awt::font::GlyphVector * layoutGlyphVector(::java::awt::font::FontRenderContext *, JArray< jchar > *, jint, jint, jint);
  118. virtual ::java::awt::peer::FontPeer * getPeer();
  119. virtual jint hashCode();
  120. virtual jboolean equals(::java::lang::Object *);
  121. virtual ::java::lang::String * toString();
  122. virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::lang::String *, ::java::awt::font::FontRenderContext *);
  123. virtual jboolean hasLayoutAttributes();
  124. private:
  125. void readObject(::java::io::ObjectInputStream *);
  126. public:
  127. static const jint PLAIN = 0;
  128. static const jint BOLD = 1;
  129. static const jint ITALIC = 2;
  130. static const jint ROMAN_BASELINE = 0;
  131. static const jint CENTER_BASELINE = 1;
  132. static const jint HANGING_BASELINE = 2;
  133. static const jint TRUETYPE_FONT = 0;
  134. static const jint TYPE1_FONT = 1;
  135. static const jint LAYOUT_LEFT_TO_RIGHT = 0;
  136. static const jint LAYOUT_RIGHT_TO_LEFT = 1;
  137. static const jint LAYOUT_NO_START_CONTEXT = 2;
  138. static const jint LAYOUT_NO_LIMIT_CONTEXT = 4;
  139. static ::java::lang::String * DIALOG;
  140. static ::java::lang::String * DIALOG_INPUT;
  141. static ::java::lang::String * MONOSPACED;
  142. static ::java::lang::String * SANS_SERIF;
  143. static ::java::lang::String * SERIF;
  144. public: // actually protected
  145. ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name;
  146. jint size;
  147. jfloat pointSize;
  148. jint style;
  149. private:
  150. static const jlong serialVersionUID = -4206021311591459213LL;
  151. ::gnu::java::awt::peer::ClasspathFontPeer * peer;
  152. jint hashCode__;
  153. public:
  154. static ::java::lang::Class class$;
  155. };
  156. #endif // __java_awt_Font__