home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / src / gui_beval.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-04-19  |  1.9 KB  |  67 lines

  1. /* vi:set ts=8 sts=4 sw=4:
  2.  *
  3.  * VIM - Vi IMproved    by Bram Moolenaar
  4.  *            Visual Workshop integration by Gordon Prieur
  5.  *
  6.  * Do ":help uganda"  in Vim to read copying and usage conditions.
  7.  * Do ":help credits" in Vim to see a list of people who contributed.
  8.  */
  9.  
  10. #if !defined(GUI_BEVAL_H) && (defined(FEAT_BEVAL) || defined(PROTO))
  11. #define GUI_BEVAL_H
  12.  
  13. #ifdef FEAT_GUI_GTK
  14. # include <gtk/gtkwidget.h>
  15. #else
  16. # include <X11/Intrinsic.h>
  17. #endif
  18.  
  19. typedef enum
  20. {
  21.     ShS_NEUTRAL,            /* nothing showing or pending */
  22.     ShS_PENDING,            /* data requested from debugger */
  23.     ShS_UPDATE_PENDING,            /* switching information displayed */
  24.     ShS_SHOWING                /* the balloon is being displayed */
  25. } BeState;
  26.  
  27. typedef struct
  28. {
  29. #ifdef FEAT_GUI_GTK
  30.     GtkWidget        *target;    /* widget we are monitoring */
  31.     GtkWidget        *balloonShell;
  32.     GtkWidget        *balloonLabel;
  33.     unsigned int    timerID;    /* timer for run */
  34.     BeState        showState;    /* tells us whats currently going on */
  35.     int            x;
  36.     int            y;
  37.     unsigned int    state;        /* Button/Modifier key state */
  38. #else
  39.     Widget        target;        /* widget we are monitoring */
  40.     Widget        balloonShell;
  41.     Widget        balloonLabel;
  42.     XtIntervalId    timerID;    /* timer for run */
  43.     BeState        showState;    /* tells us whats currently going on */
  44.     XtAppContext    appContext;    /* used in event handler */
  45.     Position        x;
  46.     Position        y;
  47.     Position        x_root;
  48.     Position        y_root;
  49.     int            state;        /* Button/Modifier key state */
  50. #endif
  51.     int            ts;        /* tabstop setting for this buffer */
  52.     char_u        *msg;
  53.     void        (*msgCB)();
  54.     void        *clientData;    /* For callback */
  55. #ifndef FEAT_GUI_GTK
  56.     Dimension        screen_width;    /* screen width in pixels */
  57.     Dimension        screen_height;    /* screen height in pixels */
  58. #endif
  59. } BalloonEval;
  60.  
  61. #define EVAL_OFFSET_X 15 /* displacement of beval topleft corner from pointer */
  62. #define EVAL_OFFSET_Y 10
  63.  
  64. #include "gui_beval.pro"
  65.  
  66. #endif /* GUI_BEVAL_H and FEAT_BEVAL */
  67.