messagebox

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@257 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-11 06:21:43 +00:00
parent 72ba706b31
commit 22b6c60f45
16 changed files with 3371 additions and 11 deletions

View File

@@ -38,4 +38,29 @@ enum MwALIGNMENT {
*/
#define MwDEFAULT 0x0fffffff
/*!
* %brief Icon mask
*/
#define MwMB_ICONMASK 0xf
/*!
* %brief Warning icon
*/
#define MwMB_ICONWARNING 0x1
/*!
* %brief Information icon
*/
#define MwMB_ICONINFO 0x2
/*!
* %brief Note icon
*/
#define MwMB_ICONNOTE 0x3
/*!
* %brief Question icon
*/
#define MwMB_ICONQUESTION 0x4
#endif

View File

@@ -133,6 +133,16 @@ MWDECL MwLLPixmap MwLoadRaw(MwWidget handle, unsigned char* rgb, int width, int
*/
MWDECL MwLLPixmap MwLoadXPM(MwWidget handle, char** data);
/* color.c */
/*!
* %brief Parses a color name
* %param handle Widget
* %param color Color name
* %return Color
*/
MWDECL MwLLColor MwParseColorName(MwWidget handle, const char* color);
#ifdef __cplusplus
}
#endif

View File

@@ -90,6 +90,10 @@ MWDECL void MwLLSetCursor(MwLL handle, MwCursor* image, MwCursor* mask);
MWDECL void MwLLDetach(MwLL handle, MwPoint* point);
MWDECL void MwLLShow(MwLL handle, int show);
MWDECL void MwLLMakePopup(MwLL handle, MwLL parent);
MWDECL void MwLLSetSizeHints(MwLL handle, int minx, int miny, int maxx, int maxy);
#ifdef __cplusplus
}
#endif

29
include/Mw/MessageBox.h Normal file
View File

@@ -0,0 +1,29 @@
/* $Id$ */
/*!
* %file Mw/MessageBox.h
* %brief Message box
*/
#ifndef __MW_MESSAGEBOX_H__
#define __MW_MESSAGEBOX_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* %param handle Widget
* %param text Text
* %param title Title text
* %param flag Flag
* %return Widget
*/
MWDECL MwWidget MwMessageBox(MwWidget handle, const char* text, const char* title, unsigned int flag);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -19,6 +19,7 @@
#include <Mw/Constants.h>
#include <Mw/Unicode.h>
#include <Mw/Icon.h>
#include <Mw/MessageBox.h>
#include <Mw/Widget/Window.h>
#include <Mw/Widget/Menu.h>