4
JavaOutputDir gensrc/java
5
NativeOutputDir gensrc/native
7
# Get returned array's capacity from XGetVisualInfo to be correct
8
TemporaryCVariableDeclaration XGetVisualInfo int count;
9
TemporaryCVariableAssignment XGetVisualInfo count = _ptr3[0];
10
ReturnValueCapacity XGetVisualInfo count * sizeof(XVisualInfo)
12
# Helper routine to make the ReturnedArrayLength expression below work correctly
13
CustomJavaCode TestFunction private static int getFirstElement(IntBuffer buf) { return buf.get(buf.position()); }
14
CustomJavaCode TestFunction private static int getFirstElement(int[] arr, int offset) { return arr[offset]; }
15
ReturnedArrayLength XGetVisualInfo getFirstElement({3})
17
# We don't need the Display and Visual data structures to be
21
# Ignore the empty Display and Visual data structures (though made
22
# opaque, the references from XVisualInfo and elsewhere are still