Data Structures | Functions
ui.c File Reference
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "nvim/vim.h"
#include "nvim/ui.h"
#include "nvim/memory.h"
#include "nvim/map.h"
#include "nvim/msgpack_rpc/channel.h"
#include "nvim/api/ui.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"
#include "nvim/popupmnu.h"
#include "nvim/cursor_shape.h"
#include "nvim/highlight.h"

Data Structures

struct  UIData
 

Functions

void remote_ui_disconnect (uint64_t channel_id) FUNC_API_NOEXPORT
 
void remote_ui_wait_for_attach (void)
 Wait until ui has connected on stdio channel. More...
 
void nvim_ui_attach (uint64_t channel_id, Integer width, Integer height, Dictionary options, Error *err) FUNC_API_SINCE(1) FUNC_API_REMOTE_ONLY
 
void ui_attach (uint64_t channel_id, Integer width, Integer height, Boolean enable_rgb, Error *err)
 
void nvim_ui_detach (uint64_t channel_id, Error *err) FUNC_API_SINCE(1) FUNC_API_REMOTE_ONLY
 
void nvim_ui_try_resize (uint64_t channel_id, Integer width, Integer height, Error *err) FUNC_API_SINCE(1) FUNC_API_REMOTE_ONLY
 
void nvim_ui_set_option (uint64_t channel_id, String name, Object value, Error *error) FUNC_API_SINCE(1) FUNC_API_REMOTE_ONLY
 
void nvim_ui_try_resize_grid (uint64_t channel_id, Integer grid, Integer width, Integer height, Error *error) FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY
 

Function Documentation

void nvim_ui_attach ( uint64_t  channel_id,
Integer  width,
Integer  height,
Dictionary  options,
Error err 
)
void nvim_ui_detach ( uint64_t  channel_id,
Error err 
)
void nvim_ui_set_option ( uint64_t  channel_id,
String  name,
Object  value,
Error error 
)
void nvim_ui_try_resize ( uint64_t  channel_id,
Integer  width,
Integer  height,
Error err 
)
void nvim_ui_try_resize_grid ( uint64_t  channel_id,
Integer  grid,
Integer  width,
Integer  height,
Error error 
)

Tell nvim to resize a grid. Nvim sends grid_resize event with the requested grid size is within size limits and with maximum allowed size otherwise.

On invalid grid handle, fails with error.

Parameters
gridThe handle of the grid to be changed.
widthThe new requested width.
heightThe new requested height.
void remote_ui_disconnect ( uint64_t  channel_id)
void remote_ui_wait_for_attach ( void  )

Wait until ui has connected on stdio channel.

void ui_attach ( uint64_t  channel_id,
Integer  width,
Integer  height,
Boolean  enable_rgb,
Error err 
)