org.rococoa.cocoa.ats
Class ATSFontMetrics

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure<ATSFontMetrics,ATSFontMetrics.ByValue,ATSFontMetrics.ByReference>
          extended by org.rococoa.cocoa.ats.ATSFontMetrics
All Implemented Interfaces:
StructureType, StructureTypeDependent, Comparable<Structure<ATSFontMetrics,ATSFontMetrics.ByValue,ATSFontMetrics.ByReference>>
Direct Known Subclasses:
ATSFontMetrics.ByReference, ATSFontMetrics.ByValue

public class ATSFontMetrics
extends Structure<ATSFontMetrics,ATSFontMetrics.ByValue,ATSFontMetrics.ByReference>

ATSFontMetrics measurements are relative to a font's point size.
For example, when a font with an ATSFontMetrics ascent of 0.6 is drawn at 18 points, its actual ascent is (0.6 * 18) = 10.8 points.
native declaration : /System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/ATS.framework/Headers/ATSTypes.h:287
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class ATSFontMetrics.ByReference
           
static class ATSFontMetrics.ByValue
           
 
Field Summary
 org.rococoa.cocoa.CGFloat ascent
           
 org.rococoa.cocoa.CGFloat avgAdvanceWidth
           
 org.rococoa.cocoa.CGFloat capHeight
           
 org.rococoa.cocoa.CGFloat descent
          or maximum distance to the right of the centerline reached by the glyphs in the font
Maximum depth below baseline reached by the glyphs in the font
 org.rococoa.cocoa.CGFloat italicAngle
           
 org.rococoa.cocoa.CGFloat leading
          or maximum distance to the left of the centerline reached by the glyphs in the font
Desired spacing between lines of text
 org.rococoa.cocoa.CGFloat maxAdvanceWidth
           
 org.rococoa.cocoa.CGFloat minLeftSideBearing
           
 org.rococoa.cocoa.CGFloat minRightSideBearing
           
 org.rococoa.cocoa.CGFloat stemHeight
           
 org.rococoa.cocoa.CGFloat stemWidth
           
 org.rococoa.cocoa.CGFloat underlinePosition
           
 org.rococoa.cocoa.CGFloat underlineThickness
           
 int version
           
 org.rococoa.cocoa.CGFloat xHeight
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE
 
Constructor Summary
ATSFontMetrics()
           
 
Method Summary
static ATSFontMetrics[] newArray(int arrayLength)
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write
 
Methods inherited from class com.sun.jna.Structure
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ochafik.lang.jnaerator.runtime.StructureType
getPointer, size
 

Field Detail

version

public int version

ascent

public org.rococoa.cocoa.CGFloat ascent

descent

public org.rococoa.cocoa.CGFloat descent
or maximum distance to the right of the centerline reached by the glyphs in the font
Maximum depth below baseline reached by the glyphs in the font


leading

public org.rococoa.cocoa.CGFloat leading
or maximum distance to the left of the centerline reached by the glyphs in the font
Desired spacing between lines of text


avgAdvanceWidth

public org.rococoa.cocoa.CGFloat avgAdvanceWidth

maxAdvanceWidth

public org.rococoa.cocoa.CGFloat maxAdvanceWidth

minLeftSideBearing

public org.rococoa.cocoa.CGFloat minLeftSideBearing

minRightSideBearing

public org.rococoa.cocoa.CGFloat minRightSideBearing

stemWidth

public org.rococoa.cocoa.CGFloat stemWidth

stemHeight

public org.rococoa.cocoa.CGFloat stemHeight

capHeight

public org.rococoa.cocoa.CGFloat capHeight

xHeight

public org.rococoa.cocoa.CGFloat xHeight

italicAngle

public org.rococoa.cocoa.CGFloat italicAngle

underlinePosition

public org.rococoa.cocoa.CGFloat underlinePosition

underlineThickness

public org.rococoa.cocoa.CGFloat underlineThickness
Constructor Detail

ATSFontMetrics

public ATSFontMetrics()
Method Detail

newArray

public static ATSFontMetrics[] newArray(int arrayLength)


Copyright © 2009. All Rights Reserved.