mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
add functions
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@448 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -84,7 +84,7 @@ MwInline void MwListBoxSetWidth(MwWidget handle, int index, int width) {
|
|||||||
* %param handle Widget
|
* %param handle Widget
|
||||||
*/
|
*/
|
||||||
MwInline void MwListBoxReset(MwWidget handle) {
|
MwInline void MwListBoxReset(MwWidget handle) {
|
||||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL, handle);
|
MwVaWidgetExecute(handle, "mwListBoxReset", NULL);
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* %file Mw/Widget/NumberEntry.h
|
* %file Mw/Widget/NumberEntry.h
|
||||||
* %brief NumberEntry widget
|
* %brief NumberEntry widget
|
||||||
* %prop MwNtext
|
|
||||||
*/
|
*/
|
||||||
#ifndef __MW_WIDGET_NUMBERENTRY_H__
|
#ifndef __MW_WIDGET_NUMBERENTRY_H__
|
||||||
#define __MW_WIDGET_NUMBERENTRY_H__
|
#define __MW_WIDGET_NUMBERENTRY_H__
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* %file Mw/Widget/ScrollBar.h
|
* %file Mw/Widget/ScrollBar.h
|
||||||
* %brief ScrollBar widget
|
* %brief ScrollBar widget
|
||||||
* %prop MwNareaShown MwNvalue MwNminValue MwNmaxValue MwNorientation
|
|
||||||
*/
|
*/
|
||||||
#ifndef __MW_WIDGET_SCROLLBAR_H__
|
#ifndef __MW_WIDGET_SCROLLBAR_H__
|
||||||
#define __MW_WIDGET_SCROLLBAR_H__
|
#define __MW_WIDGET_SCROLLBAR_H__
|
||||||
|
|||||||
121
milsko.xml
121
milsko.xml
@@ -1,14 +1,18 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!-- $Id$ -->
|
<!-- $Id$ -->
|
||||||
<!--
|
<!--
|
||||||
Basically, you have to implement 7 types:
|
Basically, you have to implement 8+n types:
|
||||||
- Integer (int)
|
- Integer (int)
|
||||||
- Unsigned integer (unsigned int)
|
- Unsigned integer (unsigned int)
|
||||||
- String (char*)
|
- String (char*)
|
||||||
|
- Pointer (void*)
|
||||||
|
- Struct and pointer to it
|
||||||
- Widget (MwWidget, which is void*)
|
- Widget (MwWidget, which is void*)
|
||||||
- Class (MwClass, which is void*)
|
- Class (MwClass, which is void*)
|
||||||
- Handler (void(*)(MwWidget handle, void* user_data, void* client_data))
|
- Handler (void(*)(MwWidget handle, void* user_data, void* client_data))
|
||||||
- Error handler (void(*)(int code, const char* message, void* user_data))
|
- Error handler (void(*)(int code, const char* message, void* user_data))
|
||||||
|
|
||||||
|
For widget functions, you must pass widget and arguments to MwVaWidgetExecute.
|
||||||
-->
|
-->
|
||||||
<milsko>
|
<milsko>
|
||||||
<!--
|
<!--
|
||||||
@@ -282,4 +286,119 @@
|
|||||||
<attribute name="bold" />
|
<attribute name="bold" />
|
||||||
</attributes>
|
</attributes>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget name="ListBox">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="leftPadding" />
|
||||||
|
</attributes>
|
||||||
|
<functions>
|
||||||
|
<function name="Insert">
|
||||||
|
<arguments>
|
||||||
|
<integer name="index" />
|
||||||
|
<pixmap name="pixmap" />
|
||||||
|
<variable />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
<function name="InsertMultiple">
|
||||||
|
<arguments>
|
||||||
|
<integer name="index" />
|
||||||
|
<integer name="count" />
|
||||||
|
<pixmap name="pixmap" pointer="yes" />
|
||||||
|
<variable />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
<function name="Delete">
|
||||||
|
<arguments>
|
||||||
|
<integer name="index" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
<function name="Get">
|
||||||
|
<return>
|
||||||
|
<string />
|
||||||
|
</return>
|
||||||
|
<arguments>
|
||||||
|
<integer name="index" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
<function name="SetWidth">
|
||||||
|
<arguments>
|
||||||
|
<integer name="index" />
|
||||||
|
<integer name="width" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
<function name="Reset" />
|
||||||
|
</functions>
|
||||||
|
</widget>
|
||||||
|
<widget name="Menu">
|
||||||
|
<functions>
|
||||||
|
<function name="Add">
|
||||||
|
<return>
|
||||||
|
<struct defname="MwMenu" pointer="yes" />
|
||||||
|
</return>
|
||||||
|
<arguments>
|
||||||
|
<struct defname="MwMenu" name="menu" pointer="yes" />
|
||||||
|
<string name="name" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
</functions>
|
||||||
|
</widget>
|
||||||
|
<widget name="NumberEntry">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text" />
|
||||||
|
</attributes>
|
||||||
|
</widget>
|
||||||
|
<widget name="OpenGL">
|
||||||
|
<functions>
|
||||||
|
<function name="MakeCurrent" />
|
||||||
|
<function name="GetProcAddress">
|
||||||
|
<return>
|
||||||
|
<pointer />
|
||||||
|
</return>
|
||||||
|
<arguments>
|
||||||
|
<string name="name" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
<function name="SwapBuffer" />
|
||||||
|
</functions>
|
||||||
|
</widget>
|
||||||
|
<widget name="ScrollBar">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="areaShown" />
|
||||||
|
<attribute name="value" />
|
||||||
|
<attribute name="minValue" />
|
||||||
|
<attribute name="maxValue" />
|
||||||
|
<attribute name="orientation" />
|
||||||
|
</attributes>
|
||||||
|
<functions>
|
||||||
|
<function name="GetVisibleLength">
|
||||||
|
<return>
|
||||||
|
<integer />
|
||||||
|
</return>
|
||||||
|
</function>
|
||||||
|
</functions>
|
||||||
|
</widget>
|
||||||
|
<widget name="SubMenu">
|
||||||
|
<functions>
|
||||||
|
<function name="Appear">
|
||||||
|
<arguments>
|
||||||
|
<struct defname="MwMenu" pointer="yes" name="menu" />
|
||||||
|
<struct defname="MwPoint" pointer="yes" name="point" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
</functions>
|
||||||
|
</widget>
|
||||||
|
<widget name="Viewport">
|
||||||
|
<functions>
|
||||||
|
<function name="GetViewport">
|
||||||
|
<return>
|
||||||
|
<widget />
|
||||||
|
</return>
|
||||||
|
</function>
|
||||||
|
<function name="SetSize">
|
||||||
|
<arguments>
|
||||||
|
<integer name="w" />
|
||||||
|
<integer name="h" />
|
||||||
|
</arguments>
|
||||||
|
</function>
|
||||||
|
</functions>
|
||||||
|
</widget>
|
||||||
</milsko>
|
</milsko>
|
||||||
|
|||||||
Reference in New Issue
Block a user