java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.widgets.QSizePolicy
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QSizePolicy extends QtObject implements Cloneable
Layout attribute describing horizontal and vertical resizing policy
Java wrapper for Qt class QSizePolicy
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QSizePolicy.ControlType
Java wrapper for Qt enum QSizePolicy::ControlTypestatic class
QSizePolicy.ControlTypes
QFlags type for enumQSizePolicy.ControlType
static class
QSizePolicy.Policy
Java wrapper for Qt enum QSizePolicy::Policystatic class
QSizePolicy.PolicyFlag
Java wrapper for Qt enum QSizePolicy::PolicyFlag -
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QSizePolicy()
protected
QSizePolicy(QtObject.QPrivateConstructor p)
Constructor for internal use only.QSizePolicy(QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical)
Overloaded constructor forQSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)
withtype = io.qt.widgets.QSizePolicy.ControlType.DefaultType
.QSizePolicy(QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical, QSizePolicy.ControlType type)
-
Method Summary
Modifier and Type Method Description QSizePolicy
clone()
QSizePolicy.ControlType
controlType()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.Qt.Orientations
expandingDirections()
int
hashCode()
boolean
hasHeightForWidth()
boolean
hasWidthForHeight()
QSizePolicy.Policy
horizontalPolicy()
int
horizontalStretch()
void
readFrom(QDataStream arg__1)
boolean
retainSizeWhenHidden()
void
setControlType(QSizePolicy.ControlType type)
void
setHeightForWidth(boolean b)
void
setHorizontalPolicy(QSizePolicy.Policy d)
void
setHorizontalStretch(int stretchFactor)
void
setRetainSizeWhenHidden(boolean retainSize)
void
setVerticalPolicy(QSizePolicy.Policy d)
void
setVerticalStretch(int stretchFactor)
void
setWidthForHeight(boolean b)
String
toString()
void
transpose()
QSizePolicy
transposed()
QSizePolicy.Policy
verticalPolicy()
int
verticalStretch()
void
writeTo(QDataStream arg__1)
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QSizePolicy
public QSizePolicy() -
QSizePolicy
Overloaded constructor for
QSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)
withtype = io.qt.widgets.QSizePolicy.ControlType.DefaultType
. -
QSizePolicy
public QSizePolicy(QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical, QSizePolicy.ControlType type) -
QSizePolicy
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
controlType
-
expandingDirections
-
hasHeightForWidth
-
hasWidthForHeight
-
horizontalPolicy
-
horizontalStretch
-
writeTo
-
readFrom
-
retainSizeWhenHidden
-
setControlType
-
setHeightForWidth
-
setHorizontalPolicy
-
setHorizontalStretch
-
setRetainSizeWhenHidden
-
setVerticalPolicy
-
setVerticalStretch
-
setWidthForHeight
-
transpose
-
transposed
-
verticalPolicy
-
verticalStretch
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-