QSizeF
Hierarchy
↳ QSizeF
Index
Constructors
Properties
Methods
- boundedTo
- expandedTo
- height
- isEmpty
- isNull
- isValid
- scale
- scaled
- setHeight
- setWidth
- toSize
- transpose
- transposed
- width
- fromQVariant
Constructors
constructor
+ new QSizeF(nativeOrWidth?
: number | NativeElement, height?
: number): QSizeF
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
nativeOrWidth? | number | NativeElement |
height? | number |
Returns: QSizeF
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
boundedTo
â–¸ boundedTo(otherSize
: QSizeF): QSizeF
Parameters:
Name | Type |
---|---|
otherSize | QSizeF |
Returns: QSizeF
expandedTo
â–¸ expandedTo(otherSize
: QSizeF): QSizeF
Parameters:
Name | Type |
---|---|
otherSize | QSizeF |
Returns: QSizeF
height
â–¸ height(): number
Returns: number
isEmpty
â–¸ isEmpty(): boolean
Returns: boolean
isNull
â–¸ isNull(): boolean
Returns: boolean
isValid
â–¸ isValid(): boolean
Returns: boolean
scale
â–¸ scale(width
: number, height
: number, mode
: AspectRatioMode): void
Parameters:
Name | Type |
---|---|
width | number |
height | number |
mode | AspectRatioMode |
Returns: void
scaled
â–¸ scaled(width
: number, height
: number, mode
: AspectRatioMode): QSizeF
Parameters:
Name | Type |
---|---|
width | number |
height | number |
mode | AspectRatioMode |
Returns: QSizeF
setHeight
â–¸ setHeight(height
: number): void
Parameters:
Name | Type |
---|---|
height | number |
Returns: void
setWidth
â–¸ setWidth(width
: number): void
Parameters:
Name | Type |
---|---|
width | number |
Returns: void
toSize
â–¸ toSize(): QSize
Returns: QSize
transpose
â–¸ transpose(): void
Returns: void
transposed
â–¸ transposed(): QSizeF
Returns: QSizeF
width
â–¸ width(): number
Returns: number
Static
fromQVariant
â–¸ fromQVariant(variant
: QVariant): QSizeF
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QSizeF