org.rococoa.cocoa.quicktime
Class QTCustomControlPositionControlRecord

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

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

pdActionCustomPositionControl is called by the application to position the control within a window or dialog.
The control should determine if it will fit in the alloted area and position itself there. It should also
return the space taken up by the control. Note you are free to implement controls which are variable in size depending upon
which parameter you are editing. You need not scale your control to the requested size. If the area presented to your
control is too small, set didFit to false. You should still return in used the size you would have liked to use for
the control. The application will then try again with a new size. Note that all
controls must be able to fit within a minimum of 300 by 250 pixels.
Custom controls that draw text should make note of the text font, size, and style at this time in order
to properly display within application windows.
Note that the default state for the control is hidden. You will receive a pdActionCustomShowHideControl
in order to enable your control. You should not draw your control in response to pdActionCustomPositionControl.
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 QTCustomControlPositionControlRecord.ByReference
           
static class QTCustomControlPositionControlRecord.ByValue
           
 
Field Summary
 boolean didFit
           
 Rect location
           
 boolean[] pad
           
 Pointer storage
           
 Rect used
           
 QuickTimeLibrary.OpaqueWindowPtr window
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
QTCustomControlPositionControlRecord()
           
QTCustomControlPositionControlRecord(Pointer storage, QuickTimeLibrary.OpaqueWindowPtr window, Rect location, Rect used, boolean didFit, boolean[] pad)
           
 
Method Summary
 QTCustomControlPositionControlRecord.ByReference byReference()
           
 QTCustomControlPositionControlRecord.ByValue byValue()
           
 QTCustomControlPositionControlRecord 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

storage

public Pointer storage

window

public QuickTimeLibrary.OpaqueWindowPtr window

location

public Rect location

used

public Rect used

didFit

public boolean didFit

pad

public boolean[] pad
Constructor Detail

QTCustomControlPositionControlRecord

public QTCustomControlPositionControlRecord()

QTCustomControlPositionControlRecord

public QTCustomControlPositionControlRecord(Pointer storage,
                                            QuickTimeLibrary.OpaqueWindowPtr window,
                                            Rect location,
                                            Rect used,
                                            boolean didFit,
                                            boolean[] pad)
Parameters:
storage - storage for the control
window - window to be used by the control
location - location within the window the control may use
used - returned by the control to indicate size it actually used
didFit - did the control fit in the specified area?
Method Detail

byReference

public QTCustomControlPositionControlRecord.ByReference byReference()

byValue

public QTCustomControlPositionControlRecord.ByValue byValue()

clone

public QTCustomControlPositionControlRecord clone()
Overrides:
clone in class Object