soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SWindowMgr Class Reference

Manages DUI windows in the SOUI system. More...

#include <SWindowMgr.h>

Public Types

enum  { SWND_INVALID = 0 }
 Invalid window handle constant. More...
 

Public Member Functions

 SWindowMgr ()
 Constructor.
 
 ~SWindowMgr ()
 Destructor.
 

Static Public Member Functions

static SWindowGetWindow (SWND swnd)
 Retrieves the SWindow pointer from a given handle.
 
static bool IsWindow (SWND swnd)
 Checks if a given handle is a valid window handle.
 
static SWND NewWindow (SWindow *pWnd)
 Assigns a handle to a new SWindow.
 
static BOOL DestroyWindow (SWND swnd)
 Destroys a window with the specified handle.
 

Protected Attributes

SCriticalSection m_lockWndMap
 
SWND m_hNextWnd
 

Detailed Description

Manages DUI windows in the SOUI system.

This class is responsible for managing the creation, retrieval, and destruction of DUI windows. It uses a singleton pattern to ensure a single instance of the manager and provides methods to interact with the windows.

Definition at line 33 of file SWindowMgr.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Invalid window handle constant.

Definition at line 40 of file SWindowMgr.h.

Constructor & Destructor Documentation

◆ SWindowMgr()

SNSBEGIN SWindowMgr::SWindowMgr ( )

Constructor.

Definition at line 7 of file SWindowMgr.cpp.

◆ ~SWindowMgr()

SWindowMgr::~SWindowMgr ( )

Destructor.

Definition at line 12 of file SWindowMgr.cpp.

Member Function Documentation

◆ DestroyWindow()

BOOL SWindowMgr::DestroyWindow ( SWND swnd)
static

Destroys a window with the specified handle.

Parameters
swndHandle of the window to destroy.
Returns
TRUE if the window is successfully destroyed, FALSE otherwise.

Definition at line 43 of file SWindowMgr.cpp.

◆ GetWindow()

SWindow * SWindowMgr::GetWindow ( SWND swnd)
static

Retrieves the SWindow pointer from a given handle.

Parameters
swndHandle of the window to retrieve.
Returns
Pointer to the SWindow object, or nullptr if the handle is invalid.

Definition at line 17 of file SWindowMgr.cpp.

◆ IsWindow()

bool SWindowMgr::IsWindow ( SWND swnd)
static

Checks if a given handle is a valid window handle.

Parameters
swndHandle to check.
Returns
TRUE if the handle is valid, FALSE otherwise.

Definition at line 27 of file SWindowMgr.cpp.

◆ NewWindow()

SWND SWindowMgr::NewWindow ( SWindow * pWnd)
static

Assigns a handle to a new SWindow.

Parameters
pWndPointer to the SWindow to assign a handle to.
Returns
Handle assigned to the SWindow, or SWND_INVALID if assignment fails.

Definition at line 33 of file SWindowMgr.cpp.

Member Data Documentation

◆ m_hNextWnd

SWND SWindowMgr::m_hNextWnd
protected

Definition at line 85 of file SWindowMgr.h.

◆ m_lockWndMap

SCriticalSection SWindowMgr::m_lockWndMap
protected

Definition at line 84 of file SWindowMgr.h.


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