NDEVR
API Documentation
NDEVRWindow

A top-level widget. More...

Inheritance diagram for NDEVRWindow:
[legend]

Public Member Functions

 NDEVRWindow (QWidget *parent=nullptr)
 Constructs an NDEVRWindow.
void centerToMonitor (uint04 monitor_index)
 Centers this window on the specified monitor.
virtual void closeEvent (QCloseEvent *event) override
 Handles the window close event and emits onClosedSignal.
void lockSizeToScreen ()
 Constrains the window size so it does not exceed the available screen dimensions.
void onClosedSignal ()
 Emitted when the window is closed.
void resizeEvent (QResizeEvent *event) override
 Handles resize events, constraining the window to screen bounds if locked.

Detailed Description

A top-level widget.


Definition at line 49 of file NDEVRWindow.h.

Constructor & Destructor Documentation

◆ NDEVRWindow()

NDEVRWindow::NDEVRWindow ( QWidget * parent = nullptr)

Constructs an NDEVRWindow.

Parameters
[in]parentThe parent widget.

References NDEVRWindow().

Referenced by NDEVRWindow().

Member Function Documentation

◆ centerToMonitor()

void NDEVRWindow::centerToMonitor ( uint04 monitor_index)

Centers this window on the specified monitor.

Parameters
[in]monitor_indexThe zero-based index of the target monitor.

◆ closeEvent()

virtual void NDEVRWindow::closeEvent ( QCloseEvent * event)
overridevirtual

Handles the window close event and emits onClosedSignal.

Parameters
[in]eventThe close event.

Reimplemented in MainWindow.

◆ resizeEvent()

void NDEVRWindow::resizeEvent ( QResizeEvent * event)
override

Handles resize events, constraining the window to screen bounds if locked.

Parameters
[in]eventThe resize event.

The documentation for this class was generated from the following file: