QSize
Hierarchy
-
↳ QSize
Index
Constructors
Properties
Methods
- boundedTo
- expandedTo
- height
- isEmpty
- isNull
- isValid
- scale
- scaled
- setHeight
- setWidth
- transpose
- transposed
- width
- fromQVariant
Constructors
constructor
+ new QSize(nativeElement
: NativeElement): QSize
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
nativeElement | NativeElement |
Returns: QSize
+ new QSize(width?
: number, height?
: number): QSize
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
width? | number |
height? | number |
Returns: QSize
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
boundedTo
▸ boundedTo(otherSize
: QSize): QSize
Parameters:
Name | Type |
---|---|
otherSize | QSize |
Returns: QSize
expandedTo
▸ expandedTo(otherSize
: QSize): QSize
Parameters:
Name | Type |
---|---|
otherSize | QSize |
Returns: QSize
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): QSize
Parameters:
Name | Type |
---|---|
width | number |
height | number |
mode | AspectRatioMode |
Returns: QSize
setHeight
▸ setHeight(height
: number): void
Parameters:
Name | Type |
---|---|
height | number |
Returns: void
setWidth
▸ setWidth(width
: number): void
Parameters:
Name | Type |
---|---|
width | number |
Returns: void
transpose
▸ transpose(): void
Returns: void
transposed
▸ transposed(): QSize
Returns: QSize
width
▸ width(): number
Returns: number
Static
fromQVariant
▸ fromQVariant(variant
: QVariant): QSize
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QSize