2012-12-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libjava / java / awt / FontMetrics.h
blob67d8b6b4f39ec5f4fa5ce2d0d7176e084ef8f7ff
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_awt_FontMetrics__
5 #define __java_awt_FontMetrics__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace awt
18 class Font;
19 class FontMetrics;
20 class Graphics;
21 namespace font
23 class FontRenderContext;
24 class LineMetrics;
26 namespace geom
28 class Rectangle2D;
31 namespace text
33 class CharacterIterator;
38 class java::awt::FontMetrics : public ::java::lang::Object
41 public: // actually protected
42 FontMetrics(::java::awt::Font *);
43 public:
44 virtual ::java::awt::Font * getFont();
45 virtual jint getLeading();
46 virtual jint getAscent();
47 virtual jint getDescent();
48 virtual jint getHeight();
49 virtual jint getMaxAscent();
50 virtual jint getMaxDescent();
51 virtual jint getMaxDecent();
52 virtual jint getMaxAdvance();
53 virtual jint charWidth(jint);
54 virtual jint charWidth(jchar);
55 virtual jint stringWidth(::java::lang::String *);
56 virtual jint charsWidth(JArray< jchar > *, jint, jint);
57 virtual jint bytesWidth(JArray< jbyte > *, jint, jint);
58 virtual JArray< jint > * getWidths();
59 virtual ::java::lang::String * toString();
60 virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::lang::String *, ::java::awt::Graphics *);
61 virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::lang::String *, jint, jint, ::java::awt::Graphics *);
62 virtual ::java::awt::font::LineMetrics * getLineMetrics(JArray< jchar > *, jint, jint, ::java::awt::Graphics *);
63 virtual ::java::awt::geom::Rectangle2D * getMaxCharBounds(::java::awt::Graphics *);
64 virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::text::CharacterIterator *, jint, jint, ::java::awt::Graphics *);
65 virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::lang::String *, ::java::awt::Graphics *);
66 virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::lang::String *, jint, jint, ::java::awt::Graphics *);
67 virtual ::java::awt::geom::Rectangle2D * getStringBounds(JArray< jchar > *, jint, jint, ::java::awt::Graphics *);
68 virtual ::java::awt::geom::Rectangle2D * getStringBounds(::java::text::CharacterIterator *, jint, jint, ::java::awt::Graphics *);
69 private:
70 ::java::awt::font::FontRenderContext * getFontRenderContext(::java::awt::Graphics *);
71 public:
72 virtual jboolean hasUniformLineMetrics();
73 private:
74 static const jlong serialVersionUID = 1681126225205050147LL;
75 public: // actually protected
76 ::java::awt::Font * __attribute__((aligned(__alignof__( ::java::lang::Object)))) font;
77 private:
78 static ::java::awt::font::FontRenderContext * gRC;
79 public:
80 static ::java::lang::Class class$;
83 #endif // __java_awt_FontMetrics__