- 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
-
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
static QIcon
static QIcon
Overloaded function forfromTheme(java.lang.String, io.qt.gui.QIcon)
.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
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) 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:
- Since:
- This function was introduced in Qt 5.1.
-
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:
- Since:
- This function was introduced in Qt 4.5.
-
cacheKey
- Returns:
- Since:
- This function was introduced in Qt 4.3.
-
detach
See
QIcon::
detach() -
isDetached
See
QIcon::
isDetached()const - Returns:
-
isMask
- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
isNull
- Returns:
-
name
- Returns:
- Since:
- This function was introduced in Qt 4.7.
-
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(QWindow window, QSize size, QIcon.Mode mode, QIcon.State state) - Parameters:
window
-size
-mode
-state
-- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
pixmap
- Parameters:
extent
-mode
-state
-- Returns:
-
pixmap
- Parameters:
w
-h
-mode
-state
-- Returns:
-
setIsMask
- Parameters:
isMask
-- Since:
- This function was introduced in Qt 5.6.
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 4.8.
-
fallbackSearchPaths
- Returns:
- Since:
- This function was introduced in Qt 5.11.
-
fallbackThemeName
- Returns:
- Since:
- This function was introduced in Qt 5.12.
-
fromTheme
- Parameters:
name
-- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
fromTheme
- Parameters:
name
-fallback
-- Returns:
-
hasThemeIcon
- Parameters:
name
-- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
setFallbackSearchPaths
- Parameters:
paths
-- Since:
- This function was introduced in Qt 5.11.
-
setFallbackThemeName
- Parameters:
name
-- Since:
- This function was introduced in Qt 5.12.
-
setThemeName
- Parameters:
path
-- Since:
- This function was introduced in Qt 4.6.
-
setThemeSearchPaths
- Parameters:
searchpath
-- Since:
- This function was introduced in Qt 4.6.
-
themeName
- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
themeSearchPaths
- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
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.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(java.lang.String, io.qt.gui.QIcon)
.
-