mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
menu
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@105 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -68,6 +68,22 @@ MWDECL void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLCo
|
||||
*/
|
||||
MWDECL MwLLPixmap MwLoadImage(MwWidget handle, const char* path);
|
||||
|
||||
/*!
|
||||
* %brief Calculates a text width
|
||||
* %param handle Widget
|
||||
* %param text Text
|
||||
* %return Text width
|
||||
*/
|
||||
MWDECL int MwTextWidth(MwWidget handle, const char* text);
|
||||
|
||||
/*!
|
||||
* %brief Calculates a text height
|
||||
* %param handle Widget
|
||||
* %param text Text
|
||||
* %return Text height
|
||||
*/
|
||||
MWDECL int MwTextHeight(MwWidget handle, const char* text);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/MachDep.h
|
||||
* %param Machine dependent headers and macros
|
||||
* %brief Machine dependent headers and macros
|
||||
*/
|
||||
#ifndef __MW_MACHDEP_H__
|
||||
#define __MW_MACHDEP_H__
|
||||
|
||||
25
include/Mw/Menu.h
Normal file
25
include/Mw/Menu.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Menu.h
|
||||
* %brief Menu widget
|
||||
*/
|
||||
#ifndef __MW_MENU_H__
|
||||
#define __MW_MENU_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Menu widget class
|
||||
*/
|
||||
MWDECL MwClass MwMenuClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <Mw/Error.h>
|
||||
|
||||
#include <Mw/Window.h>
|
||||
#include <Mw/Menu.h>
|
||||
#include <Mw/Button.h>
|
||||
#include <Mw/Frame.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user