add label

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@213 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-08 10:09:10 +00:00
parent b07ee601cd
commit 406452391b
18 changed files with 167 additions and 15 deletions

View File

@@ -24,4 +24,13 @@ enum MwORIENTATION {
MwHORIZONTAL
};
/*!
* %brief Alignment
*/
enum MwALIGNMENT {
MwALIGNMENT_CENTER = 0,
MwALIGNMENT_BEGINNING,
MwALIGNMENT_END,
};
#endif

View File

@@ -22,6 +22,7 @@
#include <Mw/Widget/Menu.h>
#include <Mw/Widget/SubMenu.h>
#include <Mw/Widget/Button.h>
#include <Mw/Widget/Label.h>
#include <Mw/Widget/CheckBox.h>
#include <Mw/Widget/Frame.h>
#include <Mw/Widget/Image.h>

View File

@@ -16,6 +16,7 @@
#define MwNvalue "Ivalue"
#define MwNareaShown "IareaShown"
#define MwNchecked "Ichecked"
#define MwNalignment "Ialignment"
#define MwNtitle "Stitle"
#define MwNtext "Stext"

View File

@@ -2,7 +2,7 @@
/*!
* %file Mw/Widget/Button.h
* %brief Button widget
* %prop MwNpixmap
* %prop MwNpixmap MwNtext
*/
#ifndef __MW_WIDGET_BUTTON_H__
#define __MW_WIDGET_BUTTON_H__

View File

@@ -2,7 +2,7 @@
/*!
* %file Mw/Widget/CheckBox.h
* %brief CheckBox widget
* %prop MwNpixmap
* %prop MwNchecked
*/
#ifndef __MW_WIDGET_CHECKBOX_H__
#define __MW_WIDGET_CHECKBOX_H__

26
include/Mw/Widget/Label.h Normal file
View File

@@ -0,0 +1,26 @@
/* $Id$ */
/*!
* %file Mw/Widget/Label.h
* %brief Label widget
* %prop MwNtext MwNalignment
*/
#ifndef __MW_WIDGET_LABEL_H__
#define __MW_WIDGET_LABEL_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* %brief Label widget class
*/
MWDECL MwClass MwLabelClass;
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -2,6 +2,7 @@
/*!
* %file Mw/Widget/Window.h
* %brief Window widget
* %prop MwNtitle
*/
#ifndef __MW_WIDGET_WINDOW_H__
#define __MW_WIDGET_WINDOW_H__