dynload drag functions
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-07-23 00:34:38 -07:00
commit 9dd96d9cec
3 changed files with 21 additions and 43 deletions

View file

@ -192,6 +192,16 @@ static void llclipboardhandler(MwLL handle, void* data) {
MwDispatchUserHandler(h, MwNclipboardHandler, data);
}
static void lldraganddrophandler(MwLL handle, void* data) {
MwWidget h = (MwWidget)handle->common.user;
const char * p = data;
if(MwGetInteger(h, MwNdisabled) == 1) return;
printf("%s\n",p);
MwDispatchUserHandler(h, MwNdragAndDropHandler, data);
}
/* if both of them are true
* 1. widget class is not NULL
* 2. parent is NULL
@ -285,6 +295,7 @@ static MwWidget MwCreateWidget_Internal(MwClass widget_class, const char* name,
h->lowlevel->common.handler->focus_out = llfocusouthandler;
h->lowlevel->common.handler->clipboard = llclipboardhandler;
h->lowlevel->common.handler->dark_theme = lldarkthemehandler;
h->lowlevel->common.handler->drag_and_drop = lldraganddrophandler;
}
if(parent != NULL) arrput(parent->children, h);