JNative project : see http://jnative.sf.net


org.xvolks.jnative.misc
Class MSG

java.lang.Object
  extended by org.xvolks.jnative.misc.MSG
All Implemented Interfaces:
BasicData<Pointer>

public class MSG
extends java.lang.Object
implements BasicData<Pointer>

$Id: MSG.java,v 1.2 2006/01/12 21:35:45 mdenty Exp $ TODO : Create each value : createPointer should copy values in memory and back TODO : this should be a BasicData

 The C structure
 typedef struct {
   HWND hwnd;
    UINT message;
   WPARAM wParam;
   LPARAM lParam;
   DWORD time;
   POINT pt;
 } MSG, *PMSG;
This software is released under the GPL.


Nested Class Summary
 class MSG.WindowsConstants
           
 
Constructor Summary
MSG()
           
 
Method Summary
 Pointer createPointer()
          Method createPointer
 Pointer getPointer()
          Method getPointer
 int getSizeOf()
          Method getSizeOf
 Pointer getValue()
          Method getValue
 Pointer getValueFromPointer()
          Method getValueFromPointer
static int sizeOf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSG

public MSG()
    throws NativeException
Throws:
NativeException
Method Detail

getPointer

public Pointer getPointer()
Method getPointer

Specified by:
getPointer in interface BasicData<Pointer>
Returns:
a Pointer

createPointer

public Pointer createPointer()
                      throws NativeException
Method createPointer

Specified by:
createPointer in interface BasicData<Pointer>
Returns:
a MemoryBlock
Throws:
NativeException

getValueFromPointer

public Pointer getValueFromPointer()
                            throws NativeException
Method getValueFromPointer

Specified by:
getValueFromPointer in interface BasicData<Pointer>
Returns:
a T
Throws:
NativeException

getValue

public Pointer getValue()
Method getValue

Specified by:
getValue in interface BasicData<Pointer>
Returns:
a T

getSizeOf

public int getSizeOf()
Method getSizeOf

Specified by:
getSizeOf in interface BasicData<Pointer>
Returns:
the size of this data

sizeOf

public static int sizeOf()

JNative project : see http://jnative.sf.net