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