RNAction
Hierarchy
QAction
↳ RNAction
Implements
- RNComponent
Index
Constructors
Properties
Methods
- addEventListener
- appendChild
- appendInitialChild
- font
- inherits
- insertBefore
- isCheckable
- isChecked
- isSeparator
- objectName
- property
- removeChild
- removeEventListener
- setCheckable
- setChecked
- setEnabled
- setFont
- setIcon
- setMenu
- setNodeParent
- setObjectName
- setProperty
- setProps
- setSeparator
- setShortcut
- setShortcutContext
- setText
Constructors
constructor
+ new RNAction(): RNAction
Inherited from RNAction.constructor
Overrides void
Returns: RNAction
+ new RNAction(native: NativeElement): RNAction
Inherited from RNAction.constructor
Overrides void
Parameters:
| Name | Type |
|---|---|
native | NativeElement |
Returns: RNAction
+ new RNAction(parent: NodeWidget‹any›): RNAction
Inherited from RNAction.constructor
Overrides void
Parameters:
| Name | Type |
|---|---|
parent | NodeWidget‹any› |
Returns: RNAction
Properties
Optional icon
• icon? : QIcon
Optional menu
• menu? : QMenu
native
• native: NativeElement
Inherited from RNAction.native
Overrides void
nodeChildren
• nodeChildren: Set‹Component›
Inherited from RNAction.nodeChildren
Optional nodeParent
• nodeParent? : Component
Inherited from RNAction.nodeParent
Static tagName
â–ª tagName: string = "action"
Methods
addEventListener
▸ addEventListener‹SignalType›(signalType: SignalType, callback: QActionSignals[SignalType]): void
Inherited from RNAction.addEventListener
Type parameters:
â–ª SignalType: keyof QActionSignals
Parameters:
| Name | Type | Description |
|---|---|---|
signalType | SignalType | SignalType is a signal from the widgets signals interface. |
callback | QActionSignals[SignalType] | Corresponding callback for the signal as mentioned in the widget's signal interface |
Returns: void
void
For example in the case of QPushButton:
â–¸ addEventListener(eventType: WidgetEventTypes, callback: function): void
Inherited from RNAction.addEventListener
Parameters:
â–ª eventType: WidgetEventTypes
â–ª callback: function
For example in the case of QPushButton:
▸ (event?: NativeRawPointer‹"QEvent"›): void
Parameters:
| Name | Type |
|---|---|
event? | NativeRawPointer‹"QEvent"› |
Returns: void
appendChild
â–¸ appendChild(child: Component): void
Parameters:
| Name | Type |
|---|---|
child | Component |
Returns: void
appendInitialChild
â–¸ appendInitialChild(child: Component): void
Parameters:
| Name | Type |
|---|---|
child | Component |
Returns: void
font
â–¸ font(): QFont
Returns: QFont
inherits
â–¸ inherits(className: string): boolean
Inherited from RNAction.inherits
Parameters:
| Name | Type |
|---|---|
className | string |
Returns: boolean
insertBefore
â–¸ insertBefore(child: Component, beforeChild: Component): void
Parameters:
| Name | Type |
|---|---|
child | Component |
beforeChild | Component |
Returns: void
isCheckable
â–¸ isCheckable(): boolean
Inherited from RNAction.isCheckable
Returns: boolean
isChecked
â–¸ isChecked(): boolean
Inherited from RNAction.isChecked
Returns: boolean
isSeparator
â–¸ isSeparator(): boolean
Inherited from RNAction.isSeparator
Returns: boolean
objectName
â–¸ objectName(): string
Inherited from RNAction.objectName
Returns: string
property
â–¸ property(name: string): QVariant
Inherited from RNAction.property
Parameters:
| Name | Type |
|---|---|
name | string |
Returns: QVariant
removeChild
â–¸ removeChild(child: Component): void
Parameters:
| Name | Type |
|---|---|
child | Component |
Returns: void
removeEventListener
▸ removeEventListener‹SignalType›(signalType: SignalType, callback: QActionSignals[SignalType]): void
Inherited from RNAction.removeEventListener
Type parameters:
â–ª SignalType: keyof QActionSignals
Parameters:
| Name | Type |
|---|---|
signalType | SignalType |
callback | QActionSignals[SignalType] |
Returns: void
â–¸ removeEventListener(eventType: WidgetEventTypes, callback: function): void
Inherited from RNAction.removeEventListener
Parameters:
â–ª eventType: WidgetEventTypes
â–ª callback: function
▸ (event?: NativeRawPointer‹"QEvent"›): void
Parameters:
| Name | Type |
|---|---|
event? | NativeRawPointer‹"QEvent"› |
Returns: void
setCheckable
â–¸ setCheckable(isCheckable: boolean): void
Inherited from RNAction.setCheckable
Parameters:
| Name | Type |
|---|---|
isCheckable | boolean |
Returns: void
setChecked
â–¸ setChecked(isChecked: boolean): void
Inherited from RNAction.setChecked
Parameters:
| Name | Type |
|---|---|
isChecked | boolean |
Returns: void
setEnabled
â–¸ setEnabled(enabled: boolean): void
Inherited from RNAction.setEnabled
Parameters:
| Name | Type |
|---|---|
enabled | boolean |
Returns: void
setFont
â–¸ setFont(font: QFont): void
Inherited from RNAction.setFont
Parameters:
| Name | Type |
|---|---|
font | QFont |
Returns: void
setIcon
â–¸ setIcon(icon: QIcon): void
Inherited from RNAction.setIcon
Parameters:
| Name | Type |
|---|---|
icon | QIcon |
Returns: void
setMenu
â–¸ setMenu(menu: QMenu): void
Inherited from RNAction.setMenu
Parameters:
| Name | Type |
|---|---|
menu | QMenu |
Returns: void
setNodeParent
â–¸ setNodeParent(parent?: Component): void
Inherited from RNAction.setNodeParent
Parameters:
| Name | Type |
|---|---|
parent? | Component |
Returns: void
setObjectName
â–¸ setObjectName(objectName: string): void
Inherited from RNAction.setObjectName
Parameters:
| Name | Type |
|---|---|
objectName | string |
Returns: void
setProperty
â–¸ setProperty(name: string, value: QVariantType): boolean
Inherited from RNAction.setProperty
Parameters:
| Name | Type |
|---|---|
name | string |
value | QVariantType |
Returns: boolean
setProps
â–¸ setProps(newProps: ActionProps, oldProps: ActionProps): void
Parameters:
| Name | Type |
|---|---|
newProps | ActionProps |
oldProps | ActionProps |
Returns: void
setSeparator
â–¸ setSeparator(isSeparator: boolean): void
Inherited from RNAction.setSeparator
Parameters:
| Name | Type |
|---|---|
isSeparator | boolean |
Returns: void
setShortcut
â–¸ setShortcut(keysequence: QKeySequence): void
Inherited from RNAction.setShortcut
Parameters:
| Name | Type |
|---|---|
keysequence | QKeySequence |
Returns: void
setShortcutContext
â–¸ setShortcutContext(shortcutContext: ShortcutContext): void
Inherited from RNAction.setShortcutContext
Parameters:
| Name | Type |
|---|---|
shortcutContext | ShortcutContext |
Returns: void
setText
â–¸ setText(text: string): void
Inherited from RNAction.setText
Parameters:
| Name | Type |
|---|---|
text | string |
Returns: void