nodeguy/website/docs/api/generated/classes/qrect.md
2019-12-29 09:37:05 +05:30

216 lines
3.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: "qrect"
title: "QRect"
sidebar_label: "QRect"
---
## Hierarchy
* [Component](component.md)
**QRect**
## Index
### Constructors
* [constructor](qrect.md#constructor)
### Properties
* [native](qrect.md#native)
* [nodeChildren](qrect.md#nodechildren)
* [nodeParent](qrect.md#optional-nodeparent)
### Methods
* [height](qrect.md#height)
* [left](qrect.md#left)
* [setHeight](qrect.md#setheight)
* [setLeft](qrect.md#setleft)
* [setNodeParent](qrect.md#setnodeparent)
* [setTop](qrect.md#settop)
* [setWidth](qrect.md#setwidth)
* [top](qrect.md#top)
* [width](qrect.md#width)
* [fromQVariant](qrect.md#static-fromqvariant)
## Constructors
### constructor
\+ **new QRect**(): *[QRect](qrect.md)*
*Overrides [Component](component.md).[constructor](component.md#constructor)*
**Returns:** *[QRect](qrect.md)*
\+ **new QRect**(`nativeElement`: [NativeElement](../globals.md#nativeelement)): *[QRect](qrect.md)*
*Overrides [Component](component.md).[constructor](component.md#constructor)*
**Parameters:**
Name | Type |
------ | ------ |
`nativeElement` | [NativeElement](../globals.md#nativeelement) |
**Returns:** *[QRect](qrect.md)*
\+ **new QRect**(`x?`: undefined | number, `y?`: undefined | number, `width?`: undefined | number, `height?`: undefined | number): *[QRect](qrect.md)*
*Overrides [Component](component.md).[constructor](component.md#constructor)*
**Parameters:**
Name | Type |
------ | ------ |
`x?` | undefined | number |
`y?` | undefined | number |
`width?` | undefined | number |
`height?` | undefined | number |
**Returns:** *[QRect](qrect.md)*
## Properties
### native
**native**: *[NativeElement](../globals.md#nativeelement)*
*Overrides [Component](component.md).[native](component.md#abstract-native)*
___
### nodeChildren
**nodeChildren**: *Set[Component](component.md)*
*Inherited from [Component](component.md).[nodeChildren](component.md#nodechildren)*
___
### `Optional` nodeParent
**nodeParent**? : *[Component](component.md)*
*Inherited from [Component](component.md).[nodeParent](component.md#optional-nodeparent)*
## Methods
### height
**height**(): *number*
**Returns:** *number*
___
### left
**left**(): *number*
**Returns:** *number*
___
### setHeight
**setHeight**(`height`: number): *void*
**Parameters:**
Name | Type |
------ | ------ |
`height` | number |
**Returns:** *void*
___
### setLeft
**setLeft**(`height`: number): *void*
**Parameters:**
Name | Type |
------ | ------ |
`height` | number |
**Returns:** *void*
___
### setNodeParent
**setNodeParent**(`parent?`: [Component](component.md)): *void*
*Inherited from [Component](component.md).[setNodeParent](component.md#setnodeparent)*
**Parameters:**
Name | Type |
------ | ------ |
`parent?` | [Component](component.md) |
**Returns:** *void*
___
### setTop
**setTop**(`height`: number): *void*
**Parameters:**
Name | Type |
------ | ------ |
`height` | number |
**Returns:** *void*
___
### setWidth
**setWidth**(`width`: number): *void*
**Parameters:**
Name | Type |
------ | ------ |
`width` | number |
**Returns:** *void*
___
### top
**top**(): *number*
**Returns:** *number*
___
### width
**width**(): *number*
**Returns:** *number*
___
### `Static` fromQVariant
**fromQVariant**(`variant`: [QVariant](qvariant.md)): *[QRect](qrect.md)*
**Parameters:**
Name | Type |
------ | ------ |
`variant` | [QVariant](qvariant.md) |
**Returns:** *[QRect](qrect.md)*