mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 09:00:54 +00:00
optimization and rename
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@442 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -97,7 +97,7 @@ MWDECL void MwDestroyWidget(MwWidget handle);
|
||||
* %param handle Widget
|
||||
* %param ... Widget function arguments.
|
||||
*/
|
||||
MWDECL void MwWidgetExecute(MwWidget handle, const char* func_name, void* out, ...);
|
||||
MWDECL void MwVaWidgetExecute(MwWidget handle, const char* func_name, void* out, ...);
|
||||
|
||||
/*!
|
||||
* %brief Executes a method specific to the widget (va_list version).
|
||||
|
||||
@@ -64,7 +64,7 @@ MWDECL void MwListBoxVaInsertMultiple(MwWidget handle, int index, int count, MwL
|
||||
* %param index Index
|
||||
*/
|
||||
MwInline void MwListBoxDelete(MwWidget handle, int index) {
|
||||
MwWidgetExecute(handle, "mwListboxDelete", NULL, index);
|
||||
MwVaWidgetExecute(handle, "mwListboxDelete", NULL, index);
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -75,7 +75,7 @@ MwInline void MwListBoxDelete(MwWidget handle, int index) {
|
||||
*/
|
||||
MwInline const char* MwListBoxGet(MwWidget handle, int index) {
|
||||
const char* out;
|
||||
MwWidgetExecute(handle, "mwListBoxGet", (void*)&out, index);
|
||||
MwVaWidgetExecute(handle, "mwListBoxGet", (void*)&out, index);
|
||||
return out;
|
||||
};
|
||||
|
||||
@@ -86,7 +86,7 @@ MwInline const char* MwListBoxGet(MwWidget handle, int index) {
|
||||
* %param width Width
|
||||
*/
|
||||
MwInline void MwListBoxSetWidth(MwWidget handle, int index, int width) {
|
||||
MwWidgetExecute(handle, "mwListBoxSetWidth", NULL, index, width);
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetWidth", NULL, index, width);
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -94,7 +94,7 @@ MwInline void MwListBoxSetWidth(MwWidget handle, int index, int width) {
|
||||
* %param handle Widget
|
||||
*/
|
||||
MwInline void MwListBoxReset(MwWidget handle) {
|
||||
MwWidgetExecute(handle, "mwListBoxReset", NULL, handle);
|
||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL, handle);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -28,7 +28,7 @@ MWDECL MwClass MwMenuClass;
|
||||
*/
|
||||
MwInline MwMenu MwMenuAdd(MwWidget handle, MwMenu menu, const char* name) {
|
||||
MwMenu out;
|
||||
MwWidgetExecute(handle, "mwMenuAdd", &out, menu, name);
|
||||
MwVaWidgetExecute(handle, "mwMenuAdd", &out, menu, name);
|
||||
return out;
|
||||
};
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ MWDECL MwClass MwOpenGLClass;
|
||||
* %param handle Widget
|
||||
*/
|
||||
MwInline void MwOpenGLMakeCurrent(MwWidget handle) {
|
||||
MwWidgetExecute(handle, "mwOpenGLMakeCurrent", NULL);
|
||||
MwVaWidgetExecute(handle, "mwOpenGLMakeCurrent", NULL);
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -46,7 +46,7 @@ MwInline void MwOpenGLMakeCurrent(MwWidget handle) {
|
||||
*/
|
||||
MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
void* out;
|
||||
MwWidgetExecute(handle, "mwOpenGLGetProcAddress", &out, name);
|
||||
MwVaWidgetExecute(handle, "mwOpenGLGetProcAddress", &out, name);
|
||||
return out;
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
* %param handle Widget
|
||||
*/
|
||||
MwInline void MwOpenGLSwapBuffer(MwWidget handle) {
|
||||
MwWidgetExecute(handle, "mwOpenGLSwapBuffer", NULL);
|
||||
MwVaWidgetExecute(handle, "mwOpenGLSwapBuffer", NULL);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -27,7 +27,7 @@ MWDECL MwClass MwScrollBarClass;
|
||||
*/
|
||||
MwInline int MwScrollBarGetVisibleLength(MwWidget handle) {
|
||||
int out;
|
||||
MwWidgetExecute(handle, "mwScrollBarGetVisibleLength", &out, NULL);
|
||||
MwVaWidgetExecute(handle, "mwScrollBarGetVisibleLength", &out, NULL);
|
||||
return out;
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ extern "C" {
|
||||
MWDECL MwClass MwSubMenuClass;
|
||||
|
||||
MwInline void MwSubMenuAppear(MwWidget handle, MwMenu menu, MwPoint* point) {
|
||||
MwWidgetExecute(handle, "mwSubMenuAppear", NULL, menu, point);
|
||||
MwVaWidgetExecute(handle, "mwSubMenuAppear", NULL, menu, point);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -26,7 +26,7 @@ MWDECL MwClass MwViewportClass;
|
||||
*/
|
||||
MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
MwWidget out;
|
||||
MwWidgetExecute(handle, "mwViewportGetViewport", &out);
|
||||
MwVaWidgetExecute(handle, "mwViewportGetViewport", &out);
|
||||
return out;
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@ MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
* %param h Height
|
||||
*/
|
||||
MwInline void MwViewportSetSize(MwWidget handle, int w, int h) {
|
||||
MwWidgetExecute(handle, "mwViewportSetSize", NULL, w, h);
|
||||
MwVaWidgetExecute(handle, "mwViewportSetSize", NULL, w, h);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -115,7 +115,7 @@ typedef enum MwVulkanField_T {
|
||||
*/
|
||||
MwInline void* MwVulkanGetField(MwWidget handle, MwVulkanField field, MwErrorEnum* out) {
|
||||
void* field_out;
|
||||
MwWidgetExecute(handle, "mwVulkanGetField", &field_out, field, out);
|
||||
MwVaWidgetExecute(handle, "mwVulkanGetField", &field_out, field, out);
|
||||
return field_out;
|
||||
};
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ MWDECL MwClass MwWindowClass;
|
||||
* %param toggle Toggle
|
||||
*/
|
||||
MwInline void MwWindowMakeBorderless(MwWidget handle, int toggle) {
|
||||
MwWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
|
||||
MwVaWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user