initial commit

Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
2025-10-31 23:37:30 +01:00
commit bf6b52fd94
9654 changed files with 4035664 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/private/gui_resources.h
// Purpose: Functions for getting GUI resources usage on Windows.
// Author: Vadim Zeitlin
// Created: 2024-07-15
// Copyright: (c) 2024 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MSW_PRIVATE_GUI_RESOURCES_H_
#define _WX_MSW_PRIVATE_GUI_RESOURCES_H_
// ----------------------------------------------------------------------------
// Get current or peak resources usage
// ----------------------------------------------------------------------------
// Simple struct contains the number of GDI and USER objects.
struct wxGUIObjectUsage
{
unsigned long numGDI = 0;
unsigned long numUSER = 0;
bool operator==(const wxGUIObjectUsage& other) const
{
return numGDI == other.numGDI && numUSER == other.numUSER;
}
bool operator!=(const wxGUIObjectUsage& other) const
{
return !(*this == other);
}
};
// Returns the number of GUI resources currently in use by this process.
WXDLLIMPEXP_CORE wxGUIObjectUsage wxGetCurrentlyUsedResources();
// Returns the highest number of GUI resources ever used by this process.
WXDLLIMPEXP_CORE wxGUIObjectUsage wxGetMaxUsedResources();
#endif // _WX_MSW_PRIVATE_GUI_RESOURCES_H_