Macros | Functions
mouse.c File Reference
#include <stdbool.h>
#include "nvim/mouse.h"
#include "nvim/vim.h"
#include "nvim/ascii.h"
#include "nvim/window.h"
#include "nvim/state.h"
#include "nvim/strings.h"
#include "nvim/screen.h"
#include "nvim/syntax.h"
#include "nvim/ui.h"
#include "nvim/ui_compositor.h"
#include "nvim/os_unix.h"
#include "nvim/fold.h"
#include "nvim/diff.h"
#include "nvim/move.h"
#include "nvim/misc1.h"
#include "nvim/cursor.h"
#include "nvim/buffer_defs.h"
#include "nvim/memline.h"
#include "nvim/charset.h"

Macros

#define incr()   nudge++; ptr_end += utfc_ptr2len(ptr_end)
 
#define decr()   nudge--; ptr_end -= utfc_ptr2len(ptr_end)
 

Functions

int jump_to_mouse (int flags, bool *inclusive, int which_button)
 
bool mouse_comp_pos (win_T *win, int *rowp, int *colp, linenr_T *lnump)
 
win_Tmouse_find_win (int *gridp, int *rowp, int *colp)
 
void setmouse (void)
 
int mouse_has (int c)
 
void set_mouse_topline (win_T *wp)
 
bool mouse_scroll_horiz (int dir)
 

Macro Definition Documentation

#define decr ( )    nudge--; ptr_end -= utfc_ptr2len(ptr_end)
#define incr ( )    nudge++; ptr_end += utfc_ptr2len(ptr_end)

Function Documentation

int jump_to_mouse ( int  flags,
bool *  inclusive,
int  which_button 
)
bool mouse_comp_pos ( win_T win,
int *  rowp,
int *  colp,
linenr_T lnump 
)
win_T* mouse_find_win ( int *  gridp,
int *  rowp,
int *  colp 
)

Find the window at "grid" position "*rowp" and "*colp". The positions are updated to become relative to the top-left of the window.

Returns
NULL when something is wrong.
int mouse_has ( int  c)
bool mouse_scroll_horiz ( int  dir)

Do a horizontal scroll. Return TRUE if the cursor moved, FALSE otherwise.

void set_mouse_topline ( win_T wp)
void setmouse ( void  )