- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Scalable icons in different modes and states
Java wrapper for Qt class QIcon
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQIcon::Mode
static enum
Java wrapper for Qt enumQIcon::State
static enum
Java wrapper for Qt enumQIcon::ThemeIcon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal QSize
actualSize
(QSize size) Overloaded function foractualSize(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QSize
actualSize
(QSize size, QIcon.Mode mode) Overloaded function foractualSize(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QSize
actualSize
(QSize size, QIcon.Mode mode, QIcon.State state) final QSize
actualSize
(QWindow window, QSize size) Overloaded function foractualSize(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QSize
actualSize
(QWindow window, QSize size, QIcon.Mode mode) Overloaded function foractualSize(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QSize
actualSize
(QWindow window, QSize size, QIcon.Mode mode, QIcon.State state) final void
Overloaded function foraddFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final void
Overloaded function foraddFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final void
addFile
(String fileName, QSize size, QIcon.Mode mode) Overloaded function foraddFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final void
addFile
(String fileName, QSize size, QIcon.Mode mode, QIcon.State state) final void
Overloaded function foraddPixmap(io.qt.gui.QPixmap, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final void
addPixmap
(QPixmap pixmap, QIcon.Mode mode) Overloaded function foraddPixmap(io.qt.gui.QPixmap, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final void
addPixmap
(QPixmap pixmap, QIcon.Mode mode, QIcon.State state) final void
final void
Overloaded function forassign(io.qt.gui.QIcon)
.Overloaded function foravailableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
availableSizes
(QIcon.Mode mode) Overloaded function foravailableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.availableSizes
(QIcon.Mode mode, QIcon.State state) final long
cacheKey()
clone()
Creates and returns a copy of this object.final void
detach()
SeeQIcon::
detach() static QStringList
static String
static QIcon
fromTheme
(QIcon.ThemeIcon icon) static QIcon
fromTheme
(QIcon.ThemeIcon icon, QIcon fallback) static QIcon
fromTheme
(QIcon.ThemeIcon icon, QPixmap fallback) Overloaded function forfromTheme(io.qt.gui.QIcon.ThemeIcon, io.qt.gui.QIcon)
.static QIcon
static QIcon
static QIcon
Overloaded function forfromTheme(java.lang.String, io.qt.gui.QIcon)
.static boolean
hasThemeIcon
(QIcon.ThemeIcon icon) static boolean
hasThemeIcon
(String name) final boolean
SeeQIcon::
isDetached()const final boolean
isMask()
final boolean
isNull()
final String
name()
final void
final void
paint
(QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment) final void
paint
(QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment, QIcon.Mode mode) Overloaded function forpaint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final void
paint
(QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment, QIcon.Mode mode, QIcon.State state) final void
final void
paint
(QPainter painter, QRect rect, Qt.Alignment alignment) final void
paint
(QPainter painter, QRect rect, Qt.Alignment alignment, QIcon.Mode mode) Overloaded function forpaint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final void
paint
(QPainter painter, QRect rect, Qt.Alignment alignment, QIcon.Mode mode, QIcon.State state) final QPixmap
pixmap
(int extent) Overloaded function forpixmap(int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QPixmap
pixmap
(int w, int h) Overloaded function forpixmap(int, int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QPixmap
pixmap
(int w, int h, QIcon.Mode mode) Overloaded function forpixmap(int, int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QPixmap
pixmap
(int w, int h, QIcon.Mode mode, QIcon.State state) final QPixmap
pixmap
(int extent, QIcon.Mode mode) Overloaded function forpixmap(int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QPixmap
pixmap
(int extent, QIcon.Mode mode, QIcon.State state) final QPixmap
Overloaded function forpixmap(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QPixmap
Overloaded function forpixmap(io.qt.core.QSize, double, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QPixmap
pixmap
(QSize size, double devicePixelRatio, QIcon.Mode mode) Overloaded function forpixmap(io.qt.core.QSize, double, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QPixmap
pixmap
(QSize size, double devicePixelRatio, QIcon.Mode mode, QIcon.State state) final QPixmap
pixmap
(QSize size, QIcon.Mode mode) Overloaded function forpixmap(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QPixmap
pixmap
(QSize size, QIcon.Mode mode, QIcon.State state) final QPixmap
Overloaded function forpixmap(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
final QPixmap
pixmap
(QWindow window, QSize size, QIcon.Mode mode) Overloaded function forpixmap(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
.final QPixmap
pixmap
(QWindow window, QSize size, QIcon.Mode mode, QIcon.State state) SeeQIcon::
pixmap(QWindow*, QSize, QIcon::Mode, QIcon::State)const void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QIcon&) static void
setFallbackSearchPaths
(Collection<String> paths) static void
setFallbackThemeName
(String name) final void
setIsMask
(boolean isMask) static void
setThemeName
(String path) static void
setThemeSearchPaths
(Collection<String> searchpath) final void
static String
static QStringList
toString()
Seeoperator<<(QDebug,
QIcon) void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QIcon) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QIcon
public QIcon()See
QIcon::
QIcon() -
QIcon
- Parameters:
other
-
-
QIcon
- Parameters:
engine
-
-
QIcon
- Parameters:
pixmap
-
-
QIcon
- Parameters:
fileName
-
-
-
Method Details
-
actualSize
- Parameters:
size
-mode
-state
-- Returns:
-
actualSize
@QtUninvokable public final QSize actualSize(QWindow window, QSize size, QIcon.Mode mode, QIcon.State state) - Parameters:
window
-size
-mode
-state
-- Returns:
-
addFile
@QtUninvokable public final void addFile(String fileName, QSize size, QIcon.Mode mode, QIcon.State state) - Parameters:
fileName
-size
-mode
-state
-
-
addPixmap
- Parameters:
pixmap
-mode
-state
-
-
availableSizes
- Parameters:
mode
-state
-- Returns:
-
cacheKey
- Returns:
-
detach
See
QIcon::
detach() -
isDetached
See
QIcon::
isDetached()const - Returns:
-
isMask
- Returns:
-
isNull
- Returns:
-
name
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QIcon) - Parameters:
arg__1
-
-
assign
- Parameters:
other
-
-
readFrom
See
operator>>(QDataStream&,
QIcon&) - Parameters:
arg__1
-
-
paint
@QtUninvokable public final void paint(QPainter painter, QRect rect, Qt.Alignment alignment, QIcon.Mode mode, QIcon.State state) - Parameters:
painter
-rect
-alignment
-mode
-state
-
-
paint
@QtUninvokable public final void paint(QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment, QIcon.Mode mode, QIcon.State state) - Parameters:
painter
-x
-y
-w
-h
-alignment
-mode
-state
-
-
pixmap
- Parameters:
size
-mode
-state
-- Returns:
-
pixmap
@QtUninvokable public final QPixmap pixmap(QSize size, double devicePixelRatio, QIcon.Mode mode, QIcon.State state) - Parameters:
size
-devicePixelRatio
-mode
-state
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
pixmap
@QtUninvokable public final QPixmap pixmap(QWindow window, QSize size, QIcon.Mode mode, QIcon.State state) See
QIcon::
pixmap(QWindow*, QSize, QIcon::Mode, QIcon::State)const - Parameters:
window
-size
-mode
-state
-- Returns:
-
pixmap
- Parameters:
extent
-mode
-state
-- Returns:
-
pixmap
- Parameters:
w
-h
-mode
-state
-- Returns:
-
setIsMask
- Parameters:
isMask
-
-
swap
- Parameters:
other
-
-
fallbackSearchPaths
- Returns:
-
fallbackThemeName
- Returns:
-
fromTheme
- Parameters:
icon
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
fromTheme
- Parameters:
icon
-fallback
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
fromTheme
- Parameters:
name
-- Returns:
-
fromTheme
- Parameters:
name
-fallback
-- Returns:
-
hasThemeIcon
- Parameters:
icon
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
hasThemeIcon
- Parameters:
name
-- Returns:
-
setFallbackSearchPaths
- Parameters:
paths
-
-
setFallbackThemeName
- Parameters:
name
-
-
setThemeName
- Parameters:
path
-
-
setThemeSearchPaths
- Parameters:
searchpath
-
-
themeName
- Returns:
-
themeSearchPaths
- Returns:
-
toString
See
operator<<(QDebug,
QIcon) -
clone
Creates and returns a copy of this object.
-
actualSize
Overloaded function for
actualSize(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
actualSize
Overloaded function for
actualSize(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
actualSize
Overloaded function for
actualSize(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
actualSize
Overloaded function for
actualSize(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
addFile
Overloaded function for
addFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
addFile
Overloaded function for
addFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
addFile
Overloaded function for
addFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
size = new io.qt.core.QSize()
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
addPixmap
Overloaded function for
addPixmap(io.qt.gui.QPixmap, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
addPixmap
Overloaded function for
addPixmap(io.qt.gui.QPixmap, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
availableSizes
Overloaded function for
availableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
availableSizes
Overloaded function for
availableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
assign
Overloaded function for
assign(io.qt.gui.QIcon)
. -
paint
@QtUninvokable public final void paint(QPainter painter, QRect rect, Qt.Alignment alignment, QIcon.Mode mode) Overloaded function for
paint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
paint
Overloaded function for
paint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
paint
Overloaded function for
paint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
alignment = new io.qt.core.Qt.Alignment(132)
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
paint
@QtUninvokable public final void paint(QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment, QIcon.Mode mode) Overloaded function for
paint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
paint
@QtUninvokable public final void paint(QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment) Overloaded function for
paint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
paint
Overloaded function for
paint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
alignment = new io.qt.core.Qt.Alignment(132)
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
pixmap
Overloaded function for
pixmap(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
pixmap
Overloaded function for
pixmap(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
pixmap
Overloaded function for
pixmap(io.qt.core.QSize, double, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
pixmap
Overloaded function for
pixmap(io.qt.core.QSize, double, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
pixmap
Overloaded function for
pixmap(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
pixmap
Overloaded function for
pixmap(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
pixmap
Overloaded function for
pixmap(int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
pixmap
Overloaded function for
pixmap(int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
pixmap
Overloaded function for
pixmap(int, int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
withstate = io.qt.gui.QIcon.State.Off
. -
pixmap
Overloaded function for
pixmap(int, int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)
with:
mode = io.qt.gui.QIcon.Mode.Normal
state = io.qt.gui.QIcon.State.Off
-
fromTheme
Overloaded function for
fromTheme(io.qt.gui.QIcon.ThemeIcon, io.qt.gui.QIcon)
. -
fromTheme
Overloaded function for
fromTheme(java.lang.String, io.qt.gui.QIcon)
.
-