mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +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
46
widget/milsko/milskosrc/include/Mw/Widget/SubMenu.h
Normal file
46
widget/milsko/milskosrc/include/Mw/Widget/SubMenu.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/*!
|
||||
* @file Mw/Widget/SubMenu.h
|
||||
* @brief SubMenu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SUBMENU_H__
|
||||
#define __MW_WIDGET_SUBMENU_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief SubMenu widget class
|
||||
*/
|
||||
MWDECL MwClass MwSubMenuClass;
|
||||
|
||||
/*!
|
||||
* @brief Makes submenu appear
|
||||
* @param handle Handle
|
||||
* @param menu Menu
|
||||
* @param point Point
|
||||
* @param diff_calc Toggles different way to calculate positiion
|
||||
*/
|
||||
MwInline void MwSubMenuAppear(MwWidget handle, MwMenu menu, MwPoint* point, int diff_calc) {
|
||||
MwVaWidgetExecute(handle, "mwSubMenuAppear", NULL, menu, point, diff_calc);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Calculates the size of submenu
|
||||
* @param handle Handle
|
||||
* @param menu Menu
|
||||
* @param rect Size
|
||||
*/
|
||||
MwInline void MwSubMenuGetSize(MwWidget handle, MwMenu menu, MwRect* rect) {
|
||||
MwVaWidgetExecute(handle, "mwSubMenuGetSize", NULL, menu, rect);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue