git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@105 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-01 15:55:53 +00:00
parent e2cfadea90
commit 5d7d47907a
10 changed files with 247 additions and 20 deletions

View File

@@ -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

View File

@@ -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
View 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

View File

@@ -17,6 +17,7 @@
#include <Mw/Error.h>
#include <Mw/Window.h>
#include <Mw/Menu.h>
#include <Mw/Button.h>
#include <Mw/Frame.h>