org.rococoa.cocoa.qd
Class ATSUUnhighlightData

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.qd.ATSUUnhighlightData
Direct Known Subclasses:
ATSUUnhighlightData.ByReference, ATSUUnhighlightData.ByValue

public class ATSUUnhighlightData
extends com.ochafik.lang.jnaerator.runtime.Structure

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.
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, CALCULATE_SIZE
 
Constructor Summary
ATSUUnhighlightData()
           
ATSUUnhighlightData(int dataType, ATSUBackgroundData unhighlightData)
           
 
Method Summary
 ATSUUnhighlightData.ByReference byReference()
           
 ATSUUnhighlightData.ByValue byValue()
           
 ATSUUnhighlightData clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.


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.

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.
unhighlightData - This union provides the actual data for ATSUI to use when
redrawing the background. See the definition of ATSUBackgroundData
for more information.
Method Detail

byReference

public ATSUUnhighlightData.ByReference byReference()

byValue

public ATSUUnhighlightData.ByValue byValue()

clone

public ATSUUnhighlightData clone()
Overrides:
clone in class Object