2025-09-30 13:04:40 +00:00
|
|
|
/*!
|
2025-10-28 20:40:26 +00:00
|
|
|
* @file Mw/Widget/Window.h
|
|
|
|
|
* @brief Window widget
|
2025-09-30 13:04:40 +00:00
|
|
|
*/
|
2025-10-04 16:34:24 +00:00
|
|
|
#ifndef __MW_WIDGET_WINDOW_H__
|
|
|
|
|
#define __MW_WIDGET_WINDOW_H__
|
2025-09-29 00:06:16 +00:00
|
|
|
|
|
|
|
|
#include <Mw/MachDep.h>
|
2025-09-29 02:43:01 +00:00
|
|
|
#include <Mw/TypeDefs.h>
|
2025-10-20 21:55:30 +00:00
|
|
|
#include <Mw/Core.h>
|
2025-09-29 00:06:16 +00:00
|
|
|
|
2025-09-29 00:19:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-09-30 13:04:40 +00:00
|
|
|
/*!
|
2025-10-28 20:40:26 +00:00
|
|
|
* @brief Window widget class
|
2025-09-30 13:04:40 +00:00
|
|
|
*/
|
2025-09-29 00:06:16 +00:00
|
|
|
MWDECL MwClass MwWindowClass;
|
|
|
|
|
|
2025-10-13 06:30:36 +00:00
|
|
|
/*!
|
2025-10-28 20:40:26 +00:00
|
|
|
* @brief Makes window borderless
|
|
|
|
|
* @param handle Widget
|
|
|
|
|
* @param toggle Toggle
|
2025-10-13 06:30:36 +00:00
|
|
|
*/
|
2025-10-20 21:55:30 +00:00
|
|
|
MwInline void MwWindowMakeBorderless(MwWidget handle, int toggle) {
|
2025-10-21 16:14:09 +00:00
|
|
|
MwVaWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
|
2025-11-09 12:13:46 +00:00
|
|
|
}
|
2025-10-13 06:30:36 +00:00
|
|
|
|
2026-07-17 21:55:16 -07:00
|
|
|
/*!
|
|
|
|
|
* @brief Whether the window should close
|
|
|
|
|
* @param handle Widget
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
MwInline MwBool MwWindowShouldClose(MwWidget handle) {
|
2026-07-19 20:37:04 +09:00
|
|
|
MwBool res = MwFALSE;
|
|
|
|
|
MwVaWidgetExecute(handle, "mwWindowShouldClose", NULL, &res);
|
|
|
|
|
return res;
|
2026-07-17 21:55:16 -07:00
|
|
|
}
|
|
|
|
|
|
2025-09-29 00:19:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-09-29 00:06:16 +00:00
|
|
|
#endif
|