mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57: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/Viewport.h
Normal file
46
widget/milsko/milskosrc/include/Mw/Widget/Viewport.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Viewport.h
|
||||
* @brief Viewport widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_VIEWPORT_H__
|
||||
#define __MW_WIDGET_VIEWPORT_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Viewport widget class
|
||||
*/
|
||||
MWDECL MwClass MwViewportClass;
|
||||
|
||||
/*!
|
||||
* @brief Get parent widget where widgets should be placed
|
||||
* @param handle Widget
|
||||
* @return Widget
|
||||
*/
|
||||
MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwViewportGetViewport", &out);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Set viewport size
|
||||
* @param handle Widget
|
||||
* @param w Width
|
||||
* @param h Height
|
||||
*/
|
||||
MwInline void MwViewportSetSize(MwWidget handle, int w, int h) {
|
||||
MwVaWidgetExecute(handle, "mwViewportSetSize", NULL, w, h);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue