generate pkgconfig file (don't commit yet i fucked it up)
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
4b6eae99dc
commit
c705d2b98c
375 changed files with 203503 additions and 203476 deletions
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Box.h
|
||||
* @brief Box widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_BOX_H__
|
||||
#define __MW_WIDGET_BOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Box widget class
|
||||
*/
|
||||
MWDECL MwClass MwBoxClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Box.h
|
||||
* @brief Box widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_BOX_H__
|
||||
#define __MW_WIDGET_BOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Box widget class
|
||||
*/
|
||||
MWDECL MwClass MwBoxClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Button.h
|
||||
* @brief Button widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_BUTTON_H__
|
||||
#define __MW_WIDGET_BUTTON_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Button widget class
|
||||
*/
|
||||
MWDECL MwClass MwButtonClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Button.h
|
||||
* @brief Button widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_BUTTON_H__
|
||||
#define __MW_WIDGET_BUTTON_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Button widget class
|
||||
*/
|
||||
MWDECL MwClass MwButtonClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Calendar.h
|
||||
* @brief Calendar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CALENDAR_H__
|
||||
#define __MW_WIDGET_CALENDAR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Calendar widget class
|
||||
*/
|
||||
MWDECL MwClass MwCalendarClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Calendar.h
|
||||
* @brief Calendar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CALENDAR_H__
|
||||
#define __MW_WIDGET_CALENDAR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Calendar widget class
|
||||
*/
|
||||
MWDECL MwClass MwCalendarClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/CheckBox.h
|
||||
* @brief CheckBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CHECKBOX_H__
|
||||
#define __MW_WIDGET_CHECKBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief CheckBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwCheckBoxClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/CheckBox.h
|
||||
* @brief CheckBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CHECKBOX_H__
|
||||
#define __MW_WIDGET_CHECKBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief CheckBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwCheckBoxClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,48 +1,48 @@
|
|||
/*!
|
||||
* @file Mw/Widget/ComboBox.h
|
||||
* @brief ComboBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_COMBOBOX_H__
|
||||
#define __MW_WIDGET_COMBOBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ComboBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwComboBoxClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds the entry to combobox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param text Text
|
||||
*/
|
||||
MwInline void MwComboBoxAdd(MwWidget handle, int index, const char* text) {
|
||||
MwVaWidgetExecute(handle, "mwComboBoxAdd", NULL, index, text);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets the entry from combobox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @return Text
|
||||
*/
|
||||
MwInline const char* MwComboBoxGet(MwWidget handle, int index) {
|
||||
const char* text;
|
||||
MwVaWidgetExecute(handle, "mwComboBoxGet", (void*)&text, index);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/ComboBox.h
|
||||
* @brief ComboBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_COMBOBOX_H__
|
||||
#define __MW_WIDGET_COMBOBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ComboBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwComboBoxClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds the entry to combobox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param text Text
|
||||
*/
|
||||
MwInline void MwComboBoxAdd(MwWidget handle, int index, const char* text) {
|
||||
MwVaWidgetExecute(handle, "mwComboBoxAdd", NULL, index, text);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets the entry from combobox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @return Text
|
||||
*/
|
||||
MwInline const char* MwComboBoxGet(MwWidget handle, int index) {
|
||||
const char* text;
|
||||
MwVaWidgetExecute(handle, "mwComboBoxGet", (void*)&text, index);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Entry.h
|
||||
* @brief Entry widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_ENTRY_H__
|
||||
#define __MW_WIDGET_ENTRY_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Entry widget class
|
||||
*/
|
||||
MWDECL MwClass MwEntryClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Entry.h
|
||||
* @brief Entry widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_ENTRY_H__
|
||||
#define __MW_WIDGET_ENTRY_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Entry widget class
|
||||
*/
|
||||
MWDECL MwClass MwEntryClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Frame.h
|
||||
* @brief Frame widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_FRAME_H__
|
||||
#define __MW_WIDGET_FRAME_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Frame widget class
|
||||
*/
|
||||
MWDECL MwClass MwFrameClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Frame.h
|
||||
* @brief Frame widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_FRAME_H__
|
||||
#define __MW_WIDGET_FRAME_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Frame widget class
|
||||
*/
|
||||
MWDECL MwClass MwFrameClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Image.h
|
||||
* @brief Image widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_IMAGE_H__
|
||||
#define __MW_WIDGET_IMAGE_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Image widget class
|
||||
*/
|
||||
MWDECL MwClass MwImageClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Image.h
|
||||
* @brief Image widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_IMAGE_H__
|
||||
#define __MW_WIDGET_IMAGE_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Image widget class
|
||||
*/
|
||||
MWDECL MwClass MwImageClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,36 +1,36 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Label.h
|
||||
* @brief Label widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LABEL_H__
|
||||
#define __MW_WIDGET_LABEL_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Label widget class
|
||||
*/
|
||||
MWDECL MwClass MwLabelClass;
|
||||
|
||||
/*!
|
||||
* @brief Sets the custom data for seven segment
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param data Data, `GFEDCBA` as 7-bit value
|
||||
* @note See https://en.wikipedia.org/wiki/File:7_Segment_Display_with_Labeled_Segments.svg for what alphabets mean here
|
||||
* */
|
||||
MwInline void MwLabelSetSevenSegment(MwWidget handle, int index, int data) {
|
||||
MwVaWidgetExecute(handle, "mwLabelSetSevenSegment", NULL, index, data);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Label.h
|
||||
* @brief Label widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LABEL_H__
|
||||
#define __MW_WIDGET_LABEL_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Label widget class
|
||||
*/
|
||||
MWDECL MwClass MwLabelClass;
|
||||
|
||||
/*!
|
||||
* @brief Sets the custom data for seven segment
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param data Data, `GFEDCBA` as 7-bit value
|
||||
* @note See https://en.wikipedia.org/wiki/File:7_Segment_Display_with_Labeled_Segments.svg for what alphabets mean here
|
||||
* */
|
||||
MwInline void MwLabelSetSevenSegment(MwWidget handle, int index, int data) {
|
||||
MwVaWidgetExecute(handle, "mwLabelSetSevenSegment", NULL, index, data);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,100 +1,100 @@
|
|||
/*!
|
||||
* @file Mw/Widget/ListBox.h
|
||||
* @brief ListBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LISTBOX_H__
|
||||
#define __MW_WIDGET_LISTBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ListBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwListBoxClass;
|
||||
|
||||
/*!
|
||||
* @brief Sets item on the listbox
|
||||
* @param handle Widget
|
||||
* @param row Row
|
||||
* @param col Column
|
||||
* @param text Text
|
||||
* @return Index
|
||||
*/
|
||||
MwInline int MwListBoxSet(MwWidget handle, int row, int col, const char* text) {
|
||||
int out;
|
||||
|
||||
MwVaWidgetExecute(handle, "mwListBoxSet", (void*)&out, row, col, text);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the icon of the row
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param icon Icon
|
||||
*/
|
||||
MwInline void MwListBoxSetIcon(MwWidget handle, int index, MwLLPixmap icon) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetIcon", NULL, index, icon);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @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
|
||||
*/
|
||||
MwInline const char* MwListBoxGet(MwWidget handle, int index) {
|
||||
const char* out;
|
||||
MwVaWidgetExecute(handle, "mwListBoxGet", (void*)&out, index);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @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 Sets an item alignment of the listbox
|
||||
* @param handle Widget
|
||||
* @param index Column index
|
||||
* @param alignment Alignment
|
||||
*/
|
||||
MwInline void MwListBoxSetAlignment(MwWidget handle, int index, int alignment) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetAlignment", NULL, index, alignment);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Resets the listbox
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwListBoxReset(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/ListBox.h
|
||||
* @brief ListBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LISTBOX_H__
|
||||
#define __MW_WIDGET_LISTBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ListBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwListBoxClass;
|
||||
|
||||
/*!
|
||||
* @brief Sets item on the listbox
|
||||
* @param handle Widget
|
||||
* @param row Row
|
||||
* @param col Column
|
||||
* @param text Text
|
||||
* @return Index
|
||||
*/
|
||||
MwInline int MwListBoxSet(MwWidget handle, int row, int col, const char* text) {
|
||||
int out;
|
||||
|
||||
MwVaWidgetExecute(handle, "mwListBoxSet", (void*)&out, row, col, text);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the icon of the row
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param icon Icon
|
||||
*/
|
||||
MwInline void MwListBoxSetIcon(MwWidget handle, int index, MwLLPixmap icon) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetIcon", NULL, index, icon);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @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
|
||||
*/
|
||||
MwInline const char* MwListBoxGet(MwWidget handle, int index) {
|
||||
const char* out;
|
||||
MwVaWidgetExecute(handle, "mwListBoxGet", (void*)&out, index);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @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 Sets an item alignment of the listbox
|
||||
* @param handle Widget
|
||||
* @param index Column index
|
||||
* @param alignment Alignment
|
||||
*/
|
||||
MwInline void MwListBoxSetAlignment(MwWidget handle, int index, int alignment) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxSetAlignment", NULL, index, alignment);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Resets the listbox
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwListBoxReset(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwListBoxReset", NULL);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,38 +1,38 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Menu.h
|
||||
* @brief Menu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_MENU_H__
|
||||
#define __MW_WIDGET_MENU_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Menu widget class
|
||||
*/
|
||||
MWDECL MwClass MwMenuClass;
|
||||
|
||||
/*!
|
||||
* @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;
|
||||
MwVaWidgetExecute(handle, "mwMenuAdd", &out, menu, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Menu.h
|
||||
* @brief Menu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_MENU_H__
|
||||
#define __MW_WIDGET_MENU_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Menu widget class
|
||||
*/
|
||||
MWDECL MwClass MwMenuClass;
|
||||
|
||||
/*!
|
||||
* @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;
|
||||
MwVaWidgetExecute(handle, "mwMenuAdd", &out, menu, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/NumberEntry.h
|
||||
* @brief NumberEntry widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_NUMBERENTRY_H__
|
||||
#define __MW_WIDGET_NUMBERENTRY_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief NumberEntry widget class
|
||||
*/
|
||||
MWDECL MwClass MwNumberEntryClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/NumberEntry.h
|
||||
* @brief NumberEntry widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_NUMBERENTRY_H__
|
||||
#define __MW_WIDGET_NUMBERENTRY_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief NumberEntry widget class
|
||||
*/
|
||||
MWDECL MwClass MwNumberEntryClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,73 +1,73 @@
|
|||
/*!
|
||||
* @file Mw/Widget/OpenGL.h
|
||||
* @brief OpenGL widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_OPENGL_H__
|
||||
#define __MW_WIDGET_OPENGL_H__
|
||||
|
||||
#include <Mw/Core.h>
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#if !defined(MW_OPENGL_NO_INCLUDE) && !defined(__gl_h_)
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#elif defined(__APPLE__)
|
||||
#else
|
||||
#include <GL/glx.h>
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glu.h>
|
||||
#else
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#endif
|
||||
|
||||
#ifndef GLAPIENTRY
|
||||
#define GLAPIENTRY APIENTRY
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief OpenGL widget class
|
||||
*/
|
||||
MWDECL MwClass MwOpenGLClass;
|
||||
|
||||
/*!
|
||||
* @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
|
||||
*/
|
||||
MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
void* out;
|
||||
MwVaWidgetExecute(handle, "mwOpenGLGetProcAddress", &out, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Swaps the buffer of OpenGL context
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwOpenGLSwapBuffer(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwOpenGLSwapBuffer", NULL);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/OpenGL.h
|
||||
* @brief OpenGL widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_OPENGL_H__
|
||||
#define __MW_WIDGET_OPENGL_H__
|
||||
|
||||
#include <Mw/Core.h>
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#if !defined(MW_OPENGL_NO_INCLUDE) && !defined(__gl_h_)
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#elif defined(__APPLE__)
|
||||
#else
|
||||
#include <GL/glx.h>
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glu.h>
|
||||
#else
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#endif
|
||||
|
||||
#ifndef GLAPIENTRY
|
||||
#define GLAPIENTRY APIENTRY
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief OpenGL widget class
|
||||
*/
|
||||
MWDECL MwClass MwOpenGLClass;
|
||||
|
||||
/*!
|
||||
* @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
|
||||
*/
|
||||
MwInline void* MwOpenGLGetProcAddress(MwWidget handle, const char* name) {
|
||||
void* out;
|
||||
MwVaWidgetExecute(handle, "mwOpenGLGetProcAddress", &out, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Swaps the buffer of OpenGL context
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwOpenGLSwapBuffer(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwOpenGLSwapBuffer", NULL);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/ProgressBar.h
|
||||
* @brief ProgressBar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_PROGRESSBAR_H__
|
||||
#define __MW_WIDGET_PROGRESSBAR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ProgressBar widget class
|
||||
*/
|
||||
MWDECL MwClass MwProgressBarClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/ProgressBar.h
|
||||
* @brief ProgressBar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_PROGRESSBAR_H__
|
||||
#define __MW_WIDGET_PROGRESSBAR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ProgressBar widget class
|
||||
*/
|
||||
MWDECL MwClass MwProgressBarClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/RadioBox.h
|
||||
* @brief RadioBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_RADIOBOX_H__
|
||||
#define __MW_WIDGET_RADIOBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief RadioBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwRadioBoxClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/RadioBox.h
|
||||
* @brief RadioBox widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_RADIOBOX_H__
|
||||
#define __MW_WIDGET_RADIOBOX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief RadioBox widget class
|
||||
*/
|
||||
MWDECL MwClass MwRadioBoxClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,36 +1,36 @@
|
|||
/*!
|
||||
* @file Mw/Widget/ScrollBar.h
|
||||
* @brief ScrollBar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SCROLLBAR_H__
|
||||
#define __MW_WIDGET_SCROLLBAR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ScrollBar widget class
|
||||
*/
|
||||
MWDECL MwClass MwScrollBarClass;
|
||||
|
||||
/*!
|
||||
* @brief Calculates a visible length of scrollbar
|
||||
* @param handle Widget
|
||||
* @return Visible length
|
||||
*/
|
||||
MwInline int MwScrollBarGetVisibleLength(MwWidget handle) {
|
||||
int out;
|
||||
MwVaWidgetExecute(handle, "mwScrollBarGetVisibleLength", &out, NULL);
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/ScrollBar.h
|
||||
* @brief ScrollBar widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SCROLLBAR_H__
|
||||
#define __MW_WIDGET_SCROLLBAR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief ScrollBar widget class
|
||||
*/
|
||||
MWDECL MwClass MwScrollBarClass;
|
||||
|
||||
/*!
|
||||
* @brief Calculates a visible length of scrollbar
|
||||
* @param handle Widget
|
||||
* @return Visible length
|
||||
*/
|
||||
MwInline int MwScrollBarGetVisibleLength(MwWidget handle) {
|
||||
int out;
|
||||
MwVaWidgetExecute(handle, "mwScrollBarGetVisibleLength", &out, NULL);
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Separator.h
|
||||
* @brief Separator widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SEPARATOR_H__
|
||||
#define __MW_WIDGET_SEPARATOR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Separator widget class
|
||||
*/
|
||||
MWDECL MwClass MwSeparatorClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Separator.h
|
||||
* @brief Separator widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SEPARATOR_H__
|
||||
#define __MW_WIDGET_SEPARATOR_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Separator widget class
|
||||
*/
|
||||
MWDECL MwClass MwSeparatorClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,46 +1,46 @@
|
|||
/*!
|
||||
* @file Mw/Widget/SubMenu.h
|
||||
* @brief SubMenu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SUBMENU_H__
|
||||
#define __MW_WIDGET_SUBMENU_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief SubMenu widget class
|
||||
*/
|
||||
MWDECL MwClass MwSubMenuClass;
|
||||
|
||||
/*!
|
||||
* @brief Makes submenu appear
|
||||
* @param handle Handle
|
||||
* @param menu Menu
|
||||
* @param point Point
|
||||
* @param diff_calc Toggles different way to calculate positiion
|
||||
*/
|
||||
MwInline void MwSubMenuAppear(MwWidget handle, MwMenu menu, MwPoint* point, int diff_calc) {
|
||||
MwVaWidgetExecute(handle, "mwSubMenuAppear", NULL, menu, point, diff_calc);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Calculates the size of submenu
|
||||
* @param handle Handle
|
||||
* @param menu Menu
|
||||
* @param rect Size
|
||||
*/
|
||||
MwInline void MwSubMenuGetSize(MwWidget handle, MwMenu menu, MwRect* rect) {
|
||||
MwVaWidgetExecute(handle, "mwSubMenuGetSize", NULL, menu, rect);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/SubMenu.h
|
||||
* @brief SubMenu widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SUBMENU_H__
|
||||
#define __MW_WIDGET_SUBMENU_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief SubMenu widget class
|
||||
*/
|
||||
MWDECL MwClass MwSubMenuClass;
|
||||
|
||||
/*!
|
||||
* @brief Makes submenu appear
|
||||
* @param handle Handle
|
||||
* @param menu Menu
|
||||
* @param point Point
|
||||
* @param diff_calc Toggles different way to calculate positiion
|
||||
*/
|
||||
MwInline void MwSubMenuAppear(MwWidget handle, MwMenu menu, MwPoint* point, int diff_calc) {
|
||||
MwVaWidgetExecute(handle, "mwSubMenuAppear", NULL, menu, point, diff_calc);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Calculates the size of submenu
|
||||
* @param handle Handle
|
||||
* @param menu Menu
|
||||
* @param rect Size
|
||||
*/
|
||||
MwInline void MwSubMenuGetSize(MwWidget handle, MwMenu menu, MwRect* rect) {
|
||||
MwVaWidgetExecute(handle, "mwSubMenuGetSize", NULL, menu, rect);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,36 +1,36 @@
|
|||
/*!
|
||||
* @file Mw/Widget/SubWindow.h
|
||||
* @brief SubWindow widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SUBWINDOW_H__
|
||||
#define __MW_WIDGET_SUBWINDOW_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief SubWindow widget class
|
||||
*/
|
||||
MWDECL MwClass MwSubWindowClass;
|
||||
|
||||
/*!
|
||||
* @brief Get parent widget where widgets should be placed
|
||||
* @param handle Widget
|
||||
* @return Widget
|
||||
*/
|
||||
MwInline MwWidget MwSubWindowGetFrame(MwWidget handle) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwSubWindowGetFrame", &out);
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/SubWindow.h
|
||||
* @brief SubWindow widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_SUBWINDOW_H__
|
||||
#define __MW_WIDGET_SUBWINDOW_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief SubWindow widget class
|
||||
*/
|
||||
MWDECL MwClass MwSubWindowClass;
|
||||
|
||||
/*!
|
||||
* @brief Get parent widget where widgets should be placed
|
||||
* @param handle Widget
|
||||
* @return Widget
|
||||
*/
|
||||
MwInline MwWidget MwSubWindowGetFrame(MwWidget handle) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwSubWindowGetFrame", &out);
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,59 +1,59 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Tab.h
|
||||
* @brief Tab widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_TAB_H__
|
||||
#define __MW_WIDGET_TAB_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Tab widget class
|
||||
*/
|
||||
MWDECL MwClass MwTabClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds a tab
|
||||
* @param handle Widget
|
||||
* @param name Tab name
|
||||
* @return Frame
|
||||
*/
|
||||
MwInline MwWidget MwTabAdd(MwWidget handle, const char* name) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwTabAdd", &out, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets a tab frame
|
||||
* @param handle Widget
|
||||
* @param name Tab name
|
||||
* @return Frame
|
||||
*/
|
||||
MwInline MwWidget MwTabGetFrame(MwWidget handle, const char* name) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwTabGetFrame", &out, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Focus on a tab frame
|
||||
* @param handle Widget
|
||||
* @param name Tab name
|
||||
* @return Frame
|
||||
*/
|
||||
MwInline void MwTabFocus(MwWidget handle, const char* name) {
|
||||
MwVaWidgetExecute(handle, "mwTabFocus", NULL, name);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Tab.h
|
||||
* @brief Tab widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_TAB_H__
|
||||
#define __MW_WIDGET_TAB_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Tab widget class
|
||||
*/
|
||||
MWDECL MwClass MwTabClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds a tab
|
||||
* @param handle Widget
|
||||
* @param name Tab name
|
||||
* @return Frame
|
||||
*/
|
||||
MwInline MwWidget MwTabAdd(MwWidget handle, const char* name) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwTabAdd", &out, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets a tab frame
|
||||
* @param handle Widget
|
||||
* @param name Tab name
|
||||
* @return Frame
|
||||
*/
|
||||
MwInline MwWidget MwTabGetFrame(MwWidget handle, const char* name) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwTabGetFrame", &out, name);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Focus on a tab frame
|
||||
* @param handle Widget
|
||||
* @param name Tab name
|
||||
* @return Frame
|
||||
*/
|
||||
MwInline void MwTabFocus(MwWidget handle, const char* name) {
|
||||
MwVaWidgetExecute(handle, "mwTabFocus", NULL, name);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Table.h
|
||||
* @brief Table widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_TABLE_H__
|
||||
#define __MW_WIDGET_TABLE_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Table widget class
|
||||
*/
|
||||
MWDECL MwClass MwTableClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Table.h
|
||||
* @brief Table widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_TABLE_H__
|
||||
#define __MW_WIDGET_TABLE_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Table widget class
|
||||
*/
|
||||
MWDECL MwClass MwTableClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,110 +1,110 @@
|
|||
/*!
|
||||
* @file Mw/Widget/TreeView.h
|
||||
* @brief TreeView widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_TREEVIEW_H__
|
||||
#define __MW_WIDGET_TREEVIEW_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief TreeView widget class
|
||||
*/
|
||||
MWDECL MwClass MwTreeViewClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds item to the treeview
|
||||
* @param handle Widget
|
||||
* @parma parent Parent
|
||||
* @parma pixmap Pixmap
|
||||
* @param item Item
|
||||
*/
|
||||
MwInline void* MwTreeViewAdd(MwWidget handle, void* parent, MwLLPixmap pixmap, const char* item) {
|
||||
void* out;
|
||||
MwVaWidgetExecute(handle, "mwTreeViewAdd", &out, parent, pixmap, item);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Deletes item from the treeview
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
*/
|
||||
MwInline void MwTreeViewDelete(MwWidget handle, void* item) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewDelete", NULL, item);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Resets the treeview
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwTreeViewReset(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewReset", NULL);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets item from the treeview
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @return Item
|
||||
*/
|
||||
MwInline const char* MwTreeViewGet(MwWidget handle, void* item) {
|
||||
const char* out;
|
||||
MwVaWidgetExecute(handle, "mwTreeViewGet", (void*)&out, item);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the label of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @param label Label
|
||||
*/
|
||||
MwInline void MwTreeViewSetLabel(MwWidget handle, void* item, const char* label) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewSetLabel", NULL, item, label);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the pixmap of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @param pixmap Pixmap
|
||||
*/
|
||||
MwInline void MwTreeViewSetPixmap(MwWidget handle, void* item, MwLLPixmap pixmap) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewSetPixmap", NULL, item, pixmap);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the opened state of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @param opened Opened or not
|
||||
*/
|
||||
MwInline void MwTreeViewSetOpened(MwWidget handle, void* item, int opened) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewSetOpened", NULL, item, opened);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets the opened state of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @return Opened or not
|
||||
*/
|
||||
MwInline int MwTreeViewGetOpened(MwWidget handle, void* item) {
|
||||
int out;
|
||||
MwVaWidgetExecute(handle, "mwTreeViewGetOpened", (void*)&out, item);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/TreeView.h
|
||||
* @brief TreeView widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_TREEVIEW_H__
|
||||
#define __MW_WIDGET_TREEVIEW_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief TreeView widget class
|
||||
*/
|
||||
MWDECL MwClass MwTreeViewClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds item to the treeview
|
||||
* @param handle Widget
|
||||
* @parma parent Parent
|
||||
* @parma pixmap Pixmap
|
||||
* @param item Item
|
||||
*/
|
||||
MwInline void* MwTreeViewAdd(MwWidget handle, void* parent, MwLLPixmap pixmap, const char* item) {
|
||||
void* out;
|
||||
MwVaWidgetExecute(handle, "mwTreeViewAdd", &out, parent, pixmap, item);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Deletes item from the treeview
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
*/
|
||||
MwInline void MwTreeViewDelete(MwWidget handle, void* item) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewDelete", NULL, item);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Resets the treeview
|
||||
* @param handle Widget
|
||||
*/
|
||||
MwInline void MwTreeViewReset(MwWidget handle) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewReset", NULL);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets item from the treeview
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @return Item
|
||||
*/
|
||||
MwInline const char* MwTreeViewGet(MwWidget handle, void* item) {
|
||||
const char* out;
|
||||
MwVaWidgetExecute(handle, "mwTreeViewGet", (void*)&out, item);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the label of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @param label Label
|
||||
*/
|
||||
MwInline void MwTreeViewSetLabel(MwWidget handle, void* item, const char* label) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewSetLabel", NULL, item, label);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the pixmap of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @param pixmap Pixmap
|
||||
*/
|
||||
MwInline void MwTreeViewSetPixmap(MwWidget handle, void* item, MwLLPixmap pixmap) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewSetPixmap", NULL, item, pixmap);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Sets the opened state of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @param opened Opened or not
|
||||
*/
|
||||
MwInline void MwTreeViewSetOpened(MwWidget handle, void* item, int opened) {
|
||||
MwVaWidgetExecute(handle, "mwTreeViewSetOpened", NULL, item, opened);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets the opened state of ithe item
|
||||
* @param handle Widget
|
||||
* @param item Item
|
||||
* @return Opened or not
|
||||
*/
|
||||
MwInline int MwTreeViewGetOpened(MwWidget handle, void* item) {
|
||||
int out;
|
||||
MwVaWidgetExecute(handle, "mwTreeViewGetOpened", (void*)&out, item);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,46 +1,46 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Viewport.h
|
||||
* @brief Viewport widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_VIEWPORT_H__
|
||||
#define __MW_WIDGET_VIEWPORT_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Viewport widget class
|
||||
*/
|
||||
MWDECL MwClass MwViewportClass;
|
||||
|
||||
/*!
|
||||
* @brief Get parent widget where widgets should be placed
|
||||
* @param handle Widget
|
||||
* @return Widget
|
||||
*/
|
||||
MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwViewportGetViewport", &out);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @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);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Viewport.h
|
||||
* @brief Viewport widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_VIEWPORT_H__
|
||||
#define __MW_WIDGET_VIEWPORT_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Viewport widget class
|
||||
*/
|
||||
MWDECL MwClass MwViewportClass;
|
||||
|
||||
/*!
|
||||
* @brief Get parent widget where widgets should be placed
|
||||
* @param handle Widget
|
||||
* @return Widget
|
||||
*/
|
||||
MwInline MwWidget MwViewportGetViewport(MwWidget handle) {
|
||||
MwWidget out;
|
||||
MwVaWidgetExecute(handle, "mwViewportGetViewport", &out);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @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);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,112 +1,112 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Vulkan.h
|
||||
* @brief Vulkan widget
|
||||
* @warning This header is not documented yet
|
||||
*/
|
||||
|
||||
/**
|
||||
* ioixd maintains this file. nishi doesn't know vulkan at all
|
||||
*/
|
||||
|
||||
#ifndef __MW_WIDGET_VULKAN_H__
|
||||
#define __MW_WIDGET_VULKAN_H__
|
||||
|
||||
#if defined(MW_VULKAN) && !defined(_WIN32) && !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
|
||||
#error Vulkan is unsupported on the requested platform.
|
||||
#endif
|
||||
|
||||
#if !defined(MW_VULKAN_NO_INCLUDE)
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#endif
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Vulkan widget class
|
||||
*/
|
||||
MWDECL MwClass MwVulkanClass;
|
||||
|
||||
/*!
|
||||
* @brief Configuration options that can be passed to setup parts of the Vulkan widget.
|
||||
*/
|
||||
typedef struct _MwVulkanConfig {
|
||||
/*!
|
||||
* @brief Vulkan API version (default: VK_API_VERSION_1_0)
|
||||
*/
|
||||
MwU32 api_version;
|
||||
/*!
|
||||
* @brief Vulkan version (default: VK_VERSION_1_0)
|
||||
*/
|
||||
MwU32 vk_version;
|
||||
/*!
|
||||
* @brief Whether or not to enable validation layers (default: false)
|
||||
*/
|
||||
int validation_layers;
|
||||
} MwVulkanConfig;
|
||||
|
||||
/*!
|
||||
* @brief Field that can be gotten from Vulkan.
|
||||
*/
|
||||
enum MwVULKANFIELD {
|
||||
/*!
|
||||
* @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)
|
||||
*/
|
||||
MwVULKANFIELD_INSTANCE,
|
||||
/*!
|
||||
* @brief The address of the vulkan widget's surface (VkSurfaceKHR)
|
||||
*/
|
||||
MwVULKANFIELD_SURFACE,
|
||||
/*!
|
||||
* @brief The address of the vulkan widget's physical device (VkPhysicalDevice)
|
||||
*/
|
||||
MwVULKANFIELD_PHYSICALDEVICE,
|
||||
/*!
|
||||
* @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 *)
|
||||
*/
|
||||
MwVULKANFIELD_GRAPHICSQUEUEINDEX,
|
||||
/*!
|
||||
* @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)
|
||||
*/
|
||||
MwVULKANFIELD_PRESENTQUEUE,
|
||||
};
|
||||
|
||||
/*!
|
||||
* @brief Function for getting a field from within Vulkan.
|
||||
* @note Consult the documentation for MwVULKANFIELD to know what type is expected for output.
|
||||
*/
|
||||
MwInline void* MwVulkanGetField(MwWidget handle, int field, int* err) {
|
||||
void* field_out;
|
||||
MwVaWidgetExecute(handle, "mwVulkanGetField", &field_out, field, err);
|
||||
return field_out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Return whether Vulkan is installed on the target platform.
|
||||
*/
|
||||
MWDECL int MWAPI MwVulkanSupported(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Vulkan.h
|
||||
* @brief Vulkan widget
|
||||
* @warning This header is not documented yet
|
||||
*/
|
||||
|
||||
/**
|
||||
* ioixd maintains this file. nishi doesn't know vulkan at all
|
||||
*/
|
||||
|
||||
#ifndef __MW_WIDGET_VULKAN_H__
|
||||
#define __MW_WIDGET_VULKAN_H__
|
||||
|
||||
#if defined(MW_VULKAN) && !defined(_WIN32) && !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
|
||||
#error Vulkan is unsupported on the requested platform.
|
||||
#endif
|
||||
|
||||
#if !defined(MW_VULKAN_NO_INCLUDE)
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#endif
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Vulkan widget class
|
||||
*/
|
||||
MWDECL MwClass MwVulkanClass;
|
||||
|
||||
/*!
|
||||
* @brief Configuration options that can be passed to setup parts of the Vulkan widget.
|
||||
*/
|
||||
typedef struct _MwVulkanConfig {
|
||||
/*!
|
||||
* @brief Vulkan API version (default: VK_API_VERSION_1_0)
|
||||
*/
|
||||
MwU32 api_version;
|
||||
/*!
|
||||
* @brief Vulkan version (default: VK_VERSION_1_0)
|
||||
*/
|
||||
MwU32 vk_version;
|
||||
/*!
|
||||
* @brief Whether or not to enable validation layers (default: false)
|
||||
*/
|
||||
int validation_layers;
|
||||
} MwVulkanConfig;
|
||||
|
||||
/*!
|
||||
* @brief Field that can be gotten from Vulkan.
|
||||
*/
|
||||
enum MwVULKANFIELD {
|
||||
/*!
|
||||
* @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)
|
||||
*/
|
||||
MwVULKANFIELD_INSTANCE,
|
||||
/*!
|
||||
* @brief The address of the vulkan widget's surface (VkSurfaceKHR)
|
||||
*/
|
||||
MwVULKANFIELD_SURFACE,
|
||||
/*!
|
||||
* @brief The address of the vulkan widget's physical device (VkPhysicalDevice)
|
||||
*/
|
||||
MwVULKANFIELD_PHYSICALDEVICE,
|
||||
/*!
|
||||
* @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 *)
|
||||
*/
|
||||
MwVULKANFIELD_GRAPHICSQUEUEINDEX,
|
||||
/*!
|
||||
* @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)
|
||||
*/
|
||||
MwVULKANFIELD_PRESENTQUEUE,
|
||||
};
|
||||
|
||||
/*!
|
||||
* @brief Function for getting a field from within Vulkan.
|
||||
* @note Consult the documentation for MwVULKANFIELD to know what type is expected for output.
|
||||
*/
|
||||
MwInline void* MwVulkanGetField(MwWidget handle, int field, int* err) {
|
||||
void* field_out;
|
||||
MwVaWidgetExecute(handle, "mwVulkanGetField", &field_out, field, err);
|
||||
return field_out;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Return whether Vulkan is installed on the target platform.
|
||||
*/
|
||||
MWDECL int MWAPI MwVulkanSupported(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,34 +1,34 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Window.h
|
||||
* @brief Window widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_WINDOW_H__
|
||||
#define __MW_WIDGET_WINDOW_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Window widget class
|
||||
*/
|
||||
MWDECL MwClass MwWindowClass;
|
||||
|
||||
/*!
|
||||
* @brief Makes window borderless
|
||||
* @param handle Widget
|
||||
* @param toggle Toggle
|
||||
*/
|
||||
MwInline void MwWindowMakeBorderless(MwWidget handle, int toggle) {
|
||||
MwVaWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*!
|
||||
* @file Mw/Widget/Window.h
|
||||
* @brief Window widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_WINDOW_H__
|
||||
#define __MW_WIDGET_WINDOW_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/Core.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Window widget class
|
||||
*/
|
||||
MWDECL MwClass MwWindowClass;
|
||||
|
||||
/*!
|
||||
* @brief Makes window borderless
|
||||
* @param handle Widget
|
||||
* @param toggle Toggle
|
||||
*/
|
||||
MwInline void MwWindowMakeBorderless(MwWidget handle, int toggle) {
|
||||
MwVaWidgetExecute(handle, "mwWindowMakeBorderless", NULL, toggle);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue