mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Dactyloidae Milsko Widget initial commit
This commit is contained in:
parent
2e7355c0ef
commit
91b45c0d14
410 changed files with 204246 additions and 0 deletions
45
widget/milsko/milskosrc/include/Mw/Widget/Window.h
Normal file
45
widget/milsko/milskosrc/include/Mw/Widget/Window.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/*!
|
||||
* @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);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Whether the window should close
|
||||
* @param handle Widget
|
||||
* @return bool
|
||||
*/
|
||||
MwInline MwBool MwWindowShouldClose(MwWidget handle) {
|
||||
MwBool res = MwFALSE;
|
||||
MwVaWidgetExecute(handle, "mwWindowShouldClose", NULL, &res);
|
||||
return res;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue