com.trolltech.qt.core
Class Qt.MaskMode

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.core.Qt.MaskMode
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing interface:
Qt

public static final class Qt.MaskMode
extends java.lang.Enum
implements QtEnumerator

This enum specifies the behavior of the QPixmap::createMaskFromColor() and QImage::createMaskFromColor() functions.

See Also:
Serialized Form

Field Summary
static Qt.MaskMode MaskInColor
          Creates a mask where all pixels matching the given color are opaque.
static Qt.MaskMode MaskOutColor
          Creates a mask where all pixels matching the given color are transparent.
 
Method Summary
static Qt.MaskMode resolve(int value)
          Returns the Qt$MaskMode constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static Qt.MaskMode valueOf(java.lang.String name)
           
static Qt.MaskMode[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MaskInColor

public static final Qt.MaskMode MaskInColor
Creates a mask where all pixels matching the given color are opaque.


MaskOutColor

public static final Qt.MaskMode MaskOutColor
Creates a mask where all pixels matching the given color are transparent.

Method Detail

values

public static Qt.MaskMode[] values()

valueOf

public static Qt.MaskMode valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static Qt.MaskMode resolve(int value)
Returns the Qt$MaskMode constant with the specified int.