diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-04-22 21:34:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 21:34:46 +0200 |
commit | eada8f5aaae0c072571c87b6dbd3c7992541d698 (patch) | |
tree | 8749bbdf6219618d0b37044aa525b7ad8e9627c8 /src/nvim/api/ui.c | |
parent | d0fd66ba82c4ea6d83e2a635eeddb7c7175e02c9 (diff) | |
parent | c1887f465de3f1dd4b99046512eb108e75548c5f (diff) | |
download | rneovim-eada8f5aaae0c072571c87b6dbd3c7992541d698.tar.gz rneovim-eada8f5aaae0c072571c87b6dbd3c7992541d698.tar.bz2 rneovim-eada8f5aaae0c072571c87b6dbd3c7992541d698.zip |
Merge pull request #9871 from justinmk/doc
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index d50a91f261..fd94418d48 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -76,6 +76,21 @@ void remote_ui_wait_for_attach(void) pmap_has(uint64_t)(connected_uis, CHAN_STDIO)); } +/// Activates UI events on the channel. +/// +/// Entry point of all UI clients. Allows |\-\-embed| to continue startup. +/// Implies that the client is ready to show the UI. Adds the client to the +/// list of UIs. |nvim_list_uis()| +/// +/// @note If multiple UI clients are attached, the global screen dimensions +/// degrade to the smallest client. E.g. if client A requests 80x40 but +/// client B requests 200x100, the global screen has size 80x40. +/// +/// @param channel_id +/// @param width Requested screen columns +/// @param height Requested screen rows +/// @param options |ui-options| map +/// @param[out] err Error details, if any void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, Dictionary options, Error *err) FUNC_API_SINCE(1) FUNC_API_REMOTE_ONLY @@ -164,6 +179,12 @@ void ui_attach(uint64_t channel_id, Integer width, Integer height, api_free_dictionary(opts); } +/// Deactivates UI events on the channel. +/// +/// Removes the client from the list of UIs. |nvim_list_uis()| +/// +/// @param channel_id +/// @param[out] err Error details, if any void nvim_ui_detach(uint64_t channel_id, Error *err) FUNC_API_SINCE(1) FUNC_API_REMOTE_ONLY { |