@nodegui/react-nodegui
Index
Modules
Classes
- RNAction
- RNColorDialog
- RNDialog
- RNErrorPrompt
- RNFileDialog
- RNFontDialog
- RNGridColumn
- RNGridRow
- RNInputDialog
- RNMenu
- RNMenuBar
- RNProgressDialog
- Renderer
Interfaces
- AbstractButtonProps
- ActionProps
- AnimatedImageProps
- BoxViewProps
- ButtonProps
- CellRange
- CellWidget
- CheckBoxProps
- ColorDialogProps
- ColumnSize
- ComboBoxProps
- DataWithOffset
- DialProps
- DialogOption
- DialogProps
- ErrorPromptProps
- FileDialogLabelText
- FileDialogProps
- FontDialogProps
- GridViewProps
- HorizontalHeader
- ImageProps
- InputDialogProps
- LineEditProps
- ListItemProps
- ListProps
- MenuBarProps
- MenuProps
- PlainTextEditProps
- ProgressBarProps
- ProgressBarRange
- ProgressDialogProps
- RadioButtonProps
- RowSize
- ScrollAreaProps
- SliderProps
- Sort
- SpinBoxProps
- SystemTrayIconProps
- TabItemProps
- TabProps
- TableData
- TableItemProps
- TableProps
- TextProps
- VerticalHeader
- ViewProps
- WindowProps
Type aliases
- Allowed
- CellPosition
- ComboBoxItem
- CustomListProps
- CustomTableProps
- Geometry
- GridColumnProps
- GridRowProps
- GridViewColumnProps
- GridViewRowProps
- KeysOfType
- NodeGuiReconciler
- OnlyType
- Position
- Range
- RendererOptions
- SetParentFunc
- SimplifiedTableItemProps
- Size
- ViewSize
- WidgetAttributesMap
- WidgetEventListeners
- WindowFlagsMap
Variables
Functions
- App
- getLoadedPixmap
- getLoadedQMovie
- hot
- offsetForIndex
- setAbstractButtonProps
- setActionProps
- setAnimatedImageProps
- setBoxViewProps
- setButtonProps
- setCheckBoxProps
- setColorDialogProps
- setComboBoxProps
- setDialProps
- setDialogProps
- setErrorPromptProps
- setFileDialogProps
- setFontDialogProps
- setGridColumnProps
- setGridRowProps
- setGridViewProps
- setImageProps
- setInputDialogProps
- setLineEditProps
- setMenuBarProps
- setMenuProps
- setPlainTextEditProps
- setProgressBarProps
- setProgressDialogProps
- setRadioButtonProps
- setScrollAreaProps
- setSliderProps
- setSpinBoxProps
- setSystemTrayIconProps
- setTableItemProps
- setWindowProps
- updateDisplacedChildren
- useEventHandler
- verifyRanges
Object literals
Type aliases
Allowed
Ƭ Allowed: OnlyType‹TItem, SetParentFunc‹TParent››
CellPosition
Ƭ CellPosition: []
ComboBoxItem
Ƭ ComboBoxItem: object
Type declaration:
icon? : QIcon
text: string
userData? : QVariant
CustomListProps
Ƭ CustomListProps: ListProps
CustomTableProps
Ƭ CustomTableProps: Omit‹TableProps, "cellRange"›
Geometry
Ƭ Geometry: object
Type declaration:
height: number
width: number
x: number
y: number
GridColumnProps
Ƭ GridColumnProps: object
Type declaration:
- width? : undefined | number
GridRowProps
Ƭ GridRowProps: object
Type declaration:
children: Array‹FunctionComponentElement‹GridColumnProps›› | FunctionComponentElement‹GridColumnProps›
height? : undefined | number
GridViewColumnProps
Ƭ GridViewColumnProps: object
Type declaration:
[ ColumnIndex: number]: object
minWidth? : undefined | number
stretch? : undefined | number
GridViewRowProps
Ƭ GridViewRowProps: object
Type declaration:
[ RowIndex: number]: object
minHeight? : undefined | number
stretch? : undefined | number
KeysOfType
Ƭ KeysOfType: object[keyof T]
Extract the keys of type T
matching type TType
NodeGuiReconciler
Ƭ NodeGuiReconciler: Reconciler‹RNComponent, any, Set‹NodeWidget‹any››, any›
OnlyType
Ƭ OnlyType: object
Show TypeScript that the fields we're interested in are of type TType
Type declaration:
Position
Ƭ Position: object
Type declaration:
x: number
y: number
Range
Ƭ Range: object
Type declaration:
maximum: number
minimum: number
RendererOptions
Ƭ RendererOptions: object
Type declaration:
onInit? : undefined | function
onRender? : undefined | function
SetParentFunc
Ƭ SetParentFunc: function
Type declaration:
â–¸ (parent
: T, index
: number): void
Parameters:
Name | Type |
---|---|
parent | T |
index | number |
SimplifiedTableItemProps
Ƭ SimplifiedTableItemProps: Omit‹TableItemProps, "cellPosition"›
Size
Ƭ Size: object
Type declaration:
height: number
width: number
ViewSize
Ƭ ViewSize: Size & object
WidgetAttributesMap
Ƭ WidgetAttributesMap: object
Type declaration:
- [ key: number]: boolean
WidgetEventListeners
Ƭ WidgetEventListeners: object
Type declaration:
WindowFlagsMap
Ƭ WindowFlagsMap: object
Type declaration:
- [ key: number]: boolean
Variables
Let
appProxy
• appProxy: ReactProxyComponent
Const
styleSheet
• styleSheet: "
#container {
flex: 1;
min-height: '100%';
justify-content: 'center';
}
#textContainer {
flex-direction: 'row';
justify-content: 'space-around';
align-items: 'center';
}
" = #container {
flex: 1;
min-height: '100%';
justify-content: 'center';
}
#textContainer {
flex-direction: 'row';
justify-content: 'space-around';
align-items: 'center';
}
Functions
Const
App
▸ App(): Element‹›
Returns: Element‹›
getLoadedPixmap
â–¸ getLoadedPixmap(imageUrlOrPath
: string): Promise‹QPixmap›
Parameters:
Name | Type |
---|---|
imageUrlOrPath | string |
Returns: Promise‹QPixmap›
getLoadedQMovie
â–¸ getLoadedQMovie(imageUrlOrPath
: string): Promise‹QMovie›
Parameters:
Name | Type |
---|---|
imageUrlOrPath | string |
Returns: Promise‹QMovie›
hot
â–¸ hot(Component
: React.ComponentType): React.ComponentType
Parameters:
Name | Type |
---|---|
Component | React.ComponentType |
Returns: React.ComponentType
Const
offsetForIndex
▸ offsetForIndex‹T›(index
: number, items
: Array‹DataWithOffset‹OnlyType‹T, number›››, sizeKey
: keyof OnlyType<T, number>): number
Type parameters:
â–ª T
Parameters:
Name | Type |
---|---|
index | number |
items | Array‹DataWithOffset‹OnlyType‹T, number››› |
sizeKey | keyof OnlyType<T, number> |
Returns: number
setAbstractButtonProps
▸ setAbstractButtonProps‹Signals›(widget
: QAbstractButton‹Signals›, newProps
: AbstractButtonProps‹Signals›, oldProps
: AbstractButtonProps‹Signals›): void
Type parameters:
â–ª Signals: QAbstractButtonSignals
Parameters:
Name | Type |
---|---|
widget | QAbstractButton‹Signals› |
newProps | AbstractButtonProps‹Signals› |
oldProps | AbstractButtonProps‹Signals› |
Returns: void
Const
setActionProps
â–¸ setActionProps(widget
: RNAction, newProps
: ActionProps, oldProps
: ActionProps): void
Parameters:
Name | Type |
---|---|
widget | RNAction |
newProps | ActionProps |
oldProps | ActionProps |
Returns: void
Const
setAnimatedImageProps
â–¸ setAnimatedImageProps(widget
: RNAnimatedImage, newProps
: AnimatedImageProps, oldProps
: AnimatedImageProps): void
Parameters:
Name | Type |
---|---|
widget | RNAnimatedImage |
newProps | AnimatedImageProps |
oldProps | AnimatedImageProps |
Returns: void
Const
setBoxViewProps
â–¸ setBoxViewProps(widget
: RNBoxView, newProps
: BoxViewProps, oldProps
: BoxViewProps): void
Parameters:
Name | Type |
---|---|
widget | RNBoxView |
newProps | BoxViewProps |
oldProps | BoxViewProps |
Returns: void
Const
setButtonProps
â–¸ setButtonProps(widget
: RNButton, newProps
: ButtonProps, oldProps
: ButtonProps): void
Parameters:
Name | Type |
---|---|
widget | RNButton |
newProps | ButtonProps |
oldProps | ButtonProps |
Returns: void
Const
setCheckBoxProps
â–¸ setCheckBoxProps(widget
: RNCheckBox, newProps
: CheckBoxProps, oldProps
: CheckBoxProps): void
Parameters:
Name | Type |
---|---|
widget | RNCheckBox |
newProps | CheckBoxProps |
oldProps | CheckBoxProps |
Returns: void
setColorDialogProps
â–¸ setColorDialogProps(widget
: RNColorDialog, newProps
: ColorDialogProps, oldProps
: ColorDialogProps): void
Parameters:
Name | Type |
---|---|
widget | RNColorDialog |
newProps | ColorDialogProps |
oldProps | ColorDialogProps |
Returns: void
Const
setComboBoxProps
â–¸ setComboBoxProps(widget
: RNComboBox, newProps
: ComboBoxProps, oldProps
: ComboBoxProps): void
Parameters:
Name | Type |
---|---|
widget | RNComboBox |
newProps | ComboBoxProps |
oldProps | ComboBoxProps |
Returns: void
Const
setDialProps
â–¸ setDialProps(widget
: RNDial, newProps
: DialProps, oldProps
: DialProps): void
Parameters:
Name | Type |
---|---|
widget | RNDial |
newProps | DialProps |
oldProps | DialProps |
Returns: void
setDialogProps
â–¸ setDialogProps(widget
: RNDialog, newProps
: DialogProps, oldProps
: DialogProps): void
Parameters:
Name | Type |
---|---|
widget | RNDialog |
newProps | DialogProps |
oldProps | DialogProps |
Returns: void
setErrorPromptProps
â–¸ setErrorPromptProps(widget
: RNErrorPrompt, newProps
: ErrorPromptProps, oldProps
: ErrorPromptProps): void
Parameters:
Name | Type |
---|---|
widget | RNErrorPrompt |
newProps | ErrorPromptProps |
oldProps | ErrorPromptProps |
Returns: void
setFileDialogProps
â–¸ setFileDialogProps(widget
: RNFileDialog, newProps
: FileDialogProps, oldProps
: FileDialogProps): void
Parameters:
Name | Type |
---|---|
widget | RNFileDialog |
newProps | FileDialogProps |
oldProps | FileDialogProps |
Returns: void
setFontDialogProps
â–¸ setFontDialogProps(widget
: RNFontDialog, newProps
: FontDialogProps, oldProps
: FontDialogProps): void
Parameters:
Name | Type |
---|---|
widget | RNFontDialog |
newProps | FontDialogProps |
oldProps | FontDialogProps |
Returns: void
Const
setGridColumnProps
â–¸ setGridColumnProps(widget
: RNGridColumn, parentRow
: RNGridRow, newProps
: GridColumnProps, oldProps
: GridColumnProps): void
Parameters:
Name | Type |
---|---|
widget | RNGridColumn |
parentRow | RNGridRow |
newProps | GridColumnProps |
oldProps | GridColumnProps |
Returns: void
Const
setGridRowProps
â–¸ setGridRowProps(widget
: RNGridRow, parentGrid
: RNGridView, newProps
: Omit‹GridRowProps, "children"›, oldProps
: Omit‹GridRowProps, "children"›): void
Parameters:
Name | Type |
---|---|
widget | RNGridRow |
parentGrid | RNGridView |
newProps | Omit‹GridRowProps, "children"› |
oldProps | Omit‹GridRowProps, "children"› |
Returns: void
Const
setGridViewProps
â–¸ setGridViewProps(widget
: RNGridView, newProps
: Omit‹GridViewProps, "children"›, oldProps
: Omit‹GridViewProps, "children"›): void
Parameters:
Name | Type |
---|---|
widget | RNGridView |
newProps | Omit‹GridViewProps, "children"› |
oldProps | Omit‹GridViewProps, "children"› |
Returns: void
Const
setImageProps
â–¸ setImageProps(widget
: RNImage, newProps
: ImageProps, oldProps
: ImageProps): void
Parameters:
Name | Type |
---|---|
widget | RNImage |
newProps | ImageProps |
oldProps | ImageProps |
Returns: void
setInputDialogProps
â–¸ setInputDialogProps(widget
: RNInputDialog, newProps
: InputDialogProps, oldProps
: InputDialogProps): void
Parameters:
Name | Type |
---|---|
widget | RNInputDialog |
newProps | InputDialogProps |
oldProps | InputDialogProps |
Returns: void
Const
setLineEditProps
â–¸ setLineEditProps(widget
: RNLineEdit, newProps
: LineEditProps, oldProps
: LineEditProps): void
Parameters:
Name | Type |
---|---|
widget | RNLineEdit |
newProps | LineEditProps |
oldProps | LineEditProps |
Returns: void
Const
setMenuBarProps
â–¸ setMenuBarProps(widget
: RNMenuBar, newProps
: MenuBarProps, oldProps
: MenuBarProps): void
Parameters:
Name | Type |
---|---|
widget | RNMenuBar |
newProps | MenuBarProps |
oldProps | MenuBarProps |
Returns: void
Const
setMenuProps
â–¸ setMenuProps(widget
: RNMenu, newProps
: MenuProps, oldProps
: MenuProps): void
Parameters:
Name | Type |
---|---|
widget | RNMenu |
newProps | MenuProps |
oldProps | MenuProps |
Returns: void
Const
setPlainTextEditProps
â–¸ setPlainTextEditProps(widget
: RNPlainTextEdit, newProps
: PlainTextEditProps, oldProps
: PlainTextEditProps): void
Parameters:
Name | Type |
---|---|
widget | RNPlainTextEdit |
newProps | PlainTextEditProps |
oldProps | PlainTextEditProps |
Returns: void
Const
setProgressBarProps
â–¸ setProgressBarProps(widget
: RNProgressBar, newProps
: ProgressBarProps, oldProps
: ProgressBarProps): void
Parameters:
Name | Type |
---|---|
widget | RNProgressBar |
newProps | ProgressBarProps |
oldProps | ProgressBarProps |
Returns: void
setProgressDialogProps
â–¸ setProgressDialogProps(widget
: RNProgressDialog, newProps
: ProgressDialogProps, oldProps
: ProgressDialogProps): void
Parameters:
Name | Type |
---|---|
widget | RNProgressDialog |
newProps | ProgressDialogProps |
oldProps | ProgressDialogProps |
Returns: void
Const
setRadioButtonProps
â–¸ setRadioButtonProps(widget
: RNRadioButton, newProps
: RadioButtonProps, oldProps
: RadioButtonProps): void
Parameters:
Name | Type |
---|---|
widget | RNRadioButton |
newProps | RadioButtonProps |
oldProps | RadioButtonProps |
Returns: void
Const
setScrollAreaProps
â–¸ setScrollAreaProps(widget
: RNScrollArea, newProps
: ScrollAreaProps, oldProps
: ScrollAreaProps): void
Parameters:
Name | Type |
---|---|
widget | RNScrollArea |
newProps | ScrollAreaProps |
oldProps | ScrollAreaProps |
Returns: void
Const
setSliderProps
â–¸ setSliderProps(widget
: RNSlider, newProps
: SliderProps, oldProps
: SliderProps): void
Parameters:
Name | Type |
---|---|
widget | RNSlider |
newProps | SliderProps |
oldProps | SliderProps |
Returns: void
Const
setSpinBoxProps
â–¸ setSpinBoxProps(widget
: RNSpinBox, newProps
: SpinBoxProps, oldProps
: SpinBoxProps): void
Parameters:
Name | Type |
---|---|
widget | RNSpinBox |
newProps | SpinBoxProps |
oldProps | SpinBoxProps |
Returns: void
Const
setSystemTrayIconProps
â–¸ setSystemTrayIconProps(widget
: RNSystemTrayIcon, newProps
: SystemTrayIconProps, oldProps
: SystemTrayIconProps): void
Parameters:
Name | Type |
---|---|
widget | RNSystemTrayIcon |
newProps | SystemTrayIconProps |
oldProps | SystemTrayIconProps |
Returns: void
Const
setTableItemProps
â–¸ setTableItemProps(widget
: RNTableItem, newProps
: SimplifiedTableItemProps, oldProps
: SimplifiedTableItemProps): void
Parameters:
Name | Type |
---|---|
widget | RNTableItem |
newProps | SimplifiedTableItemProps |
oldProps | SimplifiedTableItemProps |
Returns: void
Const
setWindowProps
â–¸ setWindowProps(window
: RNWindow, newProps
: WindowProps, oldProps
: WindowProps): void
Parameters:
Name | Type |
---|---|
window | RNWindow |
newProps | WindowProps |
oldProps | WindowProps |
Returns: void
updateDisplacedChildren
▸ updateDisplacedChildren‹TItem, TParent›(startIndex
: number, items
: Array‹DataWithOffset‹OnlyType‹TItem, number› & Allowed‹TItem, TParent›››, parent
: TParent, sizeKey
: keyof OnlyType<TItem, number>, setParentFuncKey
: keyof Allowed<TItem, TParent>): void
Type parameters:
â–ª TItem
â–ª TParent
Parameters:
Name | Type |
---|---|
startIndex | number |
items | Array‹DataWithOffset‹OnlyType‹TItem, number› & Allowed‹TItem, TParent››› |
parent | TParent |
sizeKey | keyof OnlyType<TItem, number> |
setParentFuncKey | keyof Allowed<TItem, TParent> |
Returns: void
useEventHandler
▸ useEventHandler‹Signals›(eventHandlerMap
: Partial‹WidgetEventListeners | Signals›, deps
: DependencyList): object | object
Type parameters:
â–ª Signals
Parameters:
Name | Type |
---|---|
eventHandlerMap | Partial‹WidgetEventListeners | Signals› |
deps | DependencyList |
Returns: object | object
verifyRanges
â–¸ verifyRanges(__namedParameters
: object, __namedParameters
: object): void
Parameters:
â–ª __namedParameters: object
Name | Type |
---|---|
columnCount | number |
rowCount | number |
â–ª __namedParameters: object
Name | Type |
---|---|
column | undefined | number |
row | undefined | number |
Returns: void
Object literals
Const
defaultOptions
â–ª defaultOptions: object
onInit
â–¸ onInit(): void
Returns: void
onRender
â–¸ onRender(): void
Returns: void