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