Window controller superclass. More...
Public Member Functions | |
| void | SetPosition (int32_t aPosX, int32_t aPosY, int32_t aSizeX, int32_t aSizeY) |
| Set the window's position and size. More... | |
| void | GetPosition (int32_t &aPosX, int32_t &aPosY, int32_t &aSizeX, int32_t &aSizeY) |
| Get the window's position and size. More... | |
| PvResult | ShowModal () |
| Display the window (modal). More... | |
| PvResult | ShowModal (QWidget *aParentHwnd) |
| Display the window (modal). More... | |
| PvResult | Create (QWidget *aHwnd) |
| Display the window (embedded in your program's window). More... | |
| PvResult | ShowModeless () |
| Display the window (non-modal). More... | |
| PvResult | ShowModeless (QWidget *aParentHwnd) |
| Display the window (non-modal). More... | |
| QWidget * | GetQWidget () |
| Get the display controller's (PvWnd object) handle. More... | |
| PvString | GetTitle () const |
| Get the window's title. More... | |
| void | SetTitle (const PvString &aTitle) |
| Set the window's title. More... | |
| PvResult | Close () |
| Close the window. More... | |
Static Public Member Functions | |
| static void | DoEvents () |
| Processes all pending events for the calling thread. More... | |
Protected Member Functions | |
| PvWnd () | |
| Constructor. | |
| virtual | ~PvWnd () |
| Destructor. | |
Window controller superclass.
To create and use a window, see one classes that inherit from PvWnd.
| PvResult PvWnd::Close | ( | ) |
Close the window.
| PvResult PvWnd::Create | ( | QWidget * | aWnd | ) |
Display the window (embedded in your program's window).
| [in] | aWnd | The parent window's. |
|
static |
Processes all pending events for the calling thread.
If a modeless dialog is shown, it is up to the application to pump events to it. This must be called from the same thread that called ShowModeless in order to ensure that the events are processed properly by that dialog.
| void PvWnd::GetPosition | ( | int32_t & | aPosX, |
| int32_t & | aPosY, | ||
| int32_t & | aSizeX, | ||
| int32_t & | aSizeY | ||
| ) |
Get the window's position and size.
To use this method, see SetPosition.
| [out] | aPosX | See SetPosition. |
| [out] | aPosY | See SetPosition. |
| [out] | aSizeX | See SetPosition. |
| [out] | aSizeY | See SetPosition. |
| QWidget * PvWnd::GetQWidget | ( | ) |
Get the display controller's (PvWnd object) handle.
| PvString PvWnd::GetTitle | ( | ) | const |
| void PvWnd::SetPosition | ( | int32_t | aPosX, |
| int32_t | aPosY, | ||
| int32_t | aSizeX, | ||
| int32_t | aSizeY | ||
| ) |
Set the window's position and size.
For standalone windows, the SetPosition method sets the window's absolute position (and size) on the desktop, where (0,0) is the top left corner of the desktop.
For embedded windows, the SetPosition method sets the embedded window's position relative to the window in which it is embedded, where (0,0) is the top left corner of the window.
Coordinates of the window's top left corner: (aPosX, aPosY)
Coordinates of the window's bottom right corner: (aPosX+aSizeX, aPosY+aSizeY)
To get the window's current position and size, use GetPosition.
| [in] | aPosX | The window's position - left edge. |
| [in] | aPosY | The window's position - top edge. |
| [in] | aSizeX | The window's size - width. |
| [in] | aSizeY | The window's size - height. |
| void PvWnd::SetTitle | ( | const PvString & | aTitle | ) |
Set the window's title.
The title appears in the (typically blue) band at the top of the window.
| [in] | aTitle | The window's new title. |
| PvResult PvWnd::ShowModal | ( | ) |
Display the window (modal).
The ShowModal and ShowModeless methods display a new window. The two methods let you choose how your new window captures input focus.
Modal windows display on top of other windows in the same application, capture input focus, and prevent other windows from being accessed/used/selected until the modal window is closed.
Modeless windows let users toggle between windows.
| PvResult PvWnd::ShowModal | ( | QWidget * | aParentWnd | ) |
Display the window (modal).
| [in] | aParentWnd | The parent window's handle. |
| PvResult PvWnd::ShowModeless | ( | ) |
Display the window (non-modal).
To use this method, see ShowModal.
| PvResult PvWnd::ShowModeless | ( | QWidget * | aParentWnd | ) |
Display the window (non-modal).
To use this method, see ShowModal.
| [in] | aParentWnd | See ShowModal. |
Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com