tAdd gap buffer implementation to textedit - ltkx - GUI toolkit for X11 (WIP)
HTML git clone git://lumidify.org/ltkx.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 74fc1346f0e2ee3e95c37edc9880890d14f8e747
DIR parent b05e1135200febcf01061df3e109943b6d828b8f
HTML Author: lumidify <nobody@lumidify.org>
Date: Fri, 8 May 2020 21:18:25 +0200
Add gap buffer implementation to textedit
Diffstat:
M textedit_wip.c | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
DIR diff --git a/textedit_wip.c b/textedit_wip.c
t@@ -21,6 +21,8 @@
* SOFTWARE.
*/
+/* NOTE: THIS DOESN'T HAVE ANY USABLE CODE YET! */
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
t@@ -39,6 +41,10 @@
extern Ltk *ltk_global;
+LTK_GAP_BUFFER_INIT_IMPL(uint32, uint32_t)
+LTK_GAP_BUFFER_INIT_IMPL(int, int)
+LTK_GAP_BUFFER_INIT_IMPL(glyph, struct ltk_glyph)
+
/* FIXME: allow to either use fribidi for basic shaping and don't use harfbuzz then,
or just use harfbuzz (then fribidi doesn't need to do any shaping) */
LtkTextLine *