annotate src/gui_beval.h @ 986:8fd2e00c44ae v7.0.112

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