git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@761 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-20 09:26:18 +00:00
parent e55d0ce70e
commit d96c6fef5e
12 changed files with 84 additions and 43 deletions

View File

@@ -18,7 +18,7 @@ extern "C" {
* @param str String
* @return String
*/
MWDECL char* MwStringDupliacte(const char* str);
MWDECL char* MwStringDuplicate(const char* str);
/*!
* @brief Concatenates 2 strings

View File

@@ -72,7 +72,7 @@ MwInline void MwListBoxInsert(MwWidget handle, int index, void* packet) {
* @param index Index
*/
MwInline void MwListBoxDelete(MwWidget handle, int index) {
MwVaWidgetExecute(handle, "mwListboxDelete", NULL, index);
MwVaWidgetExecute(handle, "mwListBoxDelete", NULL, index);
}
/*!

View File

@@ -19,6 +19,36 @@ extern "C" {
*/
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);
}
#ifdef __cplusplus
}
#endif