diff options
author | Luigi Rizzo <rizzo@icir.org> | 2008-01-09 18:03:40 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2008-01-09 18:03:40 +0000 |
commit | cdf6974dea21a4678e2e7afd27292a7a4f37ab20 (patch) | |
tree | 4c324133204ebe77aac52774c2f7c47129695ff0 /channels/console_video.h | |
parent | c7ba18820e0825e2c15dbf3d417fcc356c959585 (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: https://origsvn.digium.com/svn/asterisk/trunk@97530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/console_video.h')
-rw-r--r-- | channels/console_video.h | 26 |
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 */ |