- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QX11Info.PeekOptions>
- Enclosing class:
QX11Info
public static final class QX11Info.PeekOptions
extends QFlags<QX11Info.PeekOption>
implements Comparable<QX11Info.PeekOptions>
QFlags
type for enum QX11Info.PeekOption
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new PeekOptions.PeekOptions
(int value) Creates a new PeekOptions with givenvalue
.PeekOptions
(QX11Info.PeekOption ... args) Creates a new PeekOptions where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QX11Info.PeekOptions
clone()
Clones the flagsfinal QX11Info.PeekOptions
Combines this flags with enum entry.final int
compareTo
(QX11Info.PeekOptions other) final QX11Info.PeekOption []
flags()
Returns an array of flag objects represented by this PeekOptions.final QX11Info.PeekOptions
Sets the flage
final QX11Info.PeekOptions
setFlag
(QX11Info.PeekOption e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
PeekOptions
public PeekOptions()Creates a new PeekOptions. -
PeekOptions
Creates a new PeekOptions where the flags inargs
are set.- Parameters:
args
- enum entries
-
PeekOptions
public PeekOptions(int value) Creates a new PeekOptions with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QX11Info.PeekOption>
- Parameters:
e
- enum entry- Returns:
- new PeekOptions
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QX11Info.PeekOption>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QX11Info.PeekOption>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this PeekOptions.- Overrides:
flags
in classQFlags<QX11Info.PeekOption>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QX11Info.PeekOption>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QX11Info.PeekOptions>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-