annotate lwlib/lwlib-utils.h @ 14948:044a7dcbeb06

(gomoku-click): Position on nearest square. Adapt keymap accordingly. (gomoku-mouse-play): Use it to play nearest to mouse click. (gomoku-terminate-game): Factorize messages. (gomoku): Allow interactive passing of board size. Don't make a fuss about restarting a game that hasn't progressed. (gomoku-offer-a-draw): Give user the choice it pretended to give. (gomoku-point-x): Deleted function. (gomoku-point-y, gomoku-point-square): Simplified because point is always on a square. (gomoku-goto-xy, gomoku-plot-square): Fix line count due to intangible newlines. (gomoku-init-display): Once again fairly fast due to minimization of characters in buffer and text-property operations. Cursor cannot be be off a square. (gomoku-display-statistics): Simplified equivalently. (gomoku-winning-qtuple-beg, gomoku-winning-qtuple-end) (gomoku-winning-qtuple-dx, gomoku-winning-qtuple-dy): Pseudo variables only used for non-functional argument passing deleted. (gomoku-cross-winning-qtuple): Accordingly deleted function and (gomoku-check-filled-qtuple): Accordingly adapted. (gomoku-cross-qtuple): Don't be confused by tabs. (gomoku-move-down, gomoku-move-up): Simplified because point is always on square. (gomoku-beginning-of-line, gomoku-end-of-line): New commands necessary because intangible newlines perverted these.
author Richard M. Stallman <rms@gnu.org>
date Fri, 05 Apr 1996 19:38:42 +0000
parents 118a6ad56ae0
children 6ed38ee607e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 #ifndef _LWLIB_UTILS_H_
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 #define _LWLIB_UTILS_H_
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3
5707
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
4 void XtNoClearRefreshWidget (/* Widget */);
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
5707
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
6 typedef void (*XtApplyToWidgetsProc) (/* Widget, XtPointer */);
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
7 typedef void* (*XtApplyUntilToWidgetsProc) (/* Widget, XtPointer */);
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8
5707
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
9 void XtApplyToWidgets (/* Widget, XtApplyToWidgetsProc, XtPointer */);
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
10 void *XtApplyUntilToWidgets (/* Widget, XtApplyUntilToWidgetsProc, XtPointer */);
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11
5707
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
12 Widget *XtCompositeChildren (/* Widget, unsigned int * */);
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 /* returns True is the widget is being destroyed, False otherwise */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 Boolean
5707
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
16 XtWidgetBeingDestroyedP (/* Widget widget */);
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17
5707
118a6ad56ae0 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5626
diff changeset
18 void XtSafelyDestroyWidget (/* Widget */);
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 #endif /* _LWLIB_UTILS_H_ */