mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-01 23:20:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@499 b9cfdab3-6d41-4d17-bbe4-086880011989
48 lines
848 B
C
48 lines
848 B
C
/* $Id$ */
|
|
/*!
|
|
* @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
|