summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-02 13:51:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-02 13:51:04 (GMT)
commit563604d564cf533f0751a5a1e433a12d88edec12 (patch)
treeddda3658d6871e7f55be86d0b8872cb7c37745f1 /win
parentd45c3cf6e052383401b40c67eed7d9d56a0cebbc (diff)
downloadtk-563604d564cf533f0751a5a1e433a12d88edec12.zip
tk-563604d564cf533f0751a5a1e433a12d88edec12.tar.gz
tk-563604d564cf533f0751a5a1e433a12d88edec12.tar.bz2
Fix [220811] and [220808]: Docs missing for Tk_TranslateWinEvent/Tk_PointerEvent API. Moved functions to tkWinInt.h as MODULE_SCOPE. (Stub entry still kept, as long as not -DTK_NO_DEPRECATED)
Diffstat (limited to 'win')
-rw-r--r--win/tkWinButton.c2
-rw-r--r--win/tkWinInt.h4
-rw-r--r--win/tkWinMenu.c2
-rw-r--r--win/tkWinPointer.c6
-rw-r--r--win/tkWinScrlbr.c4
-rw-r--r--win/tkWinWm.c2
-rw-r--r--win/tkWinX.c10
7 files changed, 17 insertions, 13 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index bc2f16a..adcaa04 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.c
@@ -1303,7 +1303,7 @@ ButtonProc(
}
/* FALLTHRU */
default:
- if (Tk_TranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
+ if (TkTranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
return result;
}
}
diff --git a/win/tkWinInt.h b/win/tkWinInt.h
index ef4f1bd..c1b0658 100644
--- a/win/tkWinInt.h
+++ b/win/tkWinInt.h
@@ -200,6 +200,10 @@ MODULE_SCOPE long TkpWinToplevelOverrideRedirect(TkWindow *winPtr,
MODULE_SCOPE void TkpWinToplevelDetachWindow(TkWindow *winPtr);
MODULE_SCOPE int TkpWmGetState(TkWindow *winPtr);
+MODULE_SCOPE int TkTranslateWinEvent(HWND hwnd, UINT message,
+ WPARAM wParam, LPARAM lParam, LRESULT *result);
+MODULE_SCOPE void TkWinPointerEvent(HWND hwnd, int x, int y);
+
/*
* The following is implemented in tkWinPointer.c and also used in tkWinWindow.c
*/
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index 3c0f83c..ecccb94 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -841,7 +841,7 @@ TkpPostMenu(
Tcl_SetServiceMode(oldServiceMode);
GetCursorPos(&point);
- Tk_PointerEvent(NULL, point.x, point.y);
+ TkWinPointerEvent(NULL, point.x, point.y);
if (tsdPtr->inPostMenu) {
tsdPtr->inPostMenu = 0;
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c
index 561d90e..222d938 100644
--- a/win/tkWinPointer.c
+++ b/win/tkWinPointer.c
@@ -93,7 +93,7 @@ TkWinGetModifierState(void)
/*
*----------------------------------------------------------------------
*
- * Tk_PointerEvent --
+ * TkWinPointerEvent --
*
* This procedure is called for each pointer-related event. It converts
* the position to root coords and updates the global pointer state
@@ -109,7 +109,7 @@ TkWinGetModifierState(void)
*/
void
-Tk_PointerEvent(
+TkWinPointerEvent(
HWND hwnd, /* Window for coords, or NULL for the root
* window. */
int x, int y) /* Coords relative to hwnd, or screen if hwnd
@@ -248,7 +248,7 @@ MouseTimerProc(
*/
GetCursorPos(&pos);
- Tk_PointerEvent(NULL, pos.x, pos.y);
+ TkWinPointerEvent(NULL, pos.x, pos.y);
}
/*
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c
index 9f8c636..d00b324 100644
--- a/win/tkWinScrlbr.c
+++ b/win/tkWinScrlbr.c
@@ -497,7 +497,7 @@ ScrollbarProc(
int code;
GetCursorPos(&point);
- Tk_TranslateWinEvent(NULL, WM_MOUSEMOVE, 0,
+ TkTranslateWinEvent(NULL, WM_MOUSEMOVE, 0,
MAKELPARAM(point.x, point.y), &result);
if (command == SB_ENDSCROLL) {
@@ -564,7 +564,7 @@ ScrollbarProc(
}
default:
- if (Tk_TranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
+ if (TkTranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
return result;
}
}
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 2124d80..2f00672 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -8125,7 +8125,7 @@ WmProc(
if (message == WM_SETFOCUS) {
SetFocus(child);
result = 0;
- } else if (!Tk_TranslateWinEvent(child, message, wParam, lParam,
+ } else if (!TkTranslateWinEvent(child, message, wParam, lParam,
&result)) {
result = DefWindowProcW(hwnd, message, wParam, lParam);
}
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 0413a5f..c275120 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -802,7 +802,7 @@ TkWinChildProc(
result = 1;
} else {
/* If the event was translated, we must return 0 */
- if (Tk_TranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
+ if (TkTranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
result = 0;
} else {
result = 1;
@@ -811,7 +811,7 @@ TkWinChildProc(
break;
default:
- if (!Tk_TranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
+ if (!TkTranslateWinEvent(hwnd, message, wParam, lParam, &result)) {
result = DefWindowProcW(hwnd, message, wParam, lParam);
}
break;
@@ -828,7 +828,7 @@ TkWinChildProc(
/*
*----------------------------------------------------------------------
*
- * Tk_TranslateWinEvent --
+ * TkTranslateWinEvent --
*
* This function is called by widget window functions to handle the
* translation from Win32 events to Tk events.
@@ -843,7 +843,7 @@ TkWinChildProc(
*/
int
-Tk_TranslateWinEvent(
+TkTranslateWinEvent(
HWND hwnd,
UINT message,
WPARAM wParam,
@@ -912,7 +912,7 @@ Tk_TranslateWinEvent(
case WM_RBUTTONUP:
case WM_XBUTTONUP:
case WM_MOUSEMOVE:
- Tk_PointerEvent(hwnd, (short) LOWORD(lParam), (short) HIWORD(lParam));
+ TkWinPointerEvent(hwnd, (short) LOWORD(lParam), (short) HIWORD(lParam));
return 1;
case WM_SYSKEYDOWN: