Mercurial > vim
annotate src/gui_beval.h @ 11864:97eb443fee5d v8.0.0812
patch 8.0.0812: terminal window colors shift when 'number' is set
commit https://github.com/vim/vim/commit/68c4bdd53cb54b6c0dccb2dcee446ef42ef3dedd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 30 13:57:41 2017 +0200
patch 8.0.0812: terminal window colors shift when 'number' is set
Problem: Terminal window colors shift when 'number' is set. (Nazri Ramliy)
Solution: Use vcol instead of col.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Jul 2017 14:00:05 +0200 |
parents | 4aead6a9b7a9 |
children |
rev | line source |
---|---|
10042
4aead6a9b7a9
commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents:
8218
diff
changeset
|
1 /* vi:set ts=8 sts=4 sw=4 noet: |
7 | 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 | |
8218
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
7807
diff
changeset
|
14 # ifdef USE_GTK3 |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
7807
diff
changeset
|
15 # include <gtk/gtk.h> |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
7807
diff
changeset
|
16 # else |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
7807
diff
changeset
|
17 # include <gtk/gtkwidget.h> |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
7807
diff
changeset
|
18 # endif |
7 | 19 #else |
20 # if defined(FEAT_GUI_X11) | |
21 # include <X11/Intrinsic.h> | |
22 # endif | |
23 #endif | |
24 | |
25 typedef enum | |
26 { | |
27 ShS_NEUTRAL, /* nothing showing or pending */ | |
28 ShS_PENDING, /* data requested from debugger */ | |
29 ShS_UPDATE_PENDING, /* switching information displayed */ | |
30 ShS_SHOWING /* the balloon is being displayed */ | |
31 } BeState; | |
32 | |
33 typedef struct BalloonEvalStruct | |
34 { | |
35 #ifdef FEAT_GUI_GTK | |
36 GtkWidget *target; /* widget we are monitoring */ | |
37 GtkWidget *balloonShell; | |
38 GtkWidget *balloonLabel; | |
39 unsigned int timerID; /* timer for run */ | |
40 BeState showState; /* tells us whats currently going on */ | |
41 int x; | |
42 int y; | |
43 unsigned int state; /* Button/Modifier key state */ | |
44 #else | |
45 # if !defined(FEAT_GUI_W32) | |
46 Widget target; /* widget we are monitoring */ | |
47 Widget balloonShell; | |
48 Widget balloonLabel; | |
49 XtIntervalId timerID; /* timer for run */ | |
50 BeState showState; /* tells us whats currently going on */ | |
51 XtAppContext appContext; /* used in event handler */ | |
52 Position x; | |
53 Position y; | |
54 Position x_root; | |
55 Position y_root; | |
56 int state; /* Button/Modifier key state */ | |
57 # else | |
58 HWND target; | |
59 HWND balloon; | |
60 int x; | |
61 int y; | |
62 BeState showState; /* tells us whats currently going on */ | |
63 # endif | |
64 #endif | |
65 int ts; /* tabstop setting for this buffer */ | |
66 char_u *msg; | |
7807
1a5d34492798
commit https://github.com/vim/vim/commit/d99df423c559d85c17779b3685426c489554908c
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
67 void (*msgCB)(struct BalloonEvalStruct *, int); |
7 | 68 void *clientData; /* For callback */ |
69 #if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32) | |
70 Dimension screen_width; /* screen width in pixels */ | |
71 Dimension screen_height; /* screen height in pixels */ | |
72 #endif | |
73 } BalloonEval; | |
74 | |
75 #define EVAL_OFFSET_X 15 /* displacement of beval topleft corner from pointer */ | |
76 #define EVAL_OFFSET_Y 10 | |
77 | |
78 #include "gui_beval.pro" | |
79 | |
80 #endif /* GUI_BEVAL_H and FEAT_BEVAL */ |