org.rococoa.cocoa.qd
Interface QDLibrary.RedrawBackgroundProcPtr

All Superinterfaces:
Callback
Enclosing interface:
QDLibrary

public static interface QDLibrary.RedrawBackgroundProcPtr
extends Callback

RedrawBackgroundProcPtr

Discussion:
RedrawBackgroundProcPtr is a pointer to a client-supplied
callback function (e.g. MyRedrawBackgroundProc) for redrawing
complex backgrounds (and optionally the text as well) that can be
called by ATSUI for highlighting if the client has called
ATSUSetHighlightingMethod with kRedrawHighlighting for the
iMethod parameter. In order for ATSUI to call the client
function, the client must (1) pass a pointer to the client
function to NewRedrawBackgroundUPP() in order to obtain a
RedrawBackgroundUPP, and (2) pass the RedrawBackgroundUPP in the
unhighlightData.backgroundUPP field of the iUnhighlightData
parameter for the ATSUSetHighlightingMethod call. When finished,
the client should call DisposeRedrawBackgroundUPP with the
RedrawBackgroundUPP.

Parameters:

iLayout:
The layout to which the highlighting is being applied. The
client function can use this to redraw the text.

iTextOffset:
The offset of the text that is being highlighted; can be used
by the client function to redraaw the text.

iTextLength:
The length of the text that is being highlighted; can be used
by the client function to redraaw the text.

iUnhighlightArea:
An array of ATSTrapezoids that describes the highlight area.
The ATSTrapezoid array is ALWAYS in QD coordinates.

iTrapezoidCount:
The count of ATSTrapezoids in iUnhighlightArea.

Result:
A Boolean result indicating whether ATSUI should redraw the text.
If the client function redraws the text, it should return false,
otherwise it should return true to have ATSUI redraw any text
that needs to be redrawn.
native declaration : /System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/QD.framework/Headers/ATSUnicodeTypes.h


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jna.Callback
Callback.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME
 
Method Summary
 boolean invoke(QDLibrary.OpaqueATSUTextLayout iLayout, NativeLong iTextOffset, NativeLong iTextLength, Pointer iUnhighlightArea, NativeLong iTrapezoidCount)
           
 

Method Detail

invoke

boolean invoke(QDLibrary.OpaqueATSUTextLayout iLayout,
               NativeLong iTextOffset,
               NativeLong iTextLength,
               Pointer iUnhighlightArea,
               NativeLong iTrapezoidCount)


Copyright © 2009. All Rights Reserved.