milsko/include/Mw/Widget/Window.h

45 lines
815 B
C
Raw Permalink Normal View History

/*!
* @file Mw/Widget/Window.h
* @brief Window widget
*/
#ifndef __MW_WIDGET_WINDOW_H__
#define __MW_WIDGET_WINDOW_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#include <Mw/Core.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* @brief Window widget class
*/
MWDECL MwClass MwWindowClass;
/*!
* @brief Makes window borderless
* @param handle Widget
* @param toggle Toggle
*/
MwInline void MwWindowMakeBorderless(MwWidget handle, int toggle) {
MwVaWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
}
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
}
#ifdef __cplusplus
}
#endif
#endif