org.rococoa.cocoa.coregraphics
Interface CoreGraphicsLibrary.CGScreenUpdateMoveCallback

All Superinterfaces:
Callback
Enclosing interface:
CoreGraphicsLibrary

public static interface CoreGraphicsLibrary.CGScreenUpdateMoveCallback
extends Callback

Move operation callback function pointer;
Declare your callback function in this form. When an area of the display is
moved, your callback function will be invoked with a count
of the number of rectangles in the moved area, and a list of the moved.
The rectangles are in global coordinates, and describe the area prior to the move
operation.
* dX and dY describe the direction of movement.
Positive values of dX indicate movement to the right.
Negative values of dX indicate movement to the left.
Positive values of dY indicate movement downward.
Negative values of dY indicate movement upward.
* Your function should not modify, deallocate or free memory pointed to by rectArray.
* This callback may be triggered by window movement or scrolling operations.
* Bear in mind that a single rectangle may occupy multiple displays,
either by overlapping the displays, or by residing on coincident displays
when mirroring is active. Use the CGGetDisplaysWithRect() function to determine
the displays a rectangle occupies.
* If no move callback function pointer is registered, then move operations are remapped to
refresh operations, and the CGScreenRefreshCallback function, if any, is called.


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
 void invoke(_CGScreenUpdateMoveDelta.ByValue delta, NativeLong count, CGRect rectArray, Pointer userParameter)
           
 

Method Detail

invoke

void invoke(_CGScreenUpdateMoveDelta.ByValue delta,
            NativeLong count,
            CGRect rectArray,
            Pointer userParameter)