@nodegui/nodegui

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

FlexLayoutSignals

Ƭ FlexLayoutSignals: QLayoutSignals


FlexNode

Ƭ FlexNode: NativeRawPointer‹"YGNodeRef"›


ImageFormats

Ƭ ImageFormats: "BMP" | "GIF" | "JPG" | "JPEG" | "PNG" | "PBM" | "PGM" | "PPM" | "XBM" | "XPM" | "SVG"


NativeElement

Ƭ NativeElement: object

Type declaration:

  • [ key: string]: any

  • type: "native"


NativeRawPointer

Ƭ NativeRawPointer: Record‹T, unknown›


QAbstractItemSignals

Ƭ QAbstractItemSignals: QObjectSignals


QAbstractScrollAreaSignals

Ƭ QAbstractScrollAreaSignals: QFrameSignals


QBoxLayoutSignals

Ƭ QBoxLayoutSignals: QLayoutSignals


QDesktopWidgetSignals

Ƭ QDesktopWidgetSignals: QWidgetSignals

QDesktopWidget is a class that provides access to screen information on multi-head systems..

This class is a JS wrapper around Qt's QDesktopWidget Class

The QDesktopWidget class provides information about the user's desktop, such as its total size, number of screens, the geometry of each screen, and whether they are configured as separate desktops or a single virtual desktop.

Example

const { QDesktopWidget } = require("@nodegui/nodegui");
const desktop = new QDesktopWidget();
const availableGeometry = desktop.availableGeometry();
const screenGeometry = desktop.screenGeometry();
console.log(availableGeometry.width() + 'x' + availableGeometry.height());
console.log(screenGeometry.width() + 'x' + screenGeometry.height());
console.log(desktop.screenNumber());

QDialSignals

Ƭ QDialSignals: QAbstractSliderSignals


QErrorMessageSignals

Ƭ QErrorMessageSignals: QDialogSignals


QFrameSignals

Ƭ QFrameSignals: QWidgetSignals


QGridLayoutSignals

Ƭ QGridLayoutSignals: QLayoutSignals


QHeaderViewSignals

Ƭ QHeaderViewSignals: QAbstractItemViewSignals


QItemSelectionModelSignals

Ƭ QItemSelectionModelSignals: QObjectSignals


QLayoutSignals

Ƭ QLayoutSignals: QObjectSignals


QListViewSignals

Ƭ QListViewSignals: QAbstractItemViewSignals


QMainWindowSignals

Ƭ QMainWindowSignals: QWidgetSignals


QMenuBarSignals

Ƭ QMenuBarSignals: QWidgetSignals


QPushButtonSignals

Ƭ QPushButtonSignals: QAbstractButtonSignals


QRadioButtonSignals

Ƭ QRadioButtonSignals: QAbstractButtonSignals


QScrollAreaSignals

Ƭ QScrollAreaSignals: QAbstractScrollAreaSignals


QScrollBarSignals

Ƭ QScrollBarSignals: QAbstractSliderSignals


QSliderSignals

Ƭ QSliderSignals: QAbstractSliderSignals


QTableViewSignals

Ƭ QTableViewSignals: QAbstractItemViewSignals


QVariantType

Ƭ QVariantType: NativeElement | string | string[] | number | boolean


SupportedFormats

Ƭ SupportedFormats: "gif" | "webp"

Variables

Const COLS

COLS: 3 = 3


Const ROWS

ROWS: 2 = 2


Const addon

addon: any = require('../../../build/Release/nodegui_core.node')


Const button

button: QPushButton‹› = new QPushButton()


Const centralWidget

centralWidget: QWidget‹› = new QWidget()


Const label

label: QLabel‹› = new QLabel()


Const label2

label2: QLabel‹› = new QLabel()


Const rootLayout

rootLayout: FlexLayout‹› = new FlexLayout()


Const testImagePath

testImagePath: string = path.resolve(__dirname, 'assets', 'nodegui.png')


Const win

win: QMainWindow‹› = new QMainWindow()

Functions

addDefaultErrorHandler

addDefaultErrorHandler(native: NativeElement, emitter: EventEmitter): void

Parameters:

NameType
nativeNativeElement
emitterEventEmitter

Returns: void


checkIfNapiExternal

checkIfNapiExternal(arg: any): boolean

Parameters:

NameType
argany

Returns: boolean


checkIfNativeElement

checkIfNativeElement(arg: any): boolean

Parameters:

NameType
argany

Returns: boolean


createTreeWidget

createTreeWidget(): QTreeWidget

Returns: QTreeWidget


main

main(): void

Returns: void


noop

noop(): void

Returns: void


prepareInlineStyleSheet

prepareInlineStyleSheetSignals›(widget: NodeWidget‹Signals›, rawStyle: string): string

Type parameters:

Signals: QWidgetSignals

Parameters:

NameType
widgetNodeWidget‹Signals›
rawStylestring

Returns: string


wrapWithActivateUvLoop

wrapWithActivateUvLoopT›(func: T): T

Type parameters:

T: Function

Parameters:

NameType
funcT

Returns: T