2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_awt_FontMetrics__
5 #define __java_awt_FontMetrics__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
23 class FontRenderContext
;
33 class CharacterIterator
;
38 class java::awt::FontMetrics
: public ::java::lang::Object
41 public: // actually protected
42 FontMetrics(::java::awt::Font
*);
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
*);
70 ::java::awt::font::FontRenderContext
* getFontRenderContext(::java::awt::Graphics
*);
72 virtual jboolean
hasUniformLineMetrics();
74 static const jlong serialVersionUID
= 1681126225205050147LL;
75 public: // actually protected
76 ::java::awt::Font
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) font
;
78 static ::java::awt::font::FontRenderContext
* gRC
;
80 static ::java::lang::Class
class$
;
83 #endif // __java_awt_FontMetrics__