nodeguy/website/docs/api/generated/classes/qcursor.md
Atul R 392aa3cd4c
Adds automatic docs for now (#308)
* adds basic typedoc

* backup

* Adds all docs to source code

* Adds autogenerated docs

* Fixes doc links

* Updates docs
2019-12-29 00:42:06 +05:30

133 lines
2.3 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: "qcursor"
title: "QCursor"
sidebar_label: "QCursor"
---
> The QCursor class provides scalable icons in different modes and states.
**This class is a JS wrapper around Qt's [QCursor class](https://doc.qt.io/qt-5/qcursor.html)**
### Example
```javascript
const { QCursor } = require("@nodegui/nodegui");
const cursor = new QCursor();
```
## Hierarchy
* [Component](component.md)
**QCursor**
## Index
### Constructors
* [constructor](qcursor.md#constructor)
### Properties
* [native](qcursor.md#native)
* [nodeChildren](qcursor.md#nodechildren)
* [nodeParent](qcursor.md#optional-nodeparent)
### Methods
* [pos](qcursor.md#pos)
* [setNodeParent](qcursor.md#setnodeparent)
* [setPos](qcursor.md#setpos)
## Constructors
### constructor
\+ **new QCursor**(): *[QCursor](qcursor.md)*
**Returns:** *[QCursor](qcursor.md)*
\+ **new QCursor**(`native`: [NativeElement](../globals.md#nativeelement)): *[QCursor](qcursor.md)*
**Parameters:**
Name | Type |
------ | ------ |
`native` | [NativeElement](../globals.md#nativeelement) |
**Returns:** *[QCursor](qcursor.md)*
\+ **new QCursor**(`shape`: [CursorShape](../enums/cursorshape.md)): *[QCursor](qcursor.md)*
**Parameters:**
Name | Type |
------ | ------ |
`shape` | [CursorShape](../enums/cursorshape.md) |
**Returns:** *[QCursor](qcursor.md)*
## Properties
### native
**native**: *[NativeElement](../globals.md#nativeelement)*
*Overrides [Component](component.md).[native](component.md#abstract-native)*
___
### nodeChildren
**nodeChildren**: *Setunknown* = new Set()
*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
### pos
**pos**(): *object*
**Returns:** *object*
___
### 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*
___
### setPos
**setPos**(`x`: number, `y`: number): *void*
**Parameters:**
Name | Type |
------ | ------ |
`x` | number |
`y` | number |
**Returns:** *void*