introduce MWAPI
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
77ca92452e
commit
2dd2c3870f
41 changed files with 189 additions and 166 deletions
|
|
@ -78,7 +78,7 @@ static void draw(MwWidget handle) {
|
|||
MwLLFreeColor(base);
|
||||
}
|
||||
|
||||
static void listbox_activate(MwWidget handle, void* user, void* client) {
|
||||
static void MWAPI listbox_activate(MwWidget handle, void* user, void* client) {
|
||||
MwComboBox cb = handle->parent->internal;
|
||||
|
||||
(void)user;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ static int get_col_width(MwListBox lb, int ind) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
MwListBox lb = handle->parent->internal;
|
||||
|
||||
(void)user;
|
||||
|
|
@ -63,7 +63,7 @@ static void vscroll_changed(MwWidget handle, void* user, void* call) {
|
|||
lb->changed = 1;
|
||||
}
|
||||
|
||||
static void frame_mouse_down(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI frame_mouse_down(MwWidget handle, void* user, void* call) {
|
||||
MwListBox lb = handle->parent->internal;
|
||||
MwMouse* m = call;
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ static void frame_mouse_down(MwWidget handle, void* user, void* call) {
|
|||
}
|
||||
}
|
||||
|
||||
static void frame_mouse_up(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI frame_mouse_up(MwWidget handle, void* user, void* call) {
|
||||
MwListBox lb = handle->parent->internal;
|
||||
MwMouse* m = call;
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ static void frame_mouse_up(MwWidget handle, void* user, void* call) {
|
|||
}
|
||||
}
|
||||
|
||||
static void frame_mouse_move(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI frame_mouse_move(MwWidget handle, void* user, void* call) {
|
||||
MwListBox lb = handle->parent->internal;
|
||||
MwPoint* p = call;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#define LineSpace 16
|
||||
#define LinePadding 4
|
||||
|
||||
static void vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
MwTreeView tv = handle->parent->internal;
|
||||
|
||||
(void)user;
|
||||
|
|
@ -211,7 +211,7 @@ static int recursive_length(MwTreeViewEntry** e) {
|
|||
return l;
|
||||
}
|
||||
|
||||
static void frame_mouse_down(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI frame_mouse_down(MwWidget handle, void* user, void* call) {
|
||||
MwTreeView tv = handle->parent->internal;
|
||||
MwMouse* mouse = call;
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ static void frame_mouse_down(MwWidget handle, void* user, void* call) {
|
|||
|
||||
static void resize(MwWidget handle);
|
||||
|
||||
static void frame_mouse_up(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI frame_mouse_up(MwWidget handle, void* user, void* call) {
|
||||
MwTreeView tv = handle->parent->internal;
|
||||
int shared = 0;
|
||||
int skip = MwGetInteger(tv->vscroll, MwNvalue) * (MwGetInteger(tv->vscroll, MwNmaxValue) - MwGetInteger(tv->vscroll, MwNareaShown)) / MwGetInteger(tv->vscroll, MwNmaxValue);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include <Mw/Milsko.h>
|
||||
|
||||
static void vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
MwViewport vp = user;
|
||||
|
||||
(void)handle;
|
||||
|
|
@ -9,7 +9,7 @@ static void vscroll_changed(MwWidget handle, void* user, void* call) {
|
|||
vp->vchanged = 1;
|
||||
}
|
||||
|
||||
static void hscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
static void MWAPI hscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
MwViewport vp = user;
|
||||
|
||||
(void)handle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue