java.lang.Object
io.qt.QtObject
io.qt.gui.QIconEngine
- All Implemented Interfaces:
QtObjectInterface
Abstract base class for QIcon renderers
Java wrapper for Qt class QIconEngine
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Java wrapper for Qt classQIconEngine::AvailableSizesArgument
static enum
Java wrapper for Qt enumQIconEngine::IconEngineHook
static class
Java wrapper for Qt classQIconEngine::ScaledPixmapArgument
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactualSize
(QSize size, QIcon.Mode mode, QIcon.State state) void
addFile
(String fileName, QSize size, QIcon.Mode mode, QIcon.State state) void
addPixmap
(QPixmap pixmap, QIcon.Mode mode, QIcon.State state) 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) abstract QIconEngine
clone()
iconName()
final boolean
isNull()
key()
abstract void
paint
(QPainter painter, QRect rect, QIcon.Mode mode, QIcon.State state) pixmap
(QSize size, QIcon.Mode mode, QIcon.State state) boolean
read
(QDataStream in) final QPixmap
scaledPixmap
(QSize size, QIcon.Mode mode, QIcon.State state, double scale) void
virtual_hook
(QIconEngine.IconEngineHook id, Object data) boolean
write
(QDataStream out) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QIconEngine
public QIconEngine()- Since:
- This function was introduced in Qt 5.6.
-
QIconEngine
- Parameters:
other
-- Since:
- This function was introduced in Qt 5.6.
-
-
Method Details
-
isNull
- Returns:
- Since:
- This function was introduced in Qt 5.7.
-
scaledPixmap
@QtUninvokable public final QPixmap scaledPixmap(QSize size, QIcon.Mode mode, QIcon.State state, double scale) - Parameters:
size
-mode
-state
-scale
-- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
actualSize
- Parameters:
size
-mode
-state
-- Returns:
-
addFile
- Parameters:
fileName
-size
-mode
-state
-
-
addPixmap
- Parameters:
pixmap
-mode
-state
-
-
availableSizes
- Parameters:
mode
-state
-- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
clone
-
iconName
- Returns:
- Since:
- This function was introduced in Qt 4.7.
-
key
- Returns:
-
paint
@QtUninvokable public abstract void paint(QPainter painter, QRect rect, QIcon.Mode mode, QIcon.State state) - Parameters:
painter
-rect
-mode
-state
-
-
pixmap
- Parameters:
size
-mode
-state
-- Returns:
-
read
- Parameters:
in
-- Returns:
-
virtual_hook
- Parameters:
id
-data
-- Since:
- This function was introduced in Qt 4.5.
-
write
- Parameters:
out
-- Returns:
-
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
-