mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 14:40:49 +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
|
||||
*/
|
||||
MwInline void MwListBoxReset(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL, handle);
|
||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/NumberEntry.h
|
||||
* %brief NumberEntry widget
|
||||
* %prop MwNtext
|
||||
*/
|
||||
#ifndef __MW_WIDGET_NUMBERENTRY_H__
|
||||
#define __MW_WIDGET_NUMBERENTRY_H__
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/ScrollBar.h
|
||||
* %brief ScrollBar widget
|
||||
* %prop MwNareaShown MwNvalue MwNminValue MwNmaxValue MwNorientation
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SCROLLBAR_H__
|
||||
#define __MW_WIDGET_SCROLLBAR_H__
|
||||
|
||||
121
milsko.xml
121
milsko.xml
@@ -1,14 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- $Id$ -->
|
||||
<!--
|
||||
Basically, you have to implement 7 types:
|
||||
Basically, you have to implement 8+n types:
|
||||
- Integer (int)
|
||||
- Unsigned integer (unsigned int)
|
||||
- String (char*)
|
||||
- Pointer (void*)
|
||||
- Struct and pointer to it
|
||||
- Widget (MwWidget, which is void*)
|
||||
- Class (MwClass, which is void*)
|
||||
- Handler (void(*)(MwWidget handle, void* user_data, void* client_data))
|
||||
- Error handler (void(*)(int code, const char* message, void* user_data))
|
||||
|
||||
For widget functions, you must pass widget and arguments to MwVaWidgetExecute.
|
||||
-->
|
||||
<milsko>
|
||||
<!--
|
||||
@@ -282,4 +286,119 @@
|
||||
<attribute name="bold" />
|
||||
</attributes>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user