Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvWnd Class Reference

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.
 
void GetPosition (int32_t &aPosX, int32_t &aPosY, int32_t &aSizeX, int32_t &aSizeY)
 Get the window's position and size.
 
PvResult ShowModal ()
 Display the window (modal).
 
PvResult ShowModal (QWidget *aParentHwnd)
 Display the window (modal).
 
PvResult Create (QWidget *aHwnd)
 Display the window (embedded in your program's window).
 
PvResult ShowModeless ()
 Display the window (non-modal).
 
PvResult ShowModeless (QWidget *aParentHwnd)
 Display the window (non-modal).
 
QWidget * GetQWidget ()
 Get the display controller's (PvWnd object) handle.
 
PvString GetTitle () const
 Get the window's title.
 
void SetTitle (const PvString &aTitle)
 Set the window's title.
 
PvResult Close ()
 Close the window.
 

Static Public Member Functions

static void DoEvents ()
 Processes all pending events for the calling thread.
 

Protected Member Functions

 PvWnd ()
 Constructor.
 
virtual ~PvWnd ()
 Destructor.
 

Detailed Description

Window controller superclass.

To create and use a window, see one classes that inherit from PvWnd.

Member Function Documentation

◆ Close()

PvResult PvWnd::Close ( )

Close the window.

Returns
Includes:

◆ Create()

PvResult PvWnd::Create ( QWidget *  aWnd)

Display the window (embedded in your program's window).

Parameters
[in]aWndThe parent window's.

◆ DoEvents()

void PvWnd::DoEvents ( )
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.

◆ GetPosition()

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.

Parameters
[out]aPosXSee SetPosition.
[out]aPosYSee SetPosition.
[out]aSizeXSee SetPosition.
[out]aSizeYSee SetPosition.

◆ GetQWidget()

QWidget * PvWnd::GetQWidget ( )

Get the display controller's (PvWnd object) handle.

Returns
The display controller's handle.

◆ GetTitle()

PvString PvWnd::GetTitle ( ) const

Get the window's title.

Returns
The window's title.
See also
SetTitle

◆ SetPosition()

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.

Parameters
[in]aPosXThe window's position - left edge.
[in]aPosYThe window's position - top edge.
[in]aSizeXThe window's size - width.
[in]aSizeYThe window's size - height.
See also
GetPosition

◆ SetTitle()

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.

Parameters
[in]aTitleThe window's new title.
See also
GetTitle

◆ ShowModal() [1/2]

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.

Returns
Includes:

◆ ShowModal() [2/2]

PvResult PvWnd::ShowModal ( QWidget *  aParentWnd)

Display the window (modal).

Parameters
[in]aParentWndThe parent window's handle.
Returns
Includes:

◆ ShowModeless() [1/2]

PvResult PvWnd::ShowModeless ( )

Display the window (non-modal).

To use this method, see ShowModal.

Returns
Includes:

◆ ShowModeless() [2/2]

PvResult PvWnd::ShowModeless ( QWidget *  aParentWnd)

Display the window (non-modal).

To use this method, see ShowModal.

Parameters
[in]aParentWndSee ShowModal.
Returns
Includes:

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

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com