org.rococoa.cocoa.qd
Class ATSUUnhighlightData

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

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

ATSUUnhighlightData

Summary:
Struct for defining a method for ATSUI to unhighlight text.

Discussion:
There are two methods of highlighting available on Mac OS X:
invert and redraw. For the invert method, no unhighlight method
needs to be specified. ATSUI will simply higlight text by
performing a color inversion on the area surrounding the test.
However, for best results, the redraw method is perferred. With
this method, ATSUI will redraw text with a new background when
highlighting, and redraw it again when unhighlighting. When using
the redraw method, ATSUI needs to know how to restore the
backround when unhighlighting text. That is where the unhighlight
data comes in. This struct tells ATSUI how to restore the
background after a highlight. There are two methods for
specifying this information to ATSUI. One is by specifying a
solid color, the other by providing a callback for redrawing part
of the background.
native declaration : /System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/QD.framework/Headers/ATSUnicodeTypes.h:1198
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 ATSUUnhighlightData.ByReference
           
static class ATSUUnhighlightData.ByValue
           
 
Field Summary
 int dataType
          Determines which method to use for restoring the background after
a highlight; solid color (kATSUBackgroundColor), or drawing
callback (kATSUBackgroundCallback).
 ATSUBackgroundData unhighlightData
          This union provides the actual data for ATSUI to use when
redrawing the background.
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE
 
Constructor Summary
ATSUUnhighlightData()
           
ATSUUnhighlightData(int dataType, ATSUBackgroundData unhighlightData)
           
 
Method Summary
static ATSUUnhighlightData[] 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

dataType

public int dataType
Determines which method to use for restoring the background after
a highlight; solid color (kATSUBackgroundColor), or drawing
callback (kATSUBackgroundCallback). See also the definition of
ATSUBackgroundDataType.
C type : ATSUBackgroundDataType


unhighlightData

public ATSUBackgroundData unhighlightData
This union provides the actual data for ATSUI to use when
redrawing the background. See the definition of ATSUBackgroundData
for more information.
C type : ATSUBackgroundData

Constructor Detail

ATSUUnhighlightData

public ATSUUnhighlightData()

ATSUUnhighlightData

public ATSUUnhighlightData(int dataType,
                           ATSUBackgroundData unhighlightData)
Parameters:
dataType - Determines which method to use for restoring the background after
a highlight; solid color (kATSUBackgroundColor), or drawing
callback (kATSUBackgroundCallback). See also the definition of
ATSUBackgroundDataType.
C type : ATSUBackgroundDataType
unhighlightData - This union provides the actual data for ATSUI to use when
redrawing the background. See the definition of ATSUBackgroundData
for more information.
C type : ATSUBackgroundData
Method Detail

newArray

public static ATSUUnhighlightData[] newArray(int arrayLength)


Copyright © 2009. All Rights Reserved.