mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
fix sloppy focus
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@231 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -43,6 +43,7 @@ struct _MwLLHandler {
|
||||
void (*resize)(MwLL handle, void* data);
|
||||
void (*close)(MwLL handle, void* data);
|
||||
void (*move)(MwLL handle, void* data);
|
||||
void (*key)(MwLL handle, void* data);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#include <sys/ipc.h>
|
||||
|
||||
@@ -26,6 +26,7 @@ typedef void* MwWidget;
|
||||
typedef void (*MwHandler)(MwWidget handle);
|
||||
typedef int (*MwHandler2)(MwWidget handle);
|
||||
typedef void (*MwHandler3)(MwWidget handle, const char* key);
|
||||
typedef void (*MwHandler4)(MwWidget handle, int key);
|
||||
typedef void (*MwUserHandler)(MwWidget handle, void* user_data, void* call_data);
|
||||
typedef void (*MwErrorHandler)(int code, const char* message, void* user_data);
|
||||
|
||||
@@ -118,6 +119,12 @@ struct _MwClass {
|
||||
MwHandler mouse_move;
|
||||
MwHandler mouse_up;
|
||||
MwHandler mouse_down;
|
||||
MwHandler4 key;
|
||||
void* reserved1;
|
||||
void* reserved2;
|
||||
void* reserved3;
|
||||
void* reserved4;
|
||||
void* reserved5;
|
||||
};
|
||||
|
||||
struct _MwFont {
|
||||
|
||||
Reference in New Issue
Block a user