com.jniwrapper.win32.gdi
Class IconInfo

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.gdi.IconInfo
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class IconInfo
extends com.jniwrapper.Structure

This class represents ICONINFO structure.


Field Summary
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
IconInfo()
          Creates instance of the IconInfo.
IconInfo(Bitmap maskBitmap, Bitmap colorBitmap)
          Creates instance of the IconInfo.
IconInfo(IconInfo that)
          Creates instance of the IconInfo and initializes it by the specified one.
 
Method Summary
 java.lang.Object clone()
          Creates copy of this instance
 Bitmap getColorBitmap()
          Returns handle to the icon color bitmap.
 Bitmap getMaskBitmap()
          Returns the icon bitmask bitmap.
 com.jniwrapper.UInt32 getXHotSpot()
          Returns the x-coordinate of the hot spot of the cursor.
 com.jniwrapper.UInt32 getYHotSpot()
          Returns the y-coordinate of the hot spot of the cursor.
 boolean isCursor()
          Specifies whether this structure defines a cursor.
 boolean isIcon()
          Specifies whether this structure defines an icon.
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconInfo

public IconInfo()
Creates instance of the IconInfo.


IconInfo

public IconInfo(Bitmap maskBitmap,
                Bitmap colorBitmap)
Creates instance of the IconInfo.

Parameters:
maskBitmap - The icon bitmask bitmap. If this structure defines a black and white icon, this bitmask is formatted so that the upper half is the icon AND bitmask and the lower half is the icon XOR bitmask. Under this condition, the height should be an even multiple of two. If this structure defines a color icon, this mask only defines the AND bitmask of the icon.
colorBitmap - The icon color bitmap.

IconInfo

public IconInfo(IconInfo that)
Creates instance of the IconInfo and initializes it by the specified one.

Parameters:
that - Instance of the IconInfo.
Method Detail

getMaskBitmap

public Bitmap getMaskBitmap()
Returns the icon bitmask bitmap.

Returns:
The icon bitmask bitmap

getColorBitmap

public Bitmap getColorBitmap()
Returns handle to the icon color bitmap.

Returns:
Handle to the icon color bitmap.

isIcon

public boolean isIcon()
Specifies whether this structure defines an icon.

Returns:
true if this structure defines an icon. Otherwise false.

isCursor

public boolean isCursor()
Specifies whether this structure defines a cursor.

Returns:
true if this structure defines an cursor. Otherwise false.

getXHotSpot

public com.jniwrapper.UInt32 getXHotSpot()
Returns the x-coordinate of the hot spot of the cursor. If this structure defines an icon, the hot spot is always in the center of the icon, and this member is ignored.

Returns:
The x-coordinate of the hot spot of the cursor.

getYHotSpot

public com.jniwrapper.UInt32 getYHotSpot()
Returns the y-coordinate of the hot spot of the cursor. If this structure defines an icon, the hot spot is always in the center of the icon, and this member is ignored.

Returns:
The y-coordinate of the hot spot of the cursor.

clone

public java.lang.Object clone()
Creates copy of this instance

Returns:
Copy of this instance