From c1a987168d899b9a887616c00b44e8ba3ffa0a5e Mon Sep 17 00:00:00 2001
From: rnpnr
Date: Mon, 29 Apr 2024 15:12:42 +0000
Subject: [PATCH] Publishing from martanne/vis
1d37e5c8930c7542855da0a864c02ee4fd88c092
---
doc/index.html | 91 +++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 87 insertions(+), 4 deletions(-)
diff --git a/doc/index.html b/doc/index.html
index cd45a6e1f..9c11ab0f7 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -61,7 +61,7 @@ Module vis
Info:
- - Release: 8be1f68
+ - Release: 1d37e5c
- License: ISC
- Author: Marc André Tanner
@@ -324,6 +324,10 @@
Define a display style. |
+ Window:style_pos(id, x, y) |
+ Style the single terminal cell at the given coordinates, relative to this window. |
+
+
Window:unmap(...) |
Remove a window local key mapping. |
@@ -513,6 +517,10 @@
CSI command received from terminal. |
+ ui_draw() |
+ Emitted immediately before the UI is drawn to the screen. |
+
+
win_close(win) |
Window close. |
@@ -2158,11 +2166,19 @@ Fields:
- bytes
Range
-
+ file bytes, from 0, at the start and end of the viewport
- lines
Range
-
+ file lines, from 1, at the top and bottom of the viewport
+
+ - height
+ int
+ lines in viewport, accounting for window decoration
+
+ - width
+ int
+ columns in viewport, accounting for window decoration
@@ -2414,6 +2430,53 @@ Usage:
win:style_define(win.STYLE_DEFAULT, "fore:red")
+
+
+
+ Window:style_pos(id, x, y)
+
+
+ Style the single terminal cell at the given coordinates, relative to this window.
+ Completely independent of the file buffer, and can be used to style UI elements,
+ such as the status bar.
+ The style will be cleared after every window redraw.
+
+
+
Parameters:
+
+ - id
+ int
+ display style registered with style_define
+
+ - x
+ int
+ 0-based x coordinate within Win, where (0,0) is the top left corner
+
+ - y
+ int
+ See above
+
+
+
+ Returns:
+
+
+ bool
+ false if the coordinates would be outside the window's dimensions
+
+
+
+ See also:
+
+
+ Usage:
+ win:style_pos(win.STYLE_COLOR_COLUMN, 0, win.height - 1)
+
+
+
@@ -3590,6 +3653,23 @@ Parameters:
+
+
+
+ ui_draw()
+
+
+ Emitted immediately before the UI is drawn to the screen.
+ Allows last-minute overrides to the styling of UI elements.
+ *WARNING:* This is emitted every screen draw!
+ Use sparingly and check for `nil` values!
+
+
+
+
+
+
+
@@ -3752,6 +3832,9 @@ Fields:
PROCESS_RESPONSE
see process_response
+ UI_DRAW
+ see ui_draw
+
@@ -3865,7 +3948,7 @@ Returns:
generated by LDoc 1.4.6
-
Last updated 2024-04-29 14:29:54
+
Last updated 2024-04-29 15:12:42