mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 09:59:45 +00:00
add MwGetName
This commit is contained in:
@@ -315,6 +315,13 @@ MWDECL void MwReparent(MwWidget handle, MwWidget new_parent);
|
|||||||
*/
|
*/
|
||||||
MWDECL MwClass MwGetClass(MwWidget handle);
|
MWDECL MwClass MwGetClass(MwWidget handle);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Gets name of widget
|
||||||
|
* @param handle Widget
|
||||||
|
* @return Name
|
||||||
|
*/
|
||||||
|
MWDECL const char* MwGetName(MwWidget handle);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Gets children of widget
|
* @brief Gets children of widget
|
||||||
* @param handle Widget
|
* @param handle Widget
|
||||||
|
|||||||
@@ -725,6 +725,10 @@ MwClass MwGetClass(MwWidget handle) {
|
|||||||
return handle->widget_class;
|
return handle->widget_class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* MwGetName(MwWidget handle) {
|
||||||
|
return handle->name;
|
||||||
|
}
|
||||||
|
|
||||||
MwWidget* MwGetChildren(MwWidget handle) {
|
MwWidget* MwGetChildren(MwWidget handle) {
|
||||||
MwWidget* c = malloc(sizeof(*c) * (arrlen(handle->children) + 1));
|
MwWidget* c = malloc(sizeof(*c) * (arrlen(handle->children) + 1));
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user