mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 18:09:44 +00:00
remove old document
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@499 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Constants.h
|
||||
* %brief Constants
|
||||
* @file Mw/Constants.h
|
||||
* @brief Constants
|
||||
*/
|
||||
#ifndef __MW_CONSTANTS_H__
|
||||
#define __MW_CONSTANTS_H__
|
||||
|
||||
/*!
|
||||
* %brief Direction enumeration
|
||||
* @brief Direction enumeration
|
||||
*/
|
||||
enum MwDIRECTION {
|
||||
MwNORTH = 0,
|
||||
@@ -17,7 +17,7 @@ enum MwDIRECTION {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Orientation
|
||||
* @brief Orientation
|
||||
*/
|
||||
enum MwORIENTATION {
|
||||
MwVERTICAL = 0,
|
||||
@@ -25,7 +25,7 @@ enum MwORIENTATION {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Alignment
|
||||
* @brief Alignment
|
||||
*/
|
||||
enum MwALIGNMENT {
|
||||
MwALIGNMENT_CENTER = 0,
|
||||
@@ -34,12 +34,12 @@ enum MwALIGNMENT {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Default
|
||||
* @brief Default
|
||||
*/
|
||||
#define MwDEFAULT 0x0fffffff
|
||||
|
||||
/*!
|
||||
* %brief Directory entry type
|
||||
* @brief Directory entry type
|
||||
*/
|
||||
enum MwDIRECTORY_TYPE {
|
||||
MwDIRECTORY_FILE = 0,
|
||||
@@ -47,7 +47,7 @@ enum MwDIRECTORY_TYPE {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Icon mask
|
||||
* @brief Icon mask
|
||||
*/
|
||||
#define MwMB_ICONMASK 0xf
|
||||
|
||||
@@ -60,42 +60,42 @@ enum MwMB_ICON {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Button mask
|
||||
* @brief Button mask
|
||||
*/
|
||||
#define MwMB_BUTTONMASK 0xf0
|
||||
|
||||
/*!
|
||||
* %brief OK button
|
||||
* @brief OK button
|
||||
*/
|
||||
#define MwMB_BUTTONOK 0x10
|
||||
|
||||
/*!
|
||||
* %brief Cancel button
|
||||
* @brief Cancel button
|
||||
*/
|
||||
#define MwMB_BUTTONCANCEL 0x20
|
||||
|
||||
/*!
|
||||
* %brief Yes button
|
||||
* @brief Yes button
|
||||
*/
|
||||
#define MwMB_BUTTONYES 0x40
|
||||
|
||||
/*!
|
||||
* %brief No button
|
||||
* @brief No button
|
||||
*/
|
||||
#define MwMB_BUTTONNO 0x80
|
||||
|
||||
/*!
|
||||
* %brief Ok and Cancel button
|
||||
* @brief Ok and Cancel button
|
||||
*/
|
||||
#define MwMB_BUTTONOKCANCEL (MwMB_BUTTONCANCEL | MwMB_BUTTONOK)
|
||||
|
||||
/*!
|
||||
* %brief Yes and No button
|
||||
* @brief Yes and No button
|
||||
*/
|
||||
#define MwMB_BUTTONYESNO (MwMB_BUTTONYES | MwMB_BUTTONNO)
|
||||
|
||||
/*!
|
||||
* %brief Yes, No and Cancel button
|
||||
* @brief Yes, No and Cancel button
|
||||
*/
|
||||
#define MwMB_BUTTONYESNOCANCEL (MwMB_BUTTONYES | MwMB_BUTTONNO | MwMB_BUTTONCANCEL)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Core.h
|
||||
* %brief Core
|
||||
* @file Mw/Core.h
|
||||
* @brief Core
|
||||
*/
|
||||
#ifndef __MW_CORE_H__
|
||||
#define __MW_CORE_H__
|
||||
@@ -10,30 +10,30 @@
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
/*!
|
||||
* %warning Used internally
|
||||
* %brief Dispatches the handler of widget class
|
||||
* %param x Widget
|
||||
* %param y Handler name
|
||||
* @warning Used internally
|
||||
* @brief Dispatches the handler of widget class
|
||||
* @param x Widget
|
||||
* @param y Handler name
|
||||
*/
|
||||
#define MwDispatch(x, y) \
|
||||
if(!x->destroyed && x->widget_class != NULL && x->widget_class->y != NULL) x->widget_class->y(x)
|
||||
|
||||
/*!
|
||||
* %warning Used internally
|
||||
* %brief Dispatches the handler of widget class
|
||||
* %param x Widget
|
||||
* %param y Handler name
|
||||
* %return `0` for success, otherwise failed
|
||||
* @warning Used internally
|
||||
* @brief Dispatches the handler of widget class
|
||||
* @param x Widget
|
||||
* @param y Handler name
|
||||
* @return `0` for success, otherwise failed
|
||||
*/
|
||||
#define MwDispatch2(x, y) \
|
||||
((!x->destroyed && x->widget_class != NULL && x->widget_class->y != NULL) ? x->widget_class->y(x) : 0)
|
||||
|
||||
/*!
|
||||
* %warning Used internally
|
||||
* %brief Dispatches the handler of widget class
|
||||
* %param x Widget
|
||||
* %param y Handler name
|
||||
* %param z Argument
|
||||
* @warning Used internally
|
||||
* @brief Dispatches the handler of widget class
|
||||
* @param x Widget
|
||||
* @param y Handler name
|
||||
* @param z Argument
|
||||
*/
|
||||
#define MwDispatch3(x, y, z) \
|
||||
if(!x->destroyed && x->widget_class != NULL && x->widget_class->y != NULL) x->widget_class->y(x, z)
|
||||
@@ -45,237 +45,237 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Creates a widget
|
||||
* %param widget_class Widget class
|
||||
* %param name Widget name
|
||||
* %param parent Parent widget or `NULL`
|
||||
* %param x X
|
||||
* %param y Y
|
||||
* %param width Width
|
||||
* %param height Height
|
||||
* %return Widget
|
||||
* @brief Creates a widget
|
||||
* @param widget_class Widget class
|
||||
* @param name Widget name
|
||||
* @param parent Parent widget or `NULL`
|
||||
* @param x X
|
||||
* @param y Y
|
||||
* @param width Width
|
||||
* @param height Height
|
||||
* @return Widget
|
||||
*/
|
||||
MWDECL MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
/*!
|
||||
* %brief Creates a widget
|
||||
* %param widget_class Widget class
|
||||
* %param name Widget name
|
||||
* %param parent Parent widget or `NULL`
|
||||
* %param x X
|
||||
* %param y Y
|
||||
* %param width Width
|
||||
* %param height Height
|
||||
* %param ... Same with MwVaApply
|
||||
* %return Widget
|
||||
* @brief Creates a widget
|
||||
* @param widget_class Widget class
|
||||
* @param name Widget name
|
||||
* @param parent Parent widget or `NULL`
|
||||
* @param x X
|
||||
* @param y Y
|
||||
* @param width Width
|
||||
* @param height Height
|
||||
* @param ... Same with MwVaApply
|
||||
* @return Widget
|
||||
*/
|
||||
MWDECL MwWidget MwVaCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, ...);
|
||||
|
||||
/*!
|
||||
* %brief Creates a widget
|
||||
* %param widget_class Widget class
|
||||
* %param name Widget name
|
||||
* %param parent Parent widget or `NULL`
|
||||
* %param x X
|
||||
* %param y Y
|
||||
* %param width Width
|
||||
* %param height Height
|
||||
* %param va Same with MwVaListApply
|
||||
* %return Widget
|
||||
* @brief Creates a widget
|
||||
* @param widget_class Widget class
|
||||
* @param name Widget name
|
||||
* @param parent Parent widget or `NULL`
|
||||
* @param x X
|
||||
* @param y Y
|
||||
* @param width Width
|
||||
* @param height Height
|
||||
* @param va Same with MwVaListApply
|
||||
* @return Widget
|
||||
*/
|
||||
MWDECL MwWidget MwVaListCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, va_list va);
|
||||
|
||||
/*!
|
||||
* %brief Destroys the widget and its child widgets
|
||||
* %param handle Widget
|
||||
* @brief Destroys the widget and its child widgets
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwDestroyWidget(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Executes a method specific to the widget (varadic version).
|
||||
* %warning Prefer using corresponding functions for better code clarity and type safety.
|
||||
* %param handle Widget
|
||||
* %param ... Widget function arguments.
|
||||
* @brief Executes a method specific to the widget (varadic version).
|
||||
* @warning Prefer using corresponding functions for better code clarity and type safety.
|
||||
* @param handle Widget
|
||||
* @param ... Widget function arguments.
|
||||
*/
|
||||
MWDECL void MwVaWidgetExecute(MwWidget handle, const char* func_name, void* out, ...);
|
||||
|
||||
/*!
|
||||
* %brief Executes a method specific to the widget (va_list version).
|
||||
* %warning Prefer using corresponding functions for better code clarity and type safety.
|
||||
* %param handle Widget
|
||||
* %param va Widget function arguments.
|
||||
* @brief Executes a method specific to the widget (va_list version).
|
||||
* @warning Prefer using corresponding functions for better code clarity and type safety.
|
||||
* @param handle Widget
|
||||
* @param va Widget function arguments.
|
||||
*/
|
||||
MWDECL void MwVaListWidgetExecute(MwWidget handle, const char* func_name, void* out, va_list va);
|
||||
|
||||
/*!
|
||||
* %brief Runs the main loop
|
||||
* %param handle Widget
|
||||
* @brief Runs the main loop
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwLoop(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Runs the single step
|
||||
* %param handle Widget
|
||||
* @brief Runs the single step
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwStep(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Check if any event is pending
|
||||
* %param handle Widget
|
||||
* %return `1` if any event is pending
|
||||
* @brief Check if any event is pending
|
||||
* @param handle Widget
|
||||
* @return `1` if any event is pending
|
||||
*/
|
||||
MWDECL int MwPending(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Sets an integer property
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %param n Value
|
||||
* @brief Sets an integer property
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @param n Value
|
||||
*/
|
||||
MWDECL void MwSetInteger(MwWidget handle, const char* key, int n);
|
||||
|
||||
/*!
|
||||
* %brief Sets a text property
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %param value Value
|
||||
* @brief Sets a text property
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @param value Value
|
||||
*/
|
||||
MWDECL void MwSetText(MwWidget handle, const char* key, const char* value);
|
||||
|
||||
/*!
|
||||
* %brief Sets a void pointer property
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %param value Value
|
||||
* @brief Sets a void pointer property
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @param value Value
|
||||
*/
|
||||
MWDECL void MwSetVoid(MwWidget handle, const char* key, void* value);
|
||||
|
||||
/*!
|
||||
* %brief Gets the integer property
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %return Value
|
||||
* @brief Gets the integer property
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @return Value
|
||||
*/
|
||||
MWDECL int MwGetInteger(MwWidget handle, const char* key);
|
||||
|
||||
/*!
|
||||
* %brief Gets the text property
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %return Value
|
||||
* @brief Gets the text property
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @return Value
|
||||
*/
|
||||
MWDECL const char* MwGetText(MwWidget handle, const char* key);
|
||||
|
||||
/*!
|
||||
* %brief Gets the void pointer property
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %return Value
|
||||
* @brief Gets the void pointer property
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @return Value
|
||||
*/
|
||||
MWDECL void* MwGetVoid(MwWidget handle, const char* key);
|
||||
|
||||
/*!
|
||||
* %brief Sets the default property
|
||||
* %param handle Widget
|
||||
* %warning This is called when widget is created
|
||||
* @brief Sets the default property
|
||||
* @param handle Widget
|
||||
* @warning This is called when widget is created
|
||||
*/
|
||||
MWDECL void MwSetDefault(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Sets the properties
|
||||
* %param handle Widget
|
||||
* %param ... Properties
|
||||
* @brief Sets the properties
|
||||
* @param handle Widget
|
||||
* @param ... Properties
|
||||
*/
|
||||
MWDECL void MwVaApply(MwWidget handle, ...);
|
||||
|
||||
/*!
|
||||
* %brief Sets properties
|
||||
* %param handle Widget
|
||||
* %param va Properties
|
||||
* @brief Sets properties
|
||||
* @param handle Widget
|
||||
* @param va Properties
|
||||
*/
|
||||
MWDECL void MwVaListApply(MwWidget handle, va_list va);
|
||||
|
||||
/*!
|
||||
* %brief Sets a user handler
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %param handler Handler
|
||||
* %param user_data User data passed to handler
|
||||
* @brief Sets a user handler
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @param handler Handler
|
||||
* @param user_data User data passed to handler
|
||||
*/
|
||||
MWDECL void MwAddUserHandler(MwWidget handle, const char* key, MwUserHandler handler, void* user_data);
|
||||
|
||||
/*!
|
||||
* %brief Dispatches the user handler
|
||||
* %param handle Widget
|
||||
* %param key Key
|
||||
* %param handler_data Handler data passed to handler
|
||||
* @brief Dispatches the user handler
|
||||
* @param handle Widget
|
||||
* @param key Key
|
||||
* @param handler_data Handler data passed to handler
|
||||
*/
|
||||
MWDECL void MwDispatchUserHandler(MwWidget handle, const char* key, void* handler_data);
|
||||
|
||||
/*!
|
||||
* %brief Sets an error handler
|
||||
* %param handle Widget
|
||||
* %param handler Handler
|
||||
* %param user_data User data passed to handler
|
||||
* @brief Sets an error handler
|
||||
* @param handle Widget
|
||||
* @param handler Handler
|
||||
* @param user_data User data passed to handler
|
||||
*/
|
||||
MWDECL void MwSetErrorHandler(MwErrorHandler handler, void* user_data);
|
||||
|
||||
/*!
|
||||
* %brief Dispatches the error handler
|
||||
* %param code Error code
|
||||
* %param message Error message
|
||||
* @brief Dispatches the error handler
|
||||
* @param code Error code
|
||||
* @param message Error message
|
||||
*/
|
||||
MWDECL void MwDispatchError(int code, const char* message);
|
||||
|
||||
/*!
|
||||
* %brief Gets the before_step of widget
|
||||
* %param handle Widget
|
||||
* %param jmpbuf jmp_buf
|
||||
* @brief Gets the before_step of widget
|
||||
* @param handle Widget
|
||||
* @param jmpbuf jmp_buf
|
||||
*/
|
||||
MWDECL void MwGetBeforeStep(MwWidget handle, jmp_buf* jmpbuf);
|
||||
|
||||
/*!
|
||||
* %brief Forcefully makes widget render
|
||||
* %param handle Widget
|
||||
* @brief Forcefully makes widget render
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwForceRender(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Forcefully makes widget render
|
||||
* %param handle Widget
|
||||
* %param ptr Ignored
|
||||
* @brief Forcefully makes widget render
|
||||
* @param handle Widget
|
||||
* @param ptr Ignored
|
||||
*/
|
||||
MWDECL void MwForceRender2(MwWidget handle, void* ptr);
|
||||
|
||||
/*!
|
||||
* %brief Adds an widget to tick handler list
|
||||
* %param handle Widget
|
||||
* @brief Adds an widget to tick handler list
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwAddTickList(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Focus the widget
|
||||
* %param handle Widget
|
||||
* @brief Focus the widget
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwFocus(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %brief Grabs the pointer
|
||||
* %param handle Widget
|
||||
* %param toggle Toggle
|
||||
* @brief Grabs the pointer
|
||||
* @param handle Widget
|
||||
* @param toggle Toggle
|
||||
*/
|
||||
MWDECL void MwGrabPointer(MwWidget handle, int toggle);
|
||||
|
||||
/*!
|
||||
* %brief Hides the cursor
|
||||
* %param handle Widget
|
||||
* @brief Hides the cursor
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwHideCursor(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* %param Toggles the dark theme
|
||||
* %param handle Widget
|
||||
* %param toggle Toggle
|
||||
* @param Toggles the dark theme
|
||||
* @param handle Widget
|
||||
* @param toggle Toggle
|
||||
*/
|
||||
MWDECL void MwToggleDarkTheme(MwWidget handle, int toggle);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Cursor.h
|
||||
* %brief Cursor externs
|
||||
* @file Mw/Cursor.h
|
||||
* @brief Cursor externs
|
||||
*/
|
||||
|
||||
#ifndef __MW_CURSOR_H__
|
||||
@@ -15,42 +15,42 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Default cursor
|
||||
* @brief Default cursor
|
||||
*/
|
||||
MWDECL MwCursor MwCursorDefault;
|
||||
|
||||
/*!
|
||||
* %brief Default cursor mask
|
||||
* @brief Default cursor mask
|
||||
*/
|
||||
MWDECL MwCursor MwCursorDefaultMask;
|
||||
|
||||
/*!
|
||||
* %brief Cross cursor
|
||||
* @brief Cross cursor
|
||||
*/
|
||||
MWDECL MwCursor MwCursorCross;
|
||||
|
||||
/*!
|
||||
* %brief Cross cursor mask
|
||||
* @brief Cross cursor mask
|
||||
*/
|
||||
MWDECL MwCursor MwCursorCrossMask;
|
||||
|
||||
/*!
|
||||
* %brief Text cursor
|
||||
* @brief Text cursor
|
||||
*/
|
||||
MWDECL MwCursor MwCursorText;
|
||||
|
||||
/*!
|
||||
* %brief Text cursor mask
|
||||
* @brief Text cursor mask
|
||||
*/
|
||||
MWDECL MwCursor MwCursorTextMask;
|
||||
|
||||
/*!
|
||||
* %brief Hidden cursor
|
||||
* @brief Hidden cursor
|
||||
*/
|
||||
MWDECL MwCursor MwCursorHidden;
|
||||
|
||||
/*!
|
||||
* %brief Hidden cursor mask
|
||||
* @brief Hidden cursor mask
|
||||
*/
|
||||
MWDECL MwCursor MwCursorHiddenMask;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Default.h
|
||||
* %brief Default properties
|
||||
* @file Mw/Default.h
|
||||
* @brief Default properties
|
||||
*/
|
||||
#ifndef __MW_DEFAULT_H__
|
||||
#define __MW_DEFAULT_H__
|
||||
@@ -14,28 +14,28 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Default background color
|
||||
* @brief Default background color
|
||||
*/
|
||||
MWDECL const char* MwDefaultBackground;
|
||||
|
||||
/*!
|
||||
* %brief Default foreground color
|
||||
* @brief Default foreground color
|
||||
*/
|
||||
MWDECL const char* MwDefaultForeground;
|
||||
|
||||
/*!
|
||||
* %brief Default dark theme background color
|
||||
* @brief Default dark theme background color
|
||||
*/
|
||||
MWDECL const char* MwDefaultDarkBackground;
|
||||
|
||||
/*!
|
||||
* %brief Default dark theme foreground color
|
||||
* @brief Default dark theme foreground color
|
||||
*/
|
||||
MWDECL const char* MwDefaultDarkForeground;
|
||||
|
||||
/*!
|
||||
* %brief Gets default border width
|
||||
* %param handle Widget
|
||||
* @brief Gets default border width
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL int MwGetDefaultBorderWidth(MwWidget handle);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Directory.h
|
||||
* %brief Directory functions
|
||||
* @file Mw/Directory.h
|
||||
* @brief Directory functions
|
||||
*/
|
||||
#ifndef __MW_DIRECTORY_H__
|
||||
#define __MW_DIRECTORY_H__
|
||||
@@ -14,42 +14,42 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Opens a directory
|
||||
* %param path Path
|
||||
* %return Handle
|
||||
* @brief Opens a directory
|
||||
* @param path Path
|
||||
* @return Handle
|
||||
*/
|
||||
MWDECL void* MwDirectoryOpen(const char* path);
|
||||
|
||||
/*!
|
||||
* %brief Closes a directory
|
||||
* %param handle Handle
|
||||
* @brief Closes a directory
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MwDirectoryClose(void* handle);
|
||||
|
||||
/*!
|
||||
* %brief Reads a directory
|
||||
* %param handle Handle
|
||||
* %return Directory entry
|
||||
* @brief Reads a directory
|
||||
* @param handle Handle
|
||||
* @return Directory entry
|
||||
*/
|
||||
MWDECL MwDirectoryEntry* MwDirectoryRead(void* handle);
|
||||
|
||||
/*!
|
||||
* %brief Frees a directory entry
|
||||
* %param entry Entry
|
||||
* @brief Frees a directory entry
|
||||
* @param entry Entry
|
||||
*/
|
||||
MWDECL void MwDirectoryFreeEntry(MwDirectoryEntry* entry);
|
||||
|
||||
/*!
|
||||
* %brief Gets a current directory
|
||||
* %param Directory
|
||||
* @brief Gets a current directory
|
||||
* @param Directory
|
||||
*/
|
||||
MWDECL char* MwDirectoryCurrent(void);
|
||||
|
||||
/*!
|
||||
* %brief Joins 2 paths
|
||||
* %param a Path
|
||||
* %param b Path
|
||||
* %return Path
|
||||
* @brief Joins 2 paths
|
||||
* @param a Path
|
||||
* @param b Path
|
||||
* @return Path
|
||||
*/
|
||||
MWDECL char* MwDirectoryJoin(char* a, char* b);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Draw.h
|
||||
* %brief Common drawing API
|
||||
* @file Mw/Draw.h
|
||||
* @brief Common drawing API
|
||||
*/
|
||||
#ifndef __MW_DRAW_H__
|
||||
#define __MW_DRAW_H__
|
||||
@@ -15,157 +15,157 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Parses a color text
|
||||
* %param handle Widget
|
||||
* %param text Color text
|
||||
* %return Color
|
||||
* @brief Parses a color text
|
||||
* @param handle Widget
|
||||
* @param text Color text
|
||||
* @return Color
|
||||
*/
|
||||
MWDECL MwLLColor MwParseColor(MwWidget handle, const char* text);
|
||||
|
||||
/*!
|
||||
* %brief Lighten a color
|
||||
* %param handle Widget
|
||||
* %param color Color
|
||||
* %param r Red
|
||||
* %param g Green
|
||||
* %param b Blue
|
||||
* %return Color
|
||||
* @brief Lighten a color
|
||||
* @param handle Widget
|
||||
* @param color Color
|
||||
* @param r Red
|
||||
* @param g Green
|
||||
* @param b Blue
|
||||
* @return Color
|
||||
*/
|
||||
MWDECL MwLLColor MwLightenColor(MwWidget handle, MwLLColor color, int r, int g, int b);
|
||||
|
||||
/*!
|
||||
* %brief Draws a filled rectangle
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* @brief Draws a filled rectangle
|
||||
* @param handle Widget
|
||||
* @param rect Rectangle area
|
||||
* @param color Color
|
||||
*/
|
||||
MWDECL void MwDrawRect(MwWidget handle, MwRect* rect, MwLLColor color);
|
||||
|
||||
/*!
|
||||
* %brief Draws a filled rectangle that fades to a darker color
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* @brief Draws a filled rectangle that fades to a darker color
|
||||
* @param handle Widget
|
||||
* @param rect Rectangle area
|
||||
* @param color Color
|
||||
*/
|
||||
MWDECL void MwDrawRectFading(MwWidget handle, MwRect* rect, MwLLColor color);
|
||||
|
||||
/*!
|
||||
* %brief Draws a frame
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* %param invert Invert the 3D border color or not
|
||||
* %warning `rect` gets changed to the area of rectangle inside
|
||||
* @brief Draws a frame
|
||||
* @param handle Widget
|
||||
* @param rect Rectangle area
|
||||
* @param color Color
|
||||
* @param invert Invert the 3D border color or not
|
||||
* @warning `rect` gets changed to the area of rectangle inside
|
||||
*/
|
||||
MWDECL void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert);
|
||||
|
||||
/*!
|
||||
* %brief Does the DrawFrame/DrawRect combo used for drawing widget.
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* %param invert Invert the 3D border color or not
|
||||
* %warning `rect` gets changed to the area of rectangle inside
|
||||
* @brief Does the DrawFrame/DrawRect combo used for drawing widget.
|
||||
* @param handle Widget
|
||||
* @param rect Rectangle area
|
||||
* @param color Color
|
||||
* @param invert Invert the 3D border color or not
|
||||
* @warning `rect` gets changed to the area of rectangle inside
|
||||
*/
|
||||
MWDECL void MwDrawWidgetBack(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int border);
|
||||
|
||||
/*!
|
||||
* %brief Draws a triangle
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* %param invert Invert the 3D border color or not
|
||||
* @brief Draws a triangle
|
||||
* @param handle Widget
|
||||
* @param rect Rectangle area
|
||||
* @param color Color
|
||||
* @param invert Invert the 3D border color or not
|
||||
*/
|
||||
MWDECL void MwDrawTriangle(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int direction);
|
||||
|
||||
/*!
|
||||
* %brief Draws a frame with specified border width
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* %param invert Invert the 3D border color or not
|
||||
* %param border Border width
|
||||
* %warning `rect` gets changed to the area of rectangle inside
|
||||
* @brief Draws a frame with specified border width
|
||||
* @param handle Widget
|
||||
* @param rect Rectangle area
|
||||
* @param color Color
|
||||
* @param invert Invert the 3D border color or not
|
||||
* @param border Border width
|
||||
* @warning `rect` gets changed to the area of rectangle inside
|
||||
*/
|
||||
MWDECL void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int border);
|
||||
|
||||
/*!
|
||||
* %brief Draws a text
|
||||
* %param handle Widget
|
||||
* %param point Center point of the text
|
||||
* %param text Text
|
||||
* %param bold Bold
|
||||
* %param align Align
|
||||
* %param color Color
|
||||
* @brief Draws a text
|
||||
* @param handle Widget
|
||||
* @param point Center point of the text
|
||||
* @param text Text
|
||||
* @param bold Bold
|
||||
* @param align Align
|
||||
* @param color Color
|
||||
*/
|
||||
MWDECL void MwDrawText(MwWidget handle, MwPoint* point, const char* text, int bold, int align, MwLLColor color);
|
||||
|
||||
/*!
|
||||
* %brief Creates a pixmap from image
|
||||
* %param handle Widget
|
||||
* %param path Path
|
||||
* %return Pixmap
|
||||
* @brief Creates a pixmap from image
|
||||
* @param handle Widget
|
||||
* @param path Path
|
||||
* @return Pixmap
|
||||
*/
|
||||
MWDECL MwLLPixmap MwLoadImage(MwWidget handle, const char* path);
|
||||
|
||||
/*!
|
||||
* %brief Calculates a text width
|
||||
* %param handle Widget
|
||||
* %param text Text
|
||||
* %return Text width
|
||||
* @brief Calculates a text width
|
||||
* @param handle Widget
|
||||
* @param text Text
|
||||
* @return Text width
|
||||
*/
|
||||
MWDECL int MwTextWidth(MwWidget handle, const char* text);
|
||||
|
||||
/*!
|
||||
* %brief Calculates a text height
|
||||
* %param handle Widget
|
||||
* %param text Text
|
||||
* %return Text height
|
||||
* @brief Calculates a text height
|
||||
* @param handle Widget
|
||||
* @param text Text
|
||||
* @return Text height
|
||||
*/
|
||||
MWDECL int MwTextHeight(MwWidget handle, const char* text);
|
||||
|
||||
/*!
|
||||
* %brief Get color components
|
||||
* %param color Color
|
||||
* %param red Pointer to red color
|
||||
* %param green Pointer to green color
|
||||
* %param blue Pointer to blue color
|
||||
* @brief Get color components
|
||||
* @param color Color
|
||||
* @param red Pointer to red color
|
||||
* @param green Pointer to green color
|
||||
* @param blue Pointer to blue color
|
||||
*/
|
||||
MWDECL void MwGetColor(MwLLColor color, int* red, int* green, int* blue);
|
||||
|
||||
/*!
|
||||
* %brief Creates a pixmap from raw data
|
||||
* %param handle Widget
|
||||
* %param rgb RGBA data
|
||||
* %param width Width
|
||||
* %param height Height
|
||||
* %return Pixmap
|
||||
* @brief Creates a pixmap from raw data
|
||||
* @param handle Widget
|
||||
* @param rgb RGBA data
|
||||
* @param width Width
|
||||
* @param height Height
|
||||
* @return Pixmap
|
||||
*/
|
||||
MWDECL MwLLPixmap MwLoadRaw(MwWidget handle, unsigned char* rgb, int width, int height);
|
||||
|
||||
/*!
|
||||
* %brief Creates a pixmap from XPM data
|
||||
* %param handle Widget
|
||||
* %param data Data
|
||||
* %return Pixmap
|
||||
* @brief Creates a pixmap from XPM data
|
||||
* @param handle Widget
|
||||
* @param data Data
|
||||
* @return Pixmap
|
||||
*/
|
||||
MWDECL MwLLPixmap MwLoadXPM(MwWidget handle, char** data);
|
||||
|
||||
/*!
|
||||
* %brief Creates a pixmap from icon data
|
||||
* %param handle Widget
|
||||
* %param data Data
|
||||
* %return Pixmap
|
||||
* @brief Creates a pixmap from icon data
|
||||
* @param handle Widget
|
||||
* @param data Data
|
||||
* @return Pixmap
|
||||
*/
|
||||
MWDECL MwLLPixmap MwLoadIcon(MwWidget handle, unsigned int* data);
|
||||
|
||||
/* color.c */
|
||||
|
||||
/*!
|
||||
* %brief Parses a color name
|
||||
* %param handle Widget
|
||||
* %param color Color name
|
||||
* %return Color
|
||||
* @brief Parses a color name
|
||||
* @param handle Widget
|
||||
* @param color Color name
|
||||
* @return Color
|
||||
*/
|
||||
MWDECL MwLLColor MwParseColorName(MwWidget handle, const char* color);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Error.h
|
||||
* %brief Error codes
|
||||
* @file Mw/Error.h
|
||||
* @brief Error codes
|
||||
*/
|
||||
#ifndef __MW_ERROR_H__
|
||||
#define __MW_ERROR_H__
|
||||
@@ -9,21 +9,21 @@
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
/*!
|
||||
* %brief Error code enumeration
|
||||
* @brief Error code enumeration
|
||||
*/
|
||||
typedef enum MwErrorEnum_T {
|
||||
/*!
|
||||
* %brief No error
|
||||
* @brief No error
|
||||
*/
|
||||
MwEsuccess = 0,
|
||||
/*!
|
||||
* %brief There was an error
|
||||
* @brief There was an error
|
||||
*/
|
||||
MwEerror,
|
||||
} MwErrorEnum;
|
||||
|
||||
/*!
|
||||
* %brief Get the last error
|
||||
* @brief Get the last error
|
||||
*/
|
||||
MWDECL const char* MwGetLastError(void);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/FileChooser.h
|
||||
* %brief File chooser
|
||||
* @file Mw/FileChooser.h
|
||||
* @brief File chooser
|
||||
*/
|
||||
#ifndef __MW_FILECHOOSER_H__
|
||||
#define __MW_FILECHOOSER_H__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Font.h
|
||||
* %brief Default font
|
||||
* @file Mw/Font.h
|
||||
* @brief Default font
|
||||
*/
|
||||
#ifndef __MW_FONT_H__
|
||||
#define __MW_FONT_H__
|
||||
@@ -14,46 +14,46 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Default font data
|
||||
* @brief Default font data
|
||||
*/
|
||||
MWDECL MwFont MwFontData[];
|
||||
|
||||
/*!
|
||||
* %brief Default bold font data
|
||||
* @brief Default bold font data
|
||||
*/
|
||||
MWDECL MwFont MwBoldFontData[];
|
||||
|
||||
/*!
|
||||
* %brief Default TTF font data
|
||||
* @brief Default TTF font data
|
||||
*/
|
||||
MWDECL unsigned char MwTTFData[];
|
||||
|
||||
/*!
|
||||
* %brief Default TTF font size
|
||||
* @brief Default TTF font size
|
||||
*/
|
||||
MWDECL unsigned int MwTTFDataSize;
|
||||
|
||||
/*!
|
||||
* %brief Default bold TTF font data
|
||||
* @brief Default bold TTF font data
|
||||
*/
|
||||
MWDECL unsigned char MwBoldTTFData[];
|
||||
|
||||
/*!
|
||||
* %brief Default bold TTF font size
|
||||
* @brief Default bold TTF font size
|
||||
*/
|
||||
MWDECL unsigned int MwBoldTTFDataSize;
|
||||
|
||||
/*!
|
||||
* %brief Loads a TTF Font
|
||||
* %param data Data
|
||||
* %param size Data size
|
||||
* %return Font handle
|
||||
* @brief Loads a TTF Font
|
||||
* @param data Data
|
||||
* @param size Data size
|
||||
* @return Font handle
|
||||
*/
|
||||
MWDECL void* MwFontLoad(unsigned char* data, unsigned int size);
|
||||
|
||||
/*!
|
||||
* %brief Frees a font handle
|
||||
* %param handle Handle
|
||||
* @brief Frees a font handle
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MwFontFree(void* handle);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Icon.h
|
||||
* %brief Icon
|
||||
* @file Mw/Icon.h
|
||||
* @brief Icon
|
||||
*/
|
||||
#ifndef __MW_ICON_H__
|
||||
#define __MW_ICON_H__
|
||||
@@ -13,62 +13,62 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Back icon
|
||||
* @brief Back icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconBack[];
|
||||
|
||||
/*!
|
||||
* %brief Computer icon
|
||||
* @brief Computer icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconComputer[];
|
||||
|
||||
/*!
|
||||
* %brief Directory icon
|
||||
* @brief Directory icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconDirectory[];
|
||||
|
||||
/*!
|
||||
* %brief Error icon
|
||||
* @brief Error icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconError[];
|
||||
|
||||
/*!
|
||||
* %brief File icon
|
||||
* @brief File icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconFile[];
|
||||
|
||||
/*!
|
||||
* %brief Forward icon
|
||||
* @brief Forward icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconForward[];
|
||||
|
||||
/*!
|
||||
* %brief Info icon
|
||||
* @brief Info icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconInfo[];
|
||||
|
||||
/*!
|
||||
* %brief News icon
|
||||
* @brief News icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconNews[];
|
||||
|
||||
/*!
|
||||
* %brief Note icon
|
||||
* @brief Note icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconNote[];
|
||||
|
||||
/*!
|
||||
* %brief Search icon
|
||||
* @brief Search icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconSearch[];
|
||||
|
||||
/*!
|
||||
* %brief Up icon
|
||||
* @brief Up icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconUp[];
|
||||
|
||||
/*!
|
||||
* %brief Warning icon
|
||||
* @brief Warning icon
|
||||
*/
|
||||
MWDECL unsigned int MwIconWarning[];
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/LowLevel.h
|
||||
* %brief Low-level drawing API
|
||||
* %warning This is used internally
|
||||
* @file Mw/LowLevel.h
|
||||
* @brief Low-level drawing API
|
||||
* @warning This is used internally
|
||||
*/
|
||||
#ifndef __MW_LOWLEVEL_H__
|
||||
#define __MW_LOWLEVEL_H__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/MachDep.h
|
||||
* %brief Machine dependent headers and macros
|
||||
* @file Mw/MachDep.h
|
||||
* @brief Machine dependent headers and macros
|
||||
*/
|
||||
#ifndef __MW_MACHDEP_H__
|
||||
#define __MW_MACHDEP_H__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/MessageBox.h
|
||||
* %brief Message box
|
||||
* @file Mw/MessageBox.h
|
||||
* @brief Message box
|
||||
*/
|
||||
#ifndef __MW_MESSAGEBOX_H__
|
||||
#define __MW_MESSAGEBOX_H__
|
||||
@@ -14,25 +14,25 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Creates a message box
|
||||
* %param handle Widget
|
||||
* %param text Text
|
||||
* %param title Title text
|
||||
* %param flag Flag
|
||||
* %return Widget
|
||||
* @brief Creates a message box
|
||||
* @param handle Widget
|
||||
* @param text Text
|
||||
* @param title Title text
|
||||
* @param flag Flag
|
||||
* @return Widget
|
||||
*/
|
||||
MWDECL MwWidget MwMessageBox(MwWidget handle, const char* text, const char* title, unsigned int flag);
|
||||
|
||||
/*!
|
||||
* %brief Gets a child of the message box
|
||||
* %param handle Widget
|
||||
* %param child Child
|
||||
* @brief Gets a child of the message box
|
||||
* @param handle Widget
|
||||
* @param child Child
|
||||
*/
|
||||
MWDECL MwWidget MwMessageBoxGetChild(MwWidget handle, int child);
|
||||
|
||||
/*!
|
||||
* %brief Destroys the message box
|
||||
* %param handle Widget
|
||||
* @brief Destroys the message box
|
||||
* @param handle Widget
|
||||
*/
|
||||
MWDECL void MwMessageBoxDestroy(MwWidget handle);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Milsko.h
|
||||
* %brief Includes all headers
|
||||
* @file Mw/Milsko.h
|
||||
* @brief Includes all headers
|
||||
*/
|
||||
#ifndef __MW_MILSKO_H__
|
||||
#define __MW_MILSKO_H__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/String.h
|
||||
* %brief String utilities
|
||||
* @file Mw/String.h
|
||||
* @brief String utilities
|
||||
*/
|
||||
#ifndef __MW_STRING_H__
|
||||
#define __MW_STRING_H__
|
||||
@@ -14,31 +14,31 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Duplicates a string
|
||||
* %param str String
|
||||
* %return String
|
||||
* @brief Duplicates a string
|
||||
* @param str String
|
||||
* @return String
|
||||
*/
|
||||
MWDECL char* MwStringDupliacte(const char* str);
|
||||
|
||||
/*!
|
||||
* %brief Concatenates 2 strings
|
||||
* %param str1 String
|
||||
* %param str2 String
|
||||
* %return String
|
||||
* @brief Concatenates 2 strings
|
||||
* @param str1 String
|
||||
* @param str2 String
|
||||
* @return String
|
||||
*/
|
||||
MWDECL char* MwStringConcat(const char* str1, const char* str2);
|
||||
|
||||
/*!
|
||||
* %brief Converts size to string
|
||||
* %param out Output
|
||||
* %param size Size
|
||||
* @brief Converts size to string
|
||||
* @param out Output
|
||||
* @param size Size
|
||||
*/
|
||||
MWDECL void MwStringSize(char* out, MwOffset size);
|
||||
|
||||
/*!
|
||||
* %brief Converts time to string
|
||||
* %param out Output
|
||||
* %param t Time
|
||||
* @brief Converts time to string
|
||||
* @param out Output
|
||||
* @param t Time
|
||||
*/
|
||||
MWDECL void MwStringTime(char* out, time_t t);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/StringDefs.h
|
||||
* %brief String definitions for property
|
||||
* @file Mw/StringDefs.h
|
||||
* @brief String definitions for property
|
||||
*/
|
||||
#ifndef __MW_STRINGDEFS_H__
|
||||
#define __MW_STRINGDEFS_H__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/TypeDefs.h
|
||||
* %brief Type definitions
|
||||
* @file Mw/TypeDefs.h
|
||||
* @brief Type definitions
|
||||
*/
|
||||
#ifndef __MW_TYPEDEFS_H__
|
||||
#define __MW_TYPEDEFS_H__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Unicode.h
|
||||
* %brief Handles UTF8 stuff
|
||||
* @file Mw/Unicode.h
|
||||
* @brief Handles UTF8 stuff
|
||||
*/
|
||||
#ifndef __MW_UNICODE_H__
|
||||
#define __MW_UNICODE_H__
|
||||
@@ -14,36 +14,36 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Converts UTF-8 to UTF-32
|
||||
* %brief input Input
|
||||
* %brief output Output
|
||||
* %return Bytes this multibyte takes
|
||||
* @brief Converts UTF-8 to UTF-32
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this multibyte takes
|
||||
*/
|
||||
MWDECL int MwUTF8ToUTF32(const char* input, int* output);
|
||||
|
||||
/*!
|
||||
* %brief Calculates UTF-8 string length
|
||||
* %brief input Input
|
||||
* %return Length
|
||||
* @brief Calculates UTF-8 string length
|
||||
* @brief input Input
|
||||
* @return Length
|
||||
*/
|
||||
MWDECL int MwUTF8Length(const char* input);
|
||||
|
||||
/*!
|
||||
* %brief Copies UTF-8 string to other string
|
||||
* %brief src Source
|
||||
* %brief srcskip Length to be skipped
|
||||
* %brief dst Destination
|
||||
* %brief dstskip Length to be skipped
|
||||
* %brief len Length
|
||||
* %return Copied length in bytes
|
||||
* @brief Copies UTF-8 string to other string
|
||||
* @brief src Source
|
||||
* @brief srcskip Length to be skipped
|
||||
* @brief dst Destination
|
||||
* @brief dstskip Length to be skipped
|
||||
* @brief len Length
|
||||
* @return Copied length in bytes
|
||||
*/
|
||||
MWDECL int MwUTF8Copy(const char* src, int srcskip, char* dst, int dstskip, int len);
|
||||
|
||||
/*!
|
||||
* %brief Converts UTF-32 to UTF-8
|
||||
* %brief input Input
|
||||
* %brief output Output
|
||||
* %return Bytes this wide byte takes
|
||||
* @brief Converts UTF-32 to UTF-8
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this wide byte takes
|
||||
*/
|
||||
MWDECL int MwUTF32ToUTF8(int input, char* output);
|
||||
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Version.h
|
||||
* %brief Version informations
|
||||
* @file Mw/Version.h
|
||||
* @brief Version informations
|
||||
*/
|
||||
#ifndef __MW_VERSION_H__
|
||||
#define __MW_VERSION_H__
|
||||
|
||||
/*!
|
||||
* %brief Major version
|
||||
* @brief Major version
|
||||
*/
|
||||
#define MwMAJOR 0
|
||||
|
||||
/*!
|
||||
* %brief Minor version
|
||||
* @brief Minor version
|
||||
*/
|
||||
#define MwMINOR 0
|
||||
|
||||
/*!
|
||||
* %brief Version in string
|
||||
* @brief Version in string
|
||||
*/
|
||||
#define MwVERSION "pre-1.0"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Button.h
|
||||
* %brief Button widget
|
||||
* @file Mw/Widget/Button.h
|
||||
* @brief Button widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_BUTTON_H__
|
||||
#define __MW_WIDGET_BUTTON_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Button widget class
|
||||
* @brief Button widget class
|
||||
*/
|
||||
MWDECL MwClass MwButtonClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id: CheckBox.h 206 2025-10-07 15:10:46Z nishi $ */
|
||||
/*!
|
||||
* %file Mw/Widget/CheckBox.h
|
||||
* %brief CheckBox widget
|
||||
* @file Mw/Widget/CheckBox.h
|
||||
* @brief CheckBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CHECKBOX_H__
|
||||
#define __MW_WIDGET_CHECKBOX_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief CheckBox widget class
|
||||
* @brief CheckBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwCheckBoxClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Entry.h
|
||||
* %brief Entry widget
|
||||
* @file Mw/Widget/Entry.h
|
||||
* @brief Entry widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_ENTRY_H__
|
||||
#define __MW_WIDGET_ENTRY_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Entry widget class
|
||||
* @brief Entry widget class
|
||||
*/
|
||||
MWDECL MwClass MwEntryClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Frame.h
|
||||
* %brief Frame widget
|
||||
* @file Mw/Widget/Frame.h
|
||||
* @brief Frame widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_FRAME_H__
|
||||
#define __MW_WIDGET_FRAME_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Frame widget class
|
||||
* @brief Frame widget class
|
||||
*/
|
||||
MWDECL MwClass MwFrameClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Image.h
|
||||
* %brief Image widget
|
||||
* @file Mw/Widget/Image.h
|
||||
* @brief Image widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_IMAGE_H__
|
||||
#define __MW_WIDGET_IMAGE_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Image widget class
|
||||
* @brief Image widget class
|
||||
*/
|
||||
MWDECL MwClass MwImageClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Label.h
|
||||
* %brief Label widget
|
||||
* @file Mw/Widget/Label.h
|
||||
* @brief Label widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LABEL_H__
|
||||
#define __MW_WIDGET_LABEL_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Label widget class
|
||||
* @brief Label widget class
|
||||
*/
|
||||
MWDECL MwClass MwLabelClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/ListBox.h
|
||||
* %brief ListBox widget
|
||||
* @file Mw/Widget/ListBox.h
|
||||
* @brief ListBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LISTBOX_H__
|
||||
#define __MW_WIDGET_LISTBOX_H__
|
||||
@@ -15,71 +15,71 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief ListBox widget class
|
||||
* @brief ListBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwListBoxClass;
|
||||
|
||||
/*!
|
||||
* %brief Creates a listbox packet
|
||||
* %return Packet
|
||||
* @brief Creates a listbox packet
|
||||
* @return Packet
|
||||
*/
|
||||
MWDECL MwListBoxPacket* MwListBoxCreatePacket(void);
|
||||
|
||||
/*!
|
||||
* %brief Destroys a listbox packet
|
||||
* %param packet Packet
|
||||
* @brief Destroys a listbox packet
|
||||
* @param packet Packet
|
||||
*/
|
||||
MWDECL void MwListBoxDestroyPacket(MwListBoxPacket* packet);
|
||||
|
||||
/*!
|
||||
* %brief Inserts a new item to a packet
|
||||
* %param packet Packet
|
||||
* %param index Index
|
||||
* %return Index
|
||||
* @brief Inserts a new item to a packet
|
||||
* @param packet Packet
|
||||
* @param index Index
|
||||
* @return Index
|
||||
*/
|
||||
MWDECL int MwListBoxPacketInsert(MwListBoxPacket* packet, int index);
|
||||
|
||||
/*!
|
||||
* %brief Sets a column of item in a packet
|
||||
* %param packet Packet
|
||||
* %param index Index
|
||||
* %param col Column
|
||||
* %param text Text
|
||||
* @brief Sets a column of item in a packet
|
||||
* @param packet Packet
|
||||
* @param index Index
|
||||
* @param col Column
|
||||
* @param text Text
|
||||
*/
|
||||
MWDECL void MwListBoxPacketSet(MwListBoxPacket* packet, int index, int col, const char* text);
|
||||
|
||||
/*!
|
||||
* %brief Sets an icon of item in a packet
|
||||
* %param packet Packet
|
||||
* %param index Index
|
||||
* %param icon Icon
|
||||
* @brief Sets an icon of item in a packet
|
||||
* @param packet Packet
|
||||
* @param index Index
|
||||
* @param icon Icon
|
||||
*/
|
||||
MWDECL void MwListBoxPacketSetIcon(MwListBoxPacket* packet, int index, MwLLPixmap icon);
|
||||
|
||||
/*!
|
||||
* %brief Inserts item on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param packet Packet
|
||||
* @brief Inserts item on the listbox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param packet Packet
|
||||
*/
|
||||
MwInline void MwListBoxInsert(MwWidget handle, int index, void* packet) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxInsert", NULL, index, packet);
|
||||
}
|
||||
|
||||
/*!
|
||||
* %brief Deletes item from the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* @brief Deletes item from the listbox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
*/
|
||||
MwInline void MwListBoxDelete(MwWidget handle, int index) {
|
||||
MwVaWidgetExecute(handle, "mwListboxDelete", NULL, index);
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Gets item from the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %return Item
|
||||
* @brief Gets item from the listbox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @return Item
|
||||
*/
|
||||
MwInline const char* MwListBoxGet(MwWidget handle, int index) {
|
||||
const char* out;
|
||||
@@ -88,18 +88,18 @@ MwInline const char* MwListBoxGet(MwWidget handle, int index) {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Sets an item width of the listbox
|
||||
* %param handle Widget
|
||||
* %param index Column index
|
||||
* %param width Width
|
||||
* @brief Sets an item width of the listbox
|
||||
* @param handle Widget
|
||||
* @param index Column index
|
||||
* @param width Width
|
||||
*/
|
||||
MwInline void MwListBoxSetWidth(MwWidget handle, int index, int width) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetWidth", NULL, index, width);
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Resets the listbox
|
||||
* %param handle Widget
|
||||
* @brief Resets the listbox
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwListBoxReset(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Menu.h
|
||||
* %brief Menu widget
|
||||
* @file Mw/Widget/Menu.h
|
||||
* @brief Menu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_MENU_H__
|
||||
#define __MW_WIDGET_MENU_H__
|
||||
@@ -15,16 +15,16 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Menu widget class
|
||||
* @brief Menu widget class
|
||||
*/
|
||||
MWDECL MwClass MwMenuClass;
|
||||
|
||||
/*!
|
||||
* %brief Adds a menu
|
||||
* %param handle Widget
|
||||
* %param menu Menu
|
||||
* %param name Menu name
|
||||
* %return Menu
|
||||
* @brief Adds a menu
|
||||
* @param handle Widget
|
||||
* @param menu Menu
|
||||
* @param name Menu name
|
||||
* @return Menu
|
||||
*/
|
||||
MwInline MwMenu MwMenuAdd(MwWidget handle, MwMenu menu, const char* name) {
|
||||
MwMenu out;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/NumberEntry.h
|
||||
* %brief NumberEntry widget
|
||||
* @file Mw/Widget/NumberEntry.h
|
||||
* @brief NumberEntry widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_NUMBERENTRY_H__
|
||||
#define __MW_WIDGET_NUMBERENTRY_H__
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief NumberEntry widget class
|
||||
* @brief NumberEntry widget class
|
||||
*/
|
||||
MWDECL MwClass MwNumberEntryClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/OpenGL.h
|
||||
* %brief OpenGL widget
|
||||
* @file Mw/Widget/OpenGL.h
|
||||
* @brief OpenGL widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_OPENGL_H__
|
||||
#define __MW_WIDGET_OPENGL_H__
|
||||
@@ -26,23 +26,23 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief OpenGL widget class
|
||||
* @brief OpenGL widget class
|
||||
*/
|
||||
MWDECL MwClass MwOpenGLClass;
|
||||
|
||||
/*!
|
||||
* %brief Make a widget current OpenGL context
|
||||
* %param handle Widget
|
||||
* @brief Make a widget current OpenGL context
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwOpenGLMakeCurrent(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwOpenGLMakeCurrent", NULL);
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Get a procedure from OpenGL
|
||||
* %param handle Widget
|
||||
* %param name Name
|
||||
* %return Procedure
|
||||
* @brief Get a procedure from OpenGL
|
||||
* @param handle Widget
|
||||
* @param name Name
|
||||
* @return Procedure
|
||||
*/
|
||||
MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
void* out;
|
||||
@@ -51,8 +51,8 @@ MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Swaps the buffer of OpenGL context
|
||||
* %param handle Widget
|
||||
* @brief Swaps the buffer of OpenGL context
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwOpenGLSwapBuffer(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwOpenGLSwapBuffer", NULL);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/ScrollBar.h
|
||||
* %brief ScrollBar widget
|
||||
* @file Mw/Widget/ScrollBar.h
|
||||
* @brief ScrollBar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SCROLLBAR_H__
|
||||
#define __MW_WIDGET_SCROLLBAR_H__
|
||||
@@ -15,14 +15,14 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief ScrollBar widget class
|
||||
* @brief ScrollBar widget class
|
||||
*/
|
||||
MWDECL MwClass MwScrollBarClass;
|
||||
|
||||
/*!
|
||||
* %brief Calculates a visible length of scrollbar
|
||||
* %param handle Widget
|
||||
* %return Visible length
|
||||
* @brief Calculates a visible length of scrollbar
|
||||
* @param handle Widget
|
||||
* @return Visible length
|
||||
*/
|
||||
MwInline int MwScrollBarGetVisibleLength(MwWidget handle) {
|
||||
int out;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/SubMenu.h
|
||||
* %brief SubMenu widget
|
||||
* @file Mw/Widget/SubMenu.h
|
||||
* @brief SubMenu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SUBMENU_H__
|
||||
#define __MW_WIDGET_SUBMENU_H__
|
||||
@@ -15,7 +15,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief SubMenu widget class
|
||||
* @brief SubMenu widget class
|
||||
*/
|
||||
MWDECL MwClass MwSubMenuClass;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Viewport.h
|
||||
* %brief Viewport widget
|
||||
* @file Mw/Widget/Viewport.h
|
||||
* @brief Viewport widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_VIEWPORT_H__
|
||||
#define __MW_WIDGET_VIEWPORT_H__
|
||||
@@ -15,14 +15,14 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Viewport widget class
|
||||
* @brief Viewport widget class
|
||||
*/
|
||||
MWDECL MwClass MwViewportClass;
|
||||
|
||||
/*!
|
||||
* %brief Get parent widget where widgets should be placed
|
||||
* %param handle Widget
|
||||
* %return Widget
|
||||
* @brief Get parent widget where widgets should be placed
|
||||
* @param handle Widget
|
||||
* @return Widget
|
||||
*/
|
||||
MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
MwWidget out;
|
||||
@@ -31,10 +31,10 @@ MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Set viewport size
|
||||
* %param handle Widget
|
||||
* %param w Width
|
||||
* %param h Height
|
||||
* @brief Set viewport size
|
||||
* @param handle Widget
|
||||
* @param w Width
|
||||
* @param h Height
|
||||
*/
|
||||
MwInline void MwViewportSetSize(MwWidget handle, int w, int h) {
|
||||
MwVaWidgetExecute(handle, "mwViewportSetSize", NULL, w, h);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Vulkan.h
|
||||
* %brief Vulkan widget
|
||||
* %warning This header is not documented yet
|
||||
* @file Mw/Widget/Vulkan.h
|
||||
* @brief Vulkan widget
|
||||
* @warning This header is not documented yet
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -29,89 +29,89 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Vulkan widget class
|
||||
* @brief Vulkan widget class
|
||||
*/
|
||||
MWDECL MwClass MwVulkanClass;
|
||||
|
||||
/*!
|
||||
* %brief Add an extension to the list of extensions to enable prior to initialization.
|
||||
* %warning This must be called before MwCreateWidget.
|
||||
* @brief Add an extension to the list of extensions to enable prior to initialization.
|
||||
* @warning This must be called before MwCreateWidget.
|
||||
*/
|
||||
MWDECL void MwVulkanEnableExtension(const char* ext_name);
|
||||
|
||||
/*!
|
||||
* %brief Add an layer to the list of layers to enable prior to initialization.
|
||||
* %warning This must be called before MwCreateWidget.
|
||||
* @brief Add an layer to the list of layers to enable prior to initialization.
|
||||
* @warning This must be called before MwCreateWidget.
|
||||
*/
|
||||
MWDECL void MwVulkanEnableLayer(const char* ext_name);
|
||||
|
||||
/*!
|
||||
* %brief Configuration options that can be passed to setup Vulkan before a widget is created.
|
||||
* @brief Configuration options that can be passed to setup Vulkan before a widget is created.
|
||||
*/
|
||||
typedef struct MwVulkanConfig_T {
|
||||
/*!
|
||||
* %brief Vulkan API version (default: VK_API_VERSION_1_0)
|
||||
* @brief Vulkan API version (default: VK_API_VERSION_1_0)
|
||||
*/
|
||||
uint32_t api_version;
|
||||
/*!
|
||||
* %brief Vulkan version (default: VK_VERSION_1_0)
|
||||
* @brief Vulkan version (default: VK_VERSION_1_0)
|
||||
*/
|
||||
uint32_t vk_version;
|
||||
/*!
|
||||
* %brief Whether or not to enable validation layers (default: false)
|
||||
* @brief Whether or not to enable validation layers (default: false)
|
||||
*/
|
||||
VkBool32 validation_layers;
|
||||
} MwVulkanConfig;
|
||||
|
||||
/*!
|
||||
* %brief Configure Vulkan prior to initializing the widget.
|
||||
* %warning This must be called before MwCreateWidget.
|
||||
* %warning The configuration provided will be used for future initializations of the Vulkan widget (unless it's changed)
|
||||
* @brief Configure Vulkan prior to initializing the widget.
|
||||
* @warning This must be called before MwCreateWidget.
|
||||
* @warning The configuration provided will be used for future initializations of the Vulkan widget (unless it's changed)
|
||||
*/
|
||||
MWDECL void MwVulkanConfigure(MwVulkanConfig cfg);
|
||||
|
||||
/*!
|
||||
* %brief Field that can be gotten from Vulkan.
|
||||
* @brief Field that can be gotten from Vulkan.
|
||||
*/
|
||||
typedef enum MwVulkanField_T {
|
||||
/*!
|
||||
* %brief The address of the vulkan widget's vkGetInstanceProcAddr function (PFN_vkGetInstanceProcAddr)
|
||||
* @brief The address of the vulkan widget's vkGetInstanceProcAddr function (PFN_vkGetInstanceProcAddr)
|
||||
*/
|
||||
MwVulkanField_GetInstanceProcAddr = 0,
|
||||
/*!
|
||||
* %brief The address of the vulkan widget's instance (VkInstance)
|
||||
* @brief The address of the vulkan widget's instance (VkInstance)
|
||||
*/
|
||||
MwVulkanField_Instance,
|
||||
/*!
|
||||
* %brief The address of the vulkan widget's surface (VkSurfaceKHR)
|
||||
* @brief The address of the vulkan widget's surface (VkSurfaceKHR)
|
||||
*/
|
||||
MwVulkanField_Surface,
|
||||
/*!
|
||||
* %brief The address of the vulkan widget's physical device (VkPhysicalDevice)
|
||||
* @brief The address of the vulkan widget's physical device (VkPhysicalDevice)
|
||||
*/
|
||||
MwVulkanField_PhysicalDevice,
|
||||
/*!
|
||||
* %brief The address of the vulkan widget's logical device (VkDevice)
|
||||
* @brief The address of the vulkan widget's logical device (VkDevice)
|
||||
*/
|
||||
MwVulkanField_LogicalDevice,
|
||||
/*!
|
||||
* %brief The address of the index that the vulkan widget uses for the graphics queue (uint32_t *)
|
||||
* @brief The address of the index that the vulkan widget uses for the graphics queue (uint32_t *)
|
||||
*/
|
||||
MwVulkanField_GraphicsQueueIndex,
|
||||
/*!
|
||||
* %brief The address of the index that the vulkan widget uses for the present queue (uint32_t *)
|
||||
* @brief The address of the index that the vulkan widget uses for the present queue (uint32_t *)
|
||||
*/
|
||||
MwVulkanField_PresentQueueIndex,
|
||||
MwVulkanField_GraphicsQueue,
|
||||
/*!
|
||||
* %brief The address of the vulkan widget's graphics queue (VkQueue)
|
||||
* @brief The address of the vulkan widget's graphics queue (VkQueue)
|
||||
*/
|
||||
MwVulkanField_PresentQueue,
|
||||
} MwVulkanField;
|
||||
|
||||
/*!
|
||||
* %brief Function for getting a field from within Vulkan.
|
||||
* %warning Consult the documentation for MwVulkanField to know what type is expected for out.
|
||||
* @brief Function for getting a field from within Vulkan.
|
||||
* @warning Consult the documentation for MwVulkanField to know what type is expected for out.
|
||||
*/
|
||||
MwInline void* MwVulkanGetField(MwWidget handle, MwVulkanField field, MwErrorEnum* out) {
|
||||
void* field_out;
|
||||
@@ -120,7 +120,7 @@ MwInline void* MwVulkanGetField(MwWidget handle, MwVulkanField field, MwErrorEnu
|
||||
};
|
||||
|
||||
/*!
|
||||
* %brief Return whether Vulkan is installed on the target platform.
|
||||
* @brief Return whether Vulkan is installed on the target platform.
|
||||
*/
|
||||
MWDECL VkBool32 MwVulkanSupported(void);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Window.h
|
||||
* %brief Window widget
|
||||
* @file Mw/Widget/Window.h
|
||||
* @brief Window widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_WINDOW_H__
|
||||
#define __MW_WIDGET_WINDOW_H__
|
||||
@@ -15,14 +15,14 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Window widget class
|
||||
* @brief Window widget class
|
||||
*/
|
||||
MWDECL MwClass MwWindowClass;
|
||||
|
||||
/*!
|
||||
* %brief Makes window borderless
|
||||
* %param handle Widget
|
||||
* %param toggle Toggle
|
||||
* @brief Makes window borderless
|
||||
* @param handle Widget
|
||||
* @param toggle Toggle
|
||||
*/
|
||||
MwInline void MwWindowMakeBorderless(MwWidget handle, int toggle) {
|
||||
MwVaWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
|
||||
|
||||
Reference in New Issue
Block a user