gcc/libjava/gnu/java/awt/peer/gtk/GdkFontPeer.h
Matthias Klose f06a83c0b2 Import GNU Classpath (libgcj-import-20070727).
libjava/

2007-08-04  Matthias Klose  <doko@ubuntu.com>

	Import GNU Classpath (libgcj-import-20070727).

	* Regenerate class and header files.
	* Regenerate auto* files.

	* include/jvm.h:
	* jni-libjvm.cc (Jv_JNI_InvokeFunctions): Rename type.
	* jni.cc (_Jv_JNIFunctions, _Jv_JNI_InvokeFunctions): Likewise.
	* jni.cc (_Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodA,
	_Jv_JNI_CallMethodA, _Jv_JNI_CallVoidMethodA,
	_Jv_JNI_CallStaticMethodA, _Jv_JNI_CallStaticVoidMethodA,
	_Jv_JNI_NewObjectA, _Jv_JNI_SetPrimitiveArrayRegion): Constify
	jvalue parameter.
	* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.

	* java/lang/VMFloat.java (toString, parseFloat): New.

	* gnu/awt/xlib/XToolkit.java (setAlwaysOnTop, isModalityTypeSupported,
	isModalExclusionTypeSupported): New (stub only).
	* gnu/awt/xlib/XCanvasPeer.java (requestFocus): Likewise.
	* gnu/awt/xlib/XFramePeer.java (updateMinimumSize, updateIconImages,
	updateFocusableWindowState, setModalBlocked, getBoundsPrivate,
	setAlwaysOnTop): Likewise.
	* gnu/awt/xlib/XFontPeer.java (canDisplay): Update signature.

	* scripts/makemake.tcl: Ignore gnu/javax/sound/sampled/gstreamer,
	ignore javax.sound.sampled.spi.MixerProvider, ignore .in files.

	* HACKING: Mention --enable-gstreamer-peer, removal of generated files.


libjava/classpath/

2007-08-04  Matthias Klose  <doko@ubuntu.com>

	* java/util/EnumMap.java (clone): Add cast.

From-SVN: r127204
2007-08-04 10:53:49 +00:00

148 lines
5.0 KiB
C++

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_java_awt_peer_gtk_GdkFontPeer__
#define __gnu_java_awt_peer_gtk_GdkFontPeer__
#pragma interface
#include <gnu/java/awt/peer/ClasspathFontPeer.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace classpath
{
class Pointer;
}
namespace java
{
namespace awt
{
namespace peer
{
namespace gtk
{
class GdkFontPeer;
class GdkFontPeer$GdkFontMetrics;
}
}
}
}
}
namespace java
{
namespace awt
{
class Font;
class FontMetrics;
namespace font
{
class FontRenderContext;
class GlyphMetrics;
class GlyphVector;
class LineMetrics;
}
namespace geom
{
class Rectangle2D;
}
}
namespace nio
{
class ByteBuffer;
}
namespace text
{
class CharacterIterator;
}
}
}
class gnu::java::awt::peer::gtk::GdkFontPeer : public ::gnu::java::awt::peer::ClasspathFontPeer
{
public: // actually package-private
static void initStaticState();
private:
void initState();
void dispose();
void setFont(::java::lang::String *, jint, jint);
public: // actually package-private
virtual void getFontMetrics(JArray< jdouble > *);
virtual void getTextMetrics(::java::lang::String *, JArray< jdouble > *);
virtual void releasePeerGraphicsResource();
public: // actually protected
virtual void finalize();
private:
::java::lang::String * buildString(::java::text::CharacterIterator *);
::java::lang::String * buildString(::java::text::CharacterIterator *, jint, jint);
::java::lang::String * buildString(JArray< jchar > *, jint, jint);
public:
GdkFontPeer(::java::lang::String *, jint);
GdkFontPeer(::java::lang::String *, jint, jint);
GdkFontPeer(::java::lang::String *, ::java::util::Map *);
public: // actually package-private
static ::java::awt::Font * initFont(::java::awt::Font *);
private:
void setupMetrics();
public:
virtual ::java::lang::String * getSubFamilyName(::java::awt::Font *, ::java::util::Locale *);
private:
JArray< jbyte > * getTrueTypeTable(jbyte, jbyte, jbyte, jbyte);
public:
virtual ::java::lang::String * getPostScriptName(::java::awt::Font *);
private:
::java::lang::String * getName(jint, ::java::util::Locale *);
public:
virtual jboolean canDisplay(::java::awt::Font *, jint);
virtual jint canDisplayUpTo(::java::awt::Font *, ::java::text::CharacterIterator *, jint, jint);
virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, ::java::text::CharacterIterator *);
virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, JArray< jint > *);
virtual jbyte getBaselineFor(::java::awt::Font *, jchar);
virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::awt::Font *, ::java::text::CharacterIterator *, jint, jint, ::java::awt::font::FontRenderContext *);
virtual ::java::awt::geom::Rectangle2D * getMaxCharBounds(::java::awt::Font *, ::java::awt::font::FontRenderContext *);
virtual jint getMissingGlyphCode(::java::awt::Font *);
virtual ::java::lang::String * getGlyphName(::java::awt::Font *, jint);
virtual jint getNumGlyphs(::java::awt::Font *);
virtual jboolean hasUniformLineMetrics(::java::awt::Font *);
virtual ::java::awt::font::GlyphVector * layoutGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, JArray< jchar > *, jint, jint, jint);
virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::awt::Font *, ::java::lang::String *, ::java::awt::font::FontRenderContext *);
virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
public: // actually package-private
virtual ::java::awt::font::GlyphMetrics * getGlyphMetrics(jint);
virtual void putGlyphMetrics(jint, ::java::awt::font::GlyphMetrics *);
static ::java::awt::font::FontRenderContext * DEFAULT_CTX;
::java::util::HashMap * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::ClasspathFontPeer)))) textLayoutCache;
private:
jint native_state;
::java::util::HashMap * metricsCache;
static const jint FONT_METRICS_ASCENT = 0;
static const jint FONT_METRICS_MAX_ASCENT = 1;
static const jint FONT_METRICS_DESCENT = 2;
static const jint FONT_METRICS_MAX_DESCENT = 3;
static const jint FONT_METRICS_MAX_ADVANCE = 4;
static const jint FONT_METRICS_HEIGHT = 5;
static const jint FONT_METRICS_UNDERLINE_OFFSET = 6;
static const jint FONT_METRICS_UNDERLINE_THICKNESS = 7;
public: // actually package-private
jfloat ascent;
jfloat descent;
jfloat maxAscent;
jfloat maxDescent;
jfloat maxAdvance;
jfloat height;
jfloat underlineOffset;
jfloat underlineThickness;
::gnu::java::awt::peer::gtk::GdkFontPeer$GdkFontMetrics * metrics;
private:
::java::nio::ByteBuffer * nameTable;
::gnu::classpath::Pointer * nativeFont;
public:
static ::java::lang::Class class$;
};
#endif // __gnu_java_awt_peer_gtk_GdkFontPeer__