aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_video.h
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 18:03:40 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 18:03:40 +0000
commitea322dd14cd064209debd16d936745505986c4f9 (patch)
tree4c324133204ebe77aac52774c2f7c47129695ff0 /channels/console_video.h
parentbf8028a2c8013348216ed1a1426a3fd8fab01398 (diff)
Two changes:
- support scrolling of message window; - simplify the code for creating a message window, and try it using a second one in the top of the keypad (where we echo the dialed number). The 'skin' that supports these two windows will be committed separately. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97530 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/console_video.h')
-rw-r--r--channels/console_video.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/channels/console_video.h b/channels/console_video.h
index 8314da3a8..f426a5463 100644
--- a/channels/console_video.h
+++ b/channels/console_video.h
@@ -87,8 +87,34 @@ void console_video_uninit(struct video_desc *env);
void console_video_start(struct video_desc *env, struct ast_channel *owner);
/* console_board.c */
+
+/* Where do we send the keyboard/keypad output */
+enum kb_output {
+ KO_NONE,
+ KO_INPUT, /* the local input window */
+ KO_DIALED, /* the 'dialed number' window */
+ KO_MESSAGE, /* the 'message' window */
+};
+
+enum drag_window { /* which window are we dragging */
+ DRAG_NONE,
+ DRAG_LOCAL, /* local video */
+ DRAG_REMOTE, /* remote video */
+ DRAG_DIALED, /* dialed number */
+ DRAG_INPUT, /* input window */
+ DRAG_MESSAGE, /* message window */
+};
+
+/*! \brief support for drag actions */
+struct drag_info {
+ int x_start; /* last known mouse position */
+ int y_start;
+ enum drag_window drag_window;
+};
+/*! \brief info related to the gui: button status, mouse coords, etc. */
struct board;
/* !\brief print a message on a board */
+void move_message_board(struct board *b, int dy);
int print_message(struct board *b, const char *s);
/*! \brief return the whole text from a board */