comparison src/gui.h @ 16451:7ae2396cef62 v8.1.1230

patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe commit https://github.com/vim/vim/commit/afde13b62b8fa25dac4635d5caee8d088b937ee0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 28 19:46:49 2019 +0200 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Apr 2019 20:00:10 +0200
parents 7fad90423bd2
children 00cd8830bab9
comparison
equal deleted inserted replaced
16450:bf74bce807e8 16451:7ae2396cef62
235 # define NOFONTSET (GuiFontset)0 235 # define NOFONTSET (GuiFontset)0
236 # endif 236 # endif
237 # endif 237 # endif
238 #endif 238 #endif
239 239
240 #ifdef VIMDLL
241 // Use spawn when GUI is starting.
242 # define GUI_MAY_SPAWN
243
244 // Uncomment the next definition if you want to use the `:gui` command on
245 // Windows. It uses `:mksession` to inherit the session from vim.exe to
246 // gvim.exe. So, it doesn't work perfectly. (EXPERIMENTAL)
247 //# define EXPERIMENTAL_GUI_CMD
248 #endif
249
240 typedef struct Gui 250 typedef struct Gui
241 { 251 {
242 int in_focus; /* Vim has input focus */ 252 int in_focus; /* Vim has input focus */
243 int in_use; /* Is the GUI being used? */ 253 int in_use; /* Is the GUI being used? */
244 int starting; /* GUI will start in a little while */ 254 int starting; /* GUI will start in a little while */
245 int shell_created; /* Has the shell been created yet? */ 255 int shell_created; /* Has the shell been created yet? */
246 int dying; /* Is vim dying? Then output to terminal */ 256 int dying; /* Is vim dying? Then output to terminal */
247 int dofork; /* Use fork() when GUI is starting */ 257 int dofork; /* Use fork() when GUI is starting */
258 #ifdef GUI_MAY_SPAWN
259 int dospawn; /* Use spawn() when GUI is starting */
260 #endif
248 int dragged_sb; /* Which scrollbar being dragged, if any? */ 261 int dragged_sb; /* Which scrollbar being dragged, if any? */
249 win_T *dragged_wp; /* Which WIN's sb being dragged, if any? */ 262 win_T *dragged_wp; /* Which WIN's sb being dragged, if any? */
250 int pointer_hidden; /* Is the mouse pointer hidden? */ 263 int pointer_hidden; /* Is the mouse pointer hidden? */
251 int col; /* Current cursor column in GUI display */ 264 int col; /* Current cursor column in GUI display */
252 int row; /* Current cursor row in GUI display */ 265 int row; /* Current cursor row in GUI display */