Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2003-03-24 01:52:11 +0300
committerDaniel Dunbar <daniel@zuster.org>2003-03-24 01:52:11 +0300
commit510e2d584062e43aab22a16aade93ce332ce003c (patch)
tree9d448a9f3d5bdb27e07cbe2106e23c9b97ec2477 /source/blender/include/BIF_mywindow.h
parent3dd8dfa32b8ff2125a1367ec74b55b8c003cf2e8 (diff)
Change the core internal event dispatch to use a BWinEvent structure
instead of passing seperate arguments. For when we want to pass 'richer' events around.
Diffstat (limited to 'source/blender/include/BIF_mywindow.h')
-rw-r--r--source/blender/include/BIF_mywindow.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/source/blender/include/BIF_mywindow.h b/source/blender/include/BIF_mywindow.h
index 1e581b3dc4b..c16098f1f17 100644
--- a/source/blender/include/BIF_mywindow.h
+++ b/source/blender/include/BIF_mywindow.h
@@ -40,6 +40,14 @@ struct rcti;
/*---*/
+typedef struct BWinEvent {
+ unsigned short event;
+ short val;
+ char ascii;
+} BWinEvent;
+
+/*---*/
+
int mywinget(void);
void mywinclose(int winid);
void mywinposition(int winid,
@@ -47,9 +55,27 @@ void mywinposition(int winid,
int ymin, int ymax);
/*---*/
+ /** Test if there are events available on a BWin queue.
+ *
+ * @param winid The ID of the window to query.
+ * @return True if there is an event available for _qread'ing.
+ */
int bwin_qtest(int winid);
-unsigned short bwin_qread(int winid, short *val_r, char *ascii_r);
-void bwin_qadd(int winid, unsigned short event, short val, char ascii);
+
+ /** Read an event off of the BWin queue (if available).
+ *
+ * @param winid The ID of the window to read from.
+ * @param event_r A pointer to return the event in.
+ * @return True if an event was read and @a event_r filled.
+ */
+int bwin_qread(int winid, BWinEvent *event_r);
+
+ /** Add an event to the BWin queue.
+ *
+ * @param winid The ID of the window to add to.
+ * @param event A pointer to copy the event from.
+ */
+void bwin_qadd(int winid, BWinEvent *event);
/*---*/