|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.video.fontserv.csFont
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csFont(iPointer nPointer)
|
|
| Method Summary | |
void |
addDeleteCallback(iFontDeleteNotify func)
Add a font delete notification callback routine. |
int |
getAscent()
Get the font's ascent in pixels. |
int |
getDescent()
Get the font's descent in pixels. |
int[] |
getDimensions(java.lang.String text)
Return the width and height of text written with this font. desc gives the maximum descender. |
iDataBuffer |
getGlyphAlphaBitmap(int c,
csBitmapMetrics metrics)
Return a pointer to a bitmap containing the alpha bitmap for the rendered character. |
iDataBuffer |
getGlyphBitmap(int c,
csBitmapMetrics metrics)
Return a pointer to a bitmap containing a rendered character. |
boolean |
getGlyphMetrics(int c,
csGlyphMetrics metrics)
Return the metrics of a glyph. |
int |
getLength(java.lang.String text,
int maxwidth)
Determine how many characters from this string can be written without exceeding given width (in pixels);. |
int[] |
getMaxSize()
Return the maximum width and height of a single glyph, in pixels. |
java.lang.String |
getName()
Return the name of the interface |
int |
getSize()
Query current font size in Point. |
int |
getVersion()
Return the version of the interface |
boolean |
hasGlyph(int c)
Returns whether a specific glyph is present in this font. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
boolean |
removeDeleteCallback(iFontDeleteNotify func)
Remove a font delete notification callback. |
void |
setSize(int iSize)
Set the size for this font in Point. |
| Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csFont(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iBase
getName in interface iBasegetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public void addDeleteCallback(iFontDeleteNotify func)
iFont
addDeleteCallback in interface iFontfunc - iFont.addDeleteCallback(crystalspace.jbind.interfaces.ivideo.fontserv.iFontDeleteNotify)public int getAscent()
iFont
getAscent in interface iFontiFont.getAscent()public int getDescent()
iFont
getDescent in interface iFontiFont.getDescent()public int[] getDimensions(java.lang.String text)
iFont
getDimensions in interface iFonttext -
iFont.getDimensions(java.lang.String)
public iDataBuffer getGlyphAlphaBitmap(int c,
csBitmapMetrics metrics)
iFont
getGlyphAlphaBitmap in interface iFontc - metrics -
iFont.getGlyphAlphaBitmap(int, crystalspace.jbind.impl.video.fontserv.csBitmapMetrics)
public iDataBuffer getGlyphBitmap(int c,
csBitmapMetrics metrics)
iFont
getGlyphBitmap in interface iFontc - metrics -
iFont.getGlyphBitmap(int, crystalspace.jbind.impl.video.fontserv.csBitmapMetrics)
public boolean getGlyphMetrics(int c,
csGlyphMetrics metrics)
iFont
getGlyphMetrics in interface iFontc - metrics -
iFont.getGlyphMetrics(int, crystalspace.jbind.impl.video.fontserv.csGlyphMetrics)
public int getLength(java.lang.String text,
int maxwidth)
iFont
getLength in interface iFonttext - maxwidth -
iFont.getLength(java.lang.String, int)public int[] getMaxSize()
iFont
getMaxSize in interface iFontiFont.getMaxSize()public int getSize()
iFont
getSize in interface iFontiFont.getSize()public boolean hasGlyph(int c)
iFont
hasGlyph in interface iFontc -
iFont.hasGlyph(int)public boolean removeDeleteCallback(iFontDeleteNotify func)
iFont
removeDeleteCallback in interface iFontfunc -
iFont.removeDeleteCallback(crystalspace.jbind.interfaces.ivideo.fontserv.iFontDeleteNotify)public void setSize(int iSize)
iFont
setSize in interface iFontiSize - iFont.setSize(int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||