mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-30 22:20:50 +00:00
47 lines
835 B
C
47 lines
835 B
C
/*!
|
|
* @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
|