- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Contains color groups for each widget state
Java wrapper for Qt class QPalette
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQPalette::ColorGroup
static enum
Java wrapper for Qt enumQPalette::ColorRole
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQPalette()
QPalette
(Qt.GlobalColor button) QPalette
(QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush base, QBrush window) QPalette
(QColor windowText, QColor window, QColor light, QColor dark, QColor mid, QColor text, QColor base) SeeQPalette::
QPalette(QColor, QColor, QColor, QColor, QColor, QColor, QColor) -
Method Summary
Modifier and TypeMethodDescriptionfinal QBrush
final void
final QBrush
base()
final QBrush
final QBrush
final QBrush
final QBrush
button()
final QBrush
final long
cacheKey()
clone()
Creates and returns a copy of this object.final QColor
final QColor
final QPalette.ColorGroup
final QBrush
dark()
final boolean
boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QPalette)
.final QBrush
final QBrush
final boolean
final boolean
final boolean
isEqual
(QPalette.ColorGroup cr1, QPalette.ColorGroup cr2) final QBrush
light()
final QBrush
link()
final QBrush
final QBrush
mid()
final QBrush
midlight()
final QBrush
void
readFrom
(QDataStream ds) final QPalette
final long
SeeQPalette::
resolveMask()const final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, Qt.BrushStyle brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, Qt.GlobalColor brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QBrush brush) final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QColor brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QGradient brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QImage brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QPixmap brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorRole cr, Qt.BrushStyle brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorRole cr, Qt.GlobalColor brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorRole cr, QBrush brush) final void
setBrush
(QPalette.ColorRole cr, QColor brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorRole cr, QGradient brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorRole cr, QImage brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setBrush
(QPalette.ColorRole cr, QPixmap brush) Overloaded function forsetBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
.final void
setColor
(QPalette.ColorGroup cg, QPalette.ColorRole cr, Qt.GlobalColor color) Overloaded function forsetColor(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.final void
setColor
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QColor color) final void
setColor
(QPalette.ColorGroup cg, QPalette.ColorRole cr, QRgba64 color) Overloaded function forsetColor(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.final void
setColor
(QPalette.ColorGroup cg, QPalette.ColorRole cr, String color) Overloaded function forsetColor(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.final void
setColor
(QPalette.ColorRole cr, Qt.GlobalColor color) Overloaded function forsetColor(io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.final void
setColor
(QPalette.ColorRole cr, QColor color) final void
setColor
(QPalette.ColorRole cr, QRgba64 color) Overloaded function forsetColor(io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.final void
setColor
(QPalette.ColorRole cr, String color) Overloaded function forsetColor(io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.final void
setColorGroup
(QPalette.ColorGroup cr, QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush base, QBrush window) final void
final void
setResolveMask
(long mask) SeeQPalette::
setResolveMask(QPalette::ResolveMask) final QBrush
shadow()
final void
final QBrush
text()
final QBrush
final QBrush
toString()
Seeoperator<<(QDebug,
QPalette) final QBrush
window()
final QBrush
void
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QPalette
public QPalette() -
QPalette
public QPalette(QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush base, QBrush window) - Parameters:
windowText
-button
-light
-dark
-mid
-text
-bright_text
-base
-window
-
-
QPalette
- Parameters:
button
-
-
QPalette
- Parameters:
button
-window
-
-
QPalette
public QPalette(QColor windowText, QColor window, QColor light, QColor dark, QColor mid, QColor text, QColor base) See
QPalette::
QPalette(QColor, QColor, QColor, QColor, QColor, QColor, QColor) - Parameters:
windowText
-window
-light
-dark
-mid
-text
-base
-
-
QPalette
- Parameters:
palette
-
-
QPalette
- Parameters:
button
-
-
-
Method Details
-
alternateBase
- Returns:
-
base
- Returns:
-
brightText
- Returns:
-
brush
- Parameters:
cg
-cr
-- Returns:
-
brush
- Parameters:
cr
-- Returns:
-
button
- Returns:
-
buttonText
- Returns:
-
cacheKey
- Returns:
-
color
- Parameters:
cg
-cr
-- Returns:
-
color
- Parameters:
cr
-- Returns:
-
currentColorGroup
- Returns:
-
dark
- Returns:
-
highlight
- Returns:
-
highlightedText
- Returns:
-
isBrushSet
- Parameters:
cg
-cr
-- Returns:
-
isCopyOf
- Parameters:
p
-- Returns:
-
isEqual
- Parameters:
cr1
-cr2
-- Returns:
-
light
- Returns:
-
link
- Returns:
-
linkVisited
- Returns:
-
mid
- Returns:
-
midlight
- Returns:
-
writeTo
- Parameters:
s
-
-
assign
- Parameters:
palette
-
-
equals
- Parameters:
p
-- Returns:
-
readFrom
- Parameters:
ds
-
-
placeholderText
- Returns:
-
resolve
- Parameters:
other
-- Returns:
-
resolveMask
See
QPalette::
resolveMask()const - Returns:
-
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, QBrush brush) - Parameters:
cg
-cr
-brush
-
-
setBrush
- Parameters:
cr
-brush
-
-
setColor
@QtUninvokable public final void setColor(QPalette.ColorGroup cg, QPalette.ColorRole cr, QColor color) - Parameters:
cg
-cr
-color
-
-
setColor
- Parameters:
cr
-color
-
-
setColorGroup
@QtUninvokable public final void setColorGroup(QPalette.ColorGroup cr, QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush base, QBrush window) - Parameters:
cr
-windowText
-button
-light
-dark
-mid
-text
-bright_text
-base
-window
-
-
setCurrentColorGroup
- Parameters:
cg
-
-
setResolveMask
See
QPalette::
setResolveMask(QPalette::ResolveMask) - Parameters:
mask
-
-
shadow
- Returns:
-
swap
- Parameters:
other
-
-
text
- Returns:
-
toolTipBase
- Returns:
-
toolTipText
- Returns:
-
window
- Returns:
-
windowText
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QPalette)
. -
toString
See
operator<<(QDebug,
QPalette) -
clone
Creates and returns a copy of this object.
-
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, Qt.BrushStyle brush) Overloaded function for
setBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, QColor brush) Overloaded function for
setBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, Qt.GlobalColor brush) Overloaded function for
setBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, QPixmap brush) Overloaded function for
setBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, QImage brush) Overloaded function for
setBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
@QtUninvokable public final void setBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, QGradient brush) Overloaded function for
setBrush(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
Overloaded function for
setBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
Overloaded function for
setBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
Overloaded function for
setBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
Overloaded function for
setBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
Overloaded function for
setBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setBrush
Overloaded function for
setBrush(io.qt.gui.QPalette.ColorRole, io.qt.gui.QBrush)
. -
setColor
@QtUninvokable public final void setColor(QPalette.ColorGroup cg, QPalette.ColorRole cr, Qt.GlobalColor color) Overloaded function for
setColor(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
. -
setColor
@QtUninvokable public final void setColor(QPalette.ColorGroup cg, QPalette.ColorRole cr, QRgba64 color) Overloaded function for
setColor(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
. -
setColor
@QtUninvokable public final void setColor(QPalette.ColorGroup cg, QPalette.ColorRole cr, String color) Overloaded function for
setColor(io.qt.gui.QPalette.ColorGroup, io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
. -
setColor
Overloaded function for
setColor(io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
. -
setColor
Overloaded function for
setColor(io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
. -
setColor
Overloaded function for
setColor(io.qt.gui.QPalette.ColorRole, io.qt.gui.QColor)
.
-