java.lang.Object
io.qt.QtObject
io.qt.core.QSize
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines the size of a two-dimensional object using integer point precision
Java wrapper for Qt class QSize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal QSize
final QSize
clone()
Creates and returns a copy of this object.final QSize
div
(double c) final QSize
divide
(double c) final boolean
boolean
final QSize
expandedTo
(QSize arg__1) final QSize
int
hashCode()
Returns the objects's hash code computed byqHash(QSize)
.final int
height()
final boolean
isEmpty()
final boolean
isNull()
final boolean
isValid()
final QSize
final QSize
multiply
(double c) final QSize
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QSize&) final void
scale
(int w, int h, Qt.AspectRatioMode mode) final void
scale
(QSize s, Qt.AspectRatioMode mode) final QSize
scaled
(int w, int h, Qt.AspectRatioMode mode) final QSize
scaled
(QSize s, Qt.AspectRatioMode mode) final void
setHeight
(int h) final void
setWidth
(int w) final QSize
final QSize
final QSize
times
(double c) Seeoperator*(QSize,
qreal) final QSizeF
toSizeF()
toString()
Seeoperator<<(QDebug,
QSize) final void
final QSize
final int
width()
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QSize) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QSize
public QSize()See
QSize::
QSize() -
QSize
See
QSize::
QSize(QSize) - Parameters:
other
-
-
QSize
public QSize(int w, int h) - Parameters:
w
-h
-
-
-
Method Details
-
boundedTo
- Parameters:
arg__1
-- Returns:
-
expandedTo
- Parameters:
arg__1
-- Returns:
-
grownBy
- Parameters:
m
-- Returns:
-
height
- Returns:
-
isEmpty
- Returns:
-
isNull
- Returns:
-
isValid
- Returns:
-
times
See
operator*(QSize,
qreal) - Parameters:
c
-- Returns:
-
multiply
- Parameters:
c
-- Returns:
-
plus
- Parameters:
s2
-- Returns:
-
add
- Parameters:
arg__1
-- Returns:
-
minus
- Parameters:
s2
-- Returns:
-
subtract
- Parameters:
arg__1
-- Returns:
-
div
- Parameters:
c
-- Returns:
-
divide
- Parameters:
c
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QSize) - Parameters:
arg__1
-
-
equals
- Parameters:
s2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QSize&) - Parameters:
arg__1
-
-
scale
- Parameters:
s
-mode
-
-
scale
- Parameters:
w
-h
-mode
-
-
scaled
- Parameters:
s
-mode
-- Returns:
-
scaled
- Parameters:
w
-h
-mode
-- Returns:
-
setHeight
- Parameters:
h
-
-
setWidth
- Parameters:
w
-
-
shrunkBy
- Parameters:
m
-- Returns:
-
toSizeF
- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
transpose
-
transposed
- Returns:
-
width
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QSize)
. -
toString
See
operator<<(QDebug,
QSize) -
clone
Creates and returns a copy of this object.
See
QSize::
QSize(QSize)
-