git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@179 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-05 19:24:41 +00:00
parent 53ffa66b66
commit 055fddbd3a
3 changed files with 203 additions and 184 deletions

View File

@@ -287,9 +287,6 @@
<dd>
<a href="#Mw_Widget_Vulkan_h___MwVulkanField_PresentQueue"> MwVulkanField_PresentQueue</a>
</dd>
<dd>
<a href="#Mw_Widget_Vulkan_h__MwVulkanField">MwVulkanField</a>
</dd>
<dd>
<a href="#Mw_Widget_Vulkan_h__MwVulkanGetField">MwVulkanGetField</a>
</dd>
@@ -311,14 +308,14 @@
</dt>
</dl>
<hr>
<pre id="Mw_Constants_h__MwDIRECTION"><code>enum MwDIRECTION;</code></pre>
<pre id="Mw_Constants_h__MwDIRECTION"><B><FONT COLOR="#228B22">enum</FONT></B> MwDIRECTION;</pre>
<dl>
<dd>
Direction enumeration.
</dd>
</dl>
<hr>
<pre id="Mw_Constants_h__MwORIENTATION"><code>enum MwORIENTATION;</code></pre>
<pre id="Mw_Constants_h__MwORIENTATION"><B><FONT COLOR="#228B22">enum</FONT></B> MwORIENTATION;</pre>
<dl>
<dd>
Orientation.
@@ -332,7 +329,7 @@
</dt>
</dl>
<hr>
<pre id="Mw_Core_h__MwDispatch"><code>#define MwDispatch(x, y)</code></pre>
<pre id="Mw_Core_h__MwDispatch">#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">MwDispatch</FONT></B>(x, y)</pre>
<dl>
<dd>
Dispatches the handler of widget class.
@@ -354,7 +351,7 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwDispatch2"><code>#define MwDispatch2(x, y)</code></pre>
<pre id="Mw_Core_h__MwDispatch2">#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">MwDispatch2</FONT></B>(x, y)</pre>
<dl>
<dd>
Dispatches the handler of widget class.
@@ -382,15 +379,15 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwCreateWidget"><code>MWDECL MwWidget MwCreateWidget (
<pre id="Mw_Core_h__MwCreateWidget">MWDECL MwWidget <B><FONT COLOR="#0000FF">MwCreateWidget</FONT></B> (
MwClass widget_class,
const char* name,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* name,
MwWidget parent,
int x,
int y,
unsigned int width,
unsigned int height
);</code></pre>
<B><FONT COLOR="#228B22">int</FONT></B> x,
<B><FONT COLOR="#228B22">int</FONT></B> y,
<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> width,
<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> height
);</pre>
<dl>
<dd>
Creates a widget.
@@ -445,16 +442,16 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwVaCreateWidget"><code>MWDECL MwWidget MwVaCreateWidget (
<pre id="Mw_Core_h__MwVaCreateWidget">MWDECL MwWidget <B><FONT COLOR="#0000FF">MwVaCreateWidget</FONT></B> (
MwClass widget_class,
const char* name,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* name,
MwWidget parent,
int x,
int y,
unsigned int width,
unsigned int height,
<B><FONT COLOR="#228B22">int</FONT></B> x,
<B><FONT COLOR="#228B22">int</FONT></B> y,
<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> width,
<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> height,
...
);</code></pre>
);</pre>
<dl>
<dd>
Creates a widget.
@@ -515,16 +512,16 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwVaListCreateWidget"><code>MWDECL MwWidget MwVaListCreateWidget (
<pre id="Mw_Core_h__MwVaListCreateWidget">MWDECL MwWidget <B><FONT COLOR="#0000FF">MwVaListCreateWidget</FONT></B> (
MwClass widget_class,
const char* name,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* name,
MwWidget parent,
int x,
int y,
unsigned int width,
unsigned int height,
<B><FONT COLOR="#228B22">int</FONT></B> x,
<B><FONT COLOR="#228B22">int</FONT></B> y,
<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> width,
<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> height,
va_list va
);</code></pre>
);</pre>
<dl>
<dd>
Creates a widget.
@@ -585,9 +582,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwDestroyWidget"><code>MWDECL void MwDestroyWidget (
<pre id="Mw_Core_h__MwDestroyWidget">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDestroyWidget</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Destroys the widget and its child widgets.
@@ -600,9 +597,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwLoop"><code>MWDECL void MwLoop (
<pre id="Mw_Core_h__MwLoop">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwLoop</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Runs the main loop.
@@ -615,9 +612,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwStep"><code>MWDECL void MwStep (
<pre id="Mw_Core_h__MwStep">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwStep</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Runs the single step.
@@ -630,9 +627,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwPending"><code>MWDECL int MwPending (
<pre id="Mw_Core_h__MwPending">MWDECL <B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">MwPending</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Check if any event is pending.
@@ -651,11 +648,11 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwSetInteger"><code>MWDECL void MwSetInteger (
<pre id="Mw_Core_h__MwSetInteger">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwSetInteger</FONT></B> (
MwWidget handle,
const char* key,
int n
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key,
<B><FONT COLOR="#228B22">int</FONT></B> n
);</pre>
<dl>
<dd>
Sets an integer property.
@@ -680,11 +677,11 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwSetText"><code>MWDECL void MwSetText (
<pre id="Mw_Core_h__MwSetText">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwSetText</FONT></B> (
MwWidget handle,
const char* key,
const char* value
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* value
);</pre>
<dl>
<dd>
Sets a text property.
@@ -709,11 +706,11 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwSetVoid"><code>MWDECL void MwSetVoid (
<pre id="Mw_Core_h__MwSetVoid">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwSetVoid</FONT></B> (
MwWidget handle,
const char* key,
void* value
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key,
<B><FONT COLOR="#228B22">void</FONT></B>* value
);</pre>
<dl>
<dd>
Sets a void pointer property.
@@ -738,10 +735,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwGetInteger"><code>MWDECL int MwGetInteger (
<pre id="Mw_Core_h__MwGetInteger">MWDECL <B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">MwGetInteger</FONT></B> (
MwWidget handle,
const char* key
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key
);</pre>
<dl>
<dd>
Gets the integer property.
@@ -766,10 +763,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwGetText"><code>MWDECL const char* MwGetText (
<pre id="Mw_Core_h__MwGetText">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* <B><FONT COLOR="#0000FF">MwGetText</FONT></B> (
MwWidget handle,
const char* key
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key
);</pre>
<dl>
<dd>
Gets the text property.
@@ -794,10 +791,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwGetVoid"><code>MWDECL void* MwGetVoid (
<pre id="Mw_Core_h__MwGetVoid">MWDECL <B><FONT COLOR="#228B22">void</FONT></B>* <B><FONT COLOR="#0000FF">MwGetVoid</FONT></B> (
MwWidget handle,
const char* key
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key
);</pre>
<dl>
<dd>
Gets the void pointer property.
@@ -822,9 +819,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwSetDefault"><code>MWDECL void MwSetDefault (
<pre id="Mw_Core_h__MwSetDefault">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwSetDefault</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Sets the default property.
@@ -840,10 +837,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwVaApply"><code>MWDECL void MwVaApply (
<pre id="Mw_Core_h__MwVaApply">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwVaApply</FONT></B> (
MwWidget handle,
...
);</code></pre>
);</pre>
<dl>
<dd>
Sets the properties.
@@ -862,10 +859,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwVaListApply"><code>MWDECL void MwVaListApply (
<pre id="Mw_Core_h__MwVaListApply">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwVaListApply</FONT></B> (
MwWidget handle,
va_list va
);</code></pre>
);</pre>
<dl>
<dd>
Sets properties.
@@ -884,12 +881,12 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwAddUserHandler"><code>MWDECL void MwAddUserHandler (
<pre id="Mw_Core_h__MwAddUserHandler">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwAddUserHandler</FONT></B> (
MwWidget handle,
const char* key,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key,
MwUserHandler handler,
void* user_data
);</code></pre>
<B><FONT COLOR="#228B22">void</FONT></B>* user_data
);</pre>
<dl>
<dd>
Sets a user handler.
@@ -920,11 +917,11 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwDispatchUserHandler"><code>MWDECL void MwDispatchUserHandler (
<pre id="Mw_Core_h__MwDispatchUserHandler">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDispatchUserHandler</FONT></B> (
MwWidget handle,
const char* key,
void* handler_data
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* key,
<B><FONT COLOR="#228B22">void</FONT></B>* handler_data
);</pre>
<dl>
<dd>
Dispatches the user handler.
@@ -949,10 +946,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwSetErrorHandler"><code>MWDECL void MwSetErrorHandler (
<pre id="Mw_Core_h__MwSetErrorHandler">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwSetErrorHandler</FONT></B> (
MwErrorHandler handler,
void* user_data
);</code></pre>
<B><FONT COLOR="#228B22">void</FONT></B>* user_data
);</pre>
<dl>
<dd>
Sets an error handler.
@@ -977,10 +974,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwDispatchError"><code>MWDECL void MwDispatchError (
int code,
const char* message
);</code></pre>
<pre id="Mw_Core_h__MwDispatchError">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDispatchError</FONT></B> (
<B><FONT COLOR="#228B22">int</FONT></B> code,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* message
);</pre>
<dl>
<dd>
Dispatches the error handler.
@@ -999,10 +996,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwGetBeforeStep"><code>MWDECL void MwGetBeforeStep (
<pre id="Mw_Core_h__MwGetBeforeStep">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwGetBeforeStep</FONT></B> (
MwWidget handle,
jmp_buf* jmpbuf
);</code></pre>
);</pre>
<dl>
<dd>
Gets the before_step of widget.
@@ -1021,9 +1018,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Core_h__MwForceRender"><code>MWDECL void MwForceRender (
<pre id="Mw_Core_h__MwForceRender">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwForceRender</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Forcefully makes widget render.
@@ -1043,21 +1040,21 @@
</dt>
</dl>
<hr>
<pre id="Mw_Default_h__MwDefaultBackground"><code>MWDECL const char* MwDefaultBackground;</code></pre>
<pre id="Mw_Default_h__MwDefaultBackground">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* MwDefaultBackground;</pre>
<dl>
<dd>
Default background color.
</dd>
</dl>
<hr>
<pre id="Mw_Default_h__MwDefaultForeground"><code>MWDECL const char* MwDefaultForeground;</code></pre>
<pre id="Mw_Default_h__MwDefaultForeground">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* MwDefaultForeground;</pre>
<dl>
<dd>
Default foreground color.
</dd>
</dl>
<hr>
<pre id="Mw_Default_h__MwDefaultBorderWidth"><code>MWDECL const int MwDefaultBorderWidth;</code></pre>
<pre id="Mw_Default_h__MwDefaultBorderWidth">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> MwDefaultBorderWidth;</pre>
<dl>
<dd>
Default border width.
@@ -1071,10 +1068,10 @@
</dt>
</dl>
<hr>
<pre id="Mw_Draw_h__MwParseColor"><code>MWDECL MwLLColor MwParseColor (
<pre id="Mw_Draw_h__MwParseColor">MWDECL MwLLColor <B><FONT COLOR="#0000FF">MwParseColor</FONT></B> (
MwWidget handle,
const char* text
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* text
);</pre>
<dl>
<dd>
Parses a color text.
@@ -1099,13 +1096,13 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwLightenColor"><code>MWDECL MwLLColor MwLightenColor (
<pre id="Mw_Draw_h__MwLightenColor">MWDECL MwLLColor <B><FONT COLOR="#0000FF">MwLightenColor</FONT></B> (
MwWidget handle,
MwLLColor color,
int r,
int g,
int b
);</code></pre>
<B><FONT COLOR="#228B22">int</FONT></B> r,
<B><FONT COLOR="#228B22">int</FONT></B> g,
<B><FONT COLOR="#228B22">int</FONT></B> b
);</pre>
<dl>
<dd>
Lighten a color.
@@ -1148,11 +1145,11 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwDrawRect"><code>MWDECL void MwDrawRect (
<pre id="Mw_Draw_h__MwDrawRect">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDrawRect</FONT></B> (
MwWidget handle,
MwRect* rect,
MwLLColor color
);</code></pre>
);</pre>
<dl>
<dd>
Draws a filled rectangle.
@@ -1177,12 +1174,12 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwDrawFrame"><code>MWDECL void MwDrawFrame (
<pre id="Mw_Draw_h__MwDrawFrame">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDrawFrame</FONT></B> (
MwWidget handle,
MwRect* rect,
MwLLColor color,
int invert
);</code></pre>
<B><FONT COLOR="#228B22">int</FONT></B> invert
);</pre>
<dl>
<dd>
Draws a frame.
@@ -1216,13 +1213,13 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwDrawTriangle"><code>MWDECL void MwDrawTriangle (
<pre id="Mw_Draw_h__MwDrawTriangle">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDrawTriangle</FONT></B> (
MwWidget handle,
MwRect* rect,
MwLLColor color,
int invert,
int direction
);</code></pre>
<B><FONT COLOR="#228B22">int</FONT></B> invert,
<B><FONT COLOR="#228B22">int</FONT></B> direction
);</pre>
<dl>
<dd>
Draws a triangle.
@@ -1253,13 +1250,13 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwDrawFrameEx"><code>MWDECL void MwDrawFrameEx (
<pre id="Mw_Draw_h__MwDrawFrameEx">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDrawFrameEx</FONT></B> (
MwWidget handle,
MwRect* rect,
MwLLColor color,
int invert,
int border
);</code></pre>
<B><FONT COLOR="#228B22">int</FONT></B> invert,
<B><FONT COLOR="#228B22">int</FONT></B> border
);</pre>
<dl>
<dd>
Draws a frame with specified border width.
@@ -1299,13 +1296,13 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwDrawText"><code>MWDECL void MwDrawText (
<pre id="Mw_Draw_h__MwDrawText">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwDrawText</FONT></B> (
MwWidget handle,
MwPoint* point,
const char* text,
int bold,
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* text,
<B><FONT COLOR="#228B22">int</FONT></B> bold,
MwLLColor color
);</code></pre>
);</pre>
<dl>
<dd>
Draws a text.
@@ -1342,10 +1339,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwLoadImage"><code>MWDECL MwLLPixmap MwLoadImage (
<pre id="Mw_Draw_h__MwLoadImage">MWDECL MwLLPixmap <B><FONT COLOR="#0000FF">MwLoadImage</FONT></B> (
MwWidget handle,
const char* path
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* path
);</pre>
<dl>
<dd>
Creates a pixmap from image.
@@ -1370,10 +1367,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwTextWidth"><code>MWDECL int MwTextWidth (
<pre id="Mw_Draw_h__MwTextWidth">MWDECL <B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">MwTextWidth</FONT></B> (
MwWidget handle,
const char* text
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* text
);</pre>
<dl>
<dd>
Calculates a text width.
@@ -1398,10 +1395,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Draw_h__MwTextHeight"><code>MWDECL int MwTextHeight (
<pre id="Mw_Draw_h__MwTextHeight">MWDECL <B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">MwTextHeight</FONT></B> (
MwWidget handle,
const char* text
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* text
);</pre>
<dl>
<dd>
Calculates a text height.
@@ -1433,28 +1430,28 @@
</dt>
</dl>
<hr>
<pre id="Mw_Error_h__MwErrorEnum_T"><code>typedef enum MwErrorEnum_T;</code></pre>
<pre id="Mw_Error_h__MwErrorEnum_T"><B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">enum</FONT></B> MwErrorEnum_T;</pre>
<dl>
<dd>
Error code enumeration.
</dd>
</dl>
<hr>
<pre id="Mw_Error_h___MwEsuccess_"><code> MwEsuccess = 0</code></pre>
<pre id="Mw_Error_h___MwEsuccess_"> MwEsuccess = 0</pre>
<dl>
<dd>
No error.
</dd>
</dl>
<hr>
<pre id="Mw_Error_h___MwEerror"><code> MwEerror</code></pre>
<pre id="Mw_Error_h___MwEerror"> MwEerror</pre>
<dl>
<dd>
There was an error.
</dd>
</dl>
<hr>
<pre id="Mw_Error_h__MwGetLastError__"><code>MWDECL const char* MwGetLastError();</code></pre>
<pre id="Mw_Error_h__MwGetLastError__">MWDECL <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* <B><FONT COLOR="#0000FF">MwGetLastError</FONT></B>();</pre>
<dl>
<dd>
Get the last error.
@@ -1468,14 +1465,14 @@
</dt>
</dl>
<hr>
<pre id="Mw_Font_h__MwFontData__"><code>MWDECL MwFont MwFontData[];</code></pre>
<pre id="Mw_Font_h__MwFontData__">MWDECL MwFont MwFontData[];</pre>
<dl>
<dd>
Default font data.
</dd>
</dl>
<hr>
<pre id="Mw_Font_h__MwBoldFontData__"><code>MWDECL MwFont MwBoldFontData[];</code></pre>
<pre id="Mw_Font_h__MwBoldFontData__">MWDECL MwFont MwBoldFontData[];</pre>
<dl>
<dd>
Default bold font data.
@@ -1527,7 +1524,7 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Button_h__MwButtonClass"><code>MWDECL MwClass MwButtonClass;</code></pre>
<pre id="Mw_Widget_Button_h__MwButtonClass">MWDECL MwClass MwButtonClass;</pre>
<dl>
<dd>
Button widget class.
@@ -1541,7 +1538,7 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Frame_h__MwFrameClass"><code>MWDECL MwClass MwFrameClass;</code></pre>
<pre id="Mw_Widget_Frame_h__MwFrameClass">MWDECL MwClass MwFrameClass;</pre>
<dl>
<dd>
Frame widget class.
@@ -1555,7 +1552,7 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Image_h__MwImageClass"><code>MWDECL MwClass MwImageClass;</code></pre>
<pre id="Mw_Widget_Image_h__MwImageClass">MWDECL MwClass MwImageClass;</pre>
<dl>
<dd>
Image widget class.
@@ -1569,18 +1566,18 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Menu_h__MwMenuClass"><code>MWDECL MwClass MwMenuClass;</code></pre>
<pre id="Mw_Widget_Menu_h__MwMenuClass">MWDECL MwClass MwMenuClass;</pre>
<dl>
<dd>
Menu widget class.
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Menu_h__MwMenuAdd"><code>MWDECL MwMenu MwMenuAdd (
<pre id="Mw_Widget_Menu_h__MwMenuAdd">MWDECL MwMenu <B><FONT COLOR="#0000FF">MwMenuAdd</FONT></B> (
MwWidget handle,
MwMenu menu,
const char* name
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* name
);</pre>
<dl>
<dd>
Adds a menu.
@@ -1618,16 +1615,16 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_OpenGL_h__MwOpenGLClass"><code>MWDECL MwClass MwOpenGLClass;</code></pre>
<pre id="Mw_Widget_OpenGL_h__MwOpenGLClass">MWDECL MwClass MwOpenGLClass;</pre>
<dl>
<dd>
OpenGL widget class.
</dd>
</dl>
<hr>
<pre id="Mw_Widget_OpenGL_h__MwOpenGLMakeCurrent"><code>MWDECL void MwOpenGLMakeCurrent (
<pre id="Mw_Widget_OpenGL_h__MwOpenGLMakeCurrent">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwOpenGLMakeCurrent</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Make a widget current OpenGL context.
@@ -1640,10 +1637,10 @@
</dd>
</dl>
<hr>
<pre id="Mw_Widget_OpenGL_h__MwOpenGLGetProcAddress"><code>MWDECL void* MwOpenGLGetProcAddress (
<pre id="Mw_Widget_OpenGL_h__MwOpenGLGetProcAddress">MWDECL <B><FONT COLOR="#228B22">void</FONT></B>* <B><FONT COLOR="#0000FF">MwOpenGLGetProcAddress</FONT></B> (
MwWidget handle,
const char* name
);</code></pre>
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* name
);</pre>
<dl>
<dd>
Get a procedure from OpenGL.
@@ -1668,9 +1665,9 @@
</dd>
</dl>
<hr>
<pre id="Mw_Widget_OpenGL_h__MwOpenGLSwapBuffer"><code>MWDECL void MwOpenGLSwapBuffer (
<pre id="Mw_Widget_OpenGL_h__MwOpenGLSwapBuffer">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwOpenGLSwapBuffer</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Swaps the buffer of OpenGL context.
@@ -1690,16 +1687,16 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_ScrollBar_h__MwScrollBarClass"><code>MWDECL MwClass MwScrollBarClass;</code></pre>
<pre id="Mw_Widget_ScrollBar_h__MwScrollBarClass">MWDECL MwClass MwScrollBarClass;</pre>
<dl>
<dd>
ScrollBar widget class.
</dd>
</dl>
<hr>
<pre id="Mw_Widget_ScrollBar_h__MwScrollBarGetVisibleLength"><code>MWDECL int MwScrollBarGetVisibleLength (
<pre id="Mw_Widget_ScrollBar_h__MwScrollBarGetVisibleLength">MWDECL <B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">MwScrollBarGetVisibleLength</FONT></B> (
MwWidget handle
);</code></pre>
);</pre>
<dl>
<dd>
Calculates a visible length of scrollbar.
@@ -1725,7 +1722,7 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_SubMenu_h__MwSubMenuClass"><code>MWDECL MwClass MwSubMenuClass;</code></pre>
<pre id="Mw_Widget_SubMenu_h__MwSubMenuClass">MWDECL MwClass MwSubMenuClass;</pre>
<dl>
<dd>
SubMenu widget class.
@@ -1742,16 +1739,16 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanClass"><code>MWDECL MwClass MwVulkanClass;</code></pre>
<pre id="Mw_Widget_Vulkan_h__MwVulkanClass">MWDECL MwClass MwVulkanClass;</pre>
<dl>
<dd>
Vulkan widget class.
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanEnableExtension"><code>MWDECL void MwVulkanEnableExtension (
const char* ext_name
);</code></pre>
<pre id="Mw_Widget_Vulkan_h__MwVulkanEnableExtension">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwVulkanEnableExtension</FONT></B> (
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* ext_name
);</pre>
<dl>
<dd>
Add an extension to the list of extensions to enable prior to initialization.
@@ -1761,9 +1758,9 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanEnableLayer"><code>MWDECL void MwVulkanEnableLayer (
const char* ext_name
);</code></pre>
<pre id="Mw_Widget_Vulkan_h__MwVulkanEnableLayer">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwVulkanEnableLayer</FONT></B> (
<B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">char</FONT></B>* ext_name
);</pre>
<dl>
<dd>
Add an layer to the list of layers to enable prior to initialization.
@@ -1773,37 +1770,37 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanConfig_T"><code>typedef struct MwVulkanConfig_T;</code></pre>
<pre id="Mw_Widget_Vulkan_h__MwVulkanConfig_T"><B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">struct</FONT></B> MwVulkanConfig_T;</pre>
<dl>
<dd>
Configuration options that can be passed to setup Vulkan before a widget is created.
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__api_version"><code> uint32_t api_version;</code></pre>
<pre id="Mw_Widget_Vulkan_h__api_version"> uint32_t api_version;</pre>
<dl>
<dd>
Vulkan API version (default: VK_API_VERSION_1_0).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__vk_version"><code> uint32_t vk_version;</code></pre>
<pre id="Mw_Widget_Vulkan_h__vk_version"> uint32_t vk_version;</pre>
<dl>
<dd>
Vulkan version (default: VK_VERSION_1_0).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__validation_layers"><code> VkBool32 validation_layers;</code></pre>
<pre id="Mw_Widget_Vulkan_h__validation_layers"> VkBool32 validation_layers;</pre>
<dl>
<dd>
Whether or not to enable validation layers (default: false).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanConfigure"><code>MWDECL void MwVulkanConfigure (
<pre id="Mw_Widget_Vulkan_h__MwVulkanConfigure">MWDECL <B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">MwVulkanConfigure</FONT></B> (
MwVulkanConfig cfg
);</code></pre>
);</pre>
<dl>
<dd>
Configure Vulkan prior to initializing the widget.
@@ -1813,81 +1810,74 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanField_T"><code>typedef enum MwVulkanField_T;</code></pre>
<pre id="Mw_Widget_Vulkan_h__MwVulkanField_T"><B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">enum</FONT></B> MwVulkanField_T;</pre>
<dl>
<dd>
Field that can be gotten from Vulkan.
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_GetInstanceProcAddr_"><code> MwVulkanField_GetInstanceProcAddr = 0</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_GetInstanceProcAddr_"> MwVulkanField_GetInstanceProcAddr = 0</pre>
<dl>
<dd>
The address of the vulkan widget's vkGetInstanceProcAddr function (PFN_vkGetInstanceProcAddr).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_Instance"><code> MwVulkanField_Instance</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_Instance"> MwVulkanField_Instance</pre>
<dl>
<dd>
The address of the vulkan widget's instance (VkInstance).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_Surface"><code> MwVulkanField_Surface</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_Surface"> MwVulkanField_Surface</pre>
<dl>
<dd>
The address of the vulkan widget's surface (VkSurfaceKHR).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_PhysicalDevice"><code> MwVulkanField_PhysicalDevice</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_PhysicalDevice"> MwVulkanField_PhysicalDevice</pre>
<dl>
<dd>
The address of the vulkan widget's physical device (VkPhysicalDevice).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_LogicalDevice"><code> MwVulkanField_LogicalDevice</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_LogicalDevice"> MwVulkanField_LogicalDevice</pre>
<dl>
<dd>
The address of the vulkan widget's logical device (VkDevice).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_GraphicsQueueIndex"><code> MwVulkanField_GraphicsQueueIndex</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_GraphicsQueueIndex"> MwVulkanField_GraphicsQueueIndex</pre>
<dl>
<dd>
The address of the index that the vulkan widget uses for the graphics queue (uint32_t *).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_PresentQueueIndex"><code> MwVulkanField_PresentQueueIndex</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_PresentQueueIndex"> MwVulkanField_PresentQueueIndex</pre>
<dl>
<dd>
The address of the index that the vulkan widget uses for the present queue (uint32_t *).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_PresentQueue"><code> MwVulkanField_PresentQueue</code></pre>
<pre id="Mw_Widget_Vulkan_h___MwVulkanField_PresentQueue"> MwVulkanField_PresentQueue</pre>
<dl>
<dd>
The address of the vulkan widget's graphics queue (VkQueue).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanField"><code>} MwVulkanField;</code></pre>
<dl>
<dd>
The address of the vulkan widget's present queue (VkQueue).
</dd>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanGetField"><code>MWDECL void* MwVulkanGetField (
<pre id="Mw_Widget_Vulkan_h__MwVulkanGetField">MWDECL <B><FONT COLOR="#228B22">void</FONT></B>* <B><FONT COLOR="#0000FF">MwVulkanGetField</FONT></B> (
MwWidget handle,
MwVulkanField field,
MwErrorEnum* out
);</code></pre>
);</pre>
<dl>
<dd>
Function for getting a field from within Vulkan.
@@ -1897,9 +1887,9 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Vulkan_h__MwVulkanSupported"><code>MWDECL VkBool32 MwVulkanSupported (
void
);</code></pre>
<pre id="Mw_Widget_Vulkan_h__MwVulkanSupported">MWDECL VkBool32 <B><FONT COLOR="#0000FF">MwVulkanSupported</FONT></B> (
<B><FONT COLOR="#228B22">void</FONT></B>
);</pre>
<dl>
<dd>
Return whether Vulkan is installed on the target platform.
@@ -1913,7 +1903,7 @@
</dt>
</dl>
<hr>
<pre id="Mw_Widget_Window_h__MwWindowClass"><code>MWDECL MwClass MwWindowClass;</code></pre>
<pre id="Mw_Widget_Window_h__MwWindowClass">MWDECL MwClass MwWindowClass;</pre>
<dl>
<dd>
Window widget class.

View File

@@ -106,9 +106,6 @@ typedef enum MwVulkanField_T {
* %brief The address of the vulkan widget's graphics queue (VkQueue)
*/
MwVulkanField_PresentQueue,
/*!
* %brief The address of the vulkan widget's present queue (VkQueue)
*/
} MwVulkanField;
/*!

View File

@@ -52,6 +52,35 @@ sub replace_special {
return $ret;
}
sub highlight {
my $txt = "";
my $app = 0;
open(DOCPL, ">", "/tmp/docpl");
print(DOCPL $_[0] . "\n");
close(DOCPL);
open(DOCIN, "cat /tmp/docpl | enscript -q -whtml --color -Ec -o - |");
while (my $l = <DOCIN>) {
$l =~ s/\r?\n$//g;
if ($l =~ /\<pre\>/i) {
$app = 1;
}
elsif ($l =~ /\<\/pre\>/i) {
$app = 0;
}
elsif ($app) {
$txt = $txt . "\n" . $l;
}
}
close(DOCIN);
$txt =~ s/[\r\n]+$//g;
$txt =~ s/^[\r\n]+//g;
return $txt;
}
sub scan_dir {
my ($first, $path) = @_;
$path =~ s/\/+$//g;
@@ -135,7 +164,7 @@ sub scan_dir {
push(@{ $files_sections{ replace_special($current) } },
$sl);
out("<pre$attr><code>$l</code></pre>");
out("<pre$attr>" . highlight($l) . "</pre>");
}
out("<dl>");
out("<$para>");
@@ -145,7 +174,10 @@ sub scan_dir {
foreach my $note (@notes) {
if (defined($kv{$note})) {
out("<dt>");
out(" <table border=\"0\"><tr><td><img src=\"$note.gif\" alt=\"$note\"></td><td>" . sentence($kv{$note}) . "</td></table>");
out(
" <table border=\"0\"><tr><td><img src=\"$note.gif\" alt=\"$note\"></td><td>"
. sentence($kv{$note})
. "</td></table>");
out("</dt>");
}
}