org.rococoa.cocoa.quicktime
Class QTCustomControlHandleEventRecord
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure
org.rococoa.cocoa.quicktime.QTCustomControlHandleEventRecord
- Direct Known Subclasses:
- QTCustomControlHandleEventRecord.ByReference, QTCustomControlHandleEventRecord.ByValue
public class QTCustomControlHandleEventRecord
- extends com.ochafik.lang.jnaerator.runtime.Structure
pdActionCustomHandleEvent is called to allow your custom control to process events.
Typical controls handle the following events:
- activate - to draw your control in normal/gray mode
- update - to draw your control
- mouseDown - to handle clicks
- keyDown - to handle typing when you have focus
- idle - to perform idle drawing (if applicable)
If your control handles the entire event, set didProcess to true. If
you handled the event, but other controls still need the event, set didProcess to false.
If your control supports the concept of focus for the purposes of typing (such as by having
a type-in box for the parameter) then you set the tookFocus Boolean as part of your processing
of the event. It is assumed that your control will draw the appropriate focus UI as a result, and
the calling application will disable any focus drawing within the remainder of the UI.
By default, custom controls are not given idle time. If you need idle time, set needIdle to true
in response to the even that causes you to need idle (typically the taking of focus, or the first draw).
Your control will continue to be given idle events until you set needIdle to false in response to
a nullEvent.
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.
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 |
storage
public Pointer storage
pEvent
public QuickTimeLibrary.EventRecord pEvent
didProcess
public boolean didProcess
tookFocus
public boolean tookFocus
needIdle
public boolean needIdle
didEdit
public boolean didEdit
QTCustomControlHandleEventRecord
public QTCustomControlHandleEventRecord()
QTCustomControlHandleEventRecord
public QTCustomControlHandleEventRecord(Pointer storage,
QuickTimeLibrary.EventRecord pEvent,
boolean didProcess,
boolean tookFocus,
boolean needIdle,
boolean didEdit)
- Parameters:
storage
- storage for the control
pEvent
- event to process
didProcess
- did we process entire event?
tookFocus
- did we take focus as a result of this event (typically mouseDowns)
needIdle
- does this control need idle events?
didEdit
- did we edit the samples?
byReference
public QTCustomControlHandleEventRecord.ByReference byReference()
byValue
public QTCustomControlHandleEventRecord.ByValue byValue()
clone
public QTCustomControlHandleEventRecord clone()
- Overrides:
clone
in class Object