a bit of scaffolding to prepare for adding resize callback + message types

This commit is contained in:
2024-10-06 08:18:24 +01:00
parent c5efc4640f
commit 6766fd1485
7 changed files with 19 additions and 5 deletions

4
fcore/app-type.sml Normal file
View File

@@ -0,0 +1,4 @@
structure AppType =
struct
end

View File

@@ -1,4 +1,10 @@
structure Buffer =
signature TEXT_BUILDER =
sig
val build: int * LineGap.t * int * int
-> Real32.real vector * LineGap.t
end
structure TextBuilder :> TEXT_BUILDER =
struct
val xSpace = 12
val xSpace3 = xSpace * 3
@@ -169,7 +175,7 @@ buildTextString ( startIdx, rStrHd, [], 5, 5, 5
Vector.concat acc
end
fun startBuildTextLineGap
fun build
(startLine, lineGap: LineGap.t, windowWidth, windowHeight) =
let
val lineGap = LineGap.goToLine (startLine, lineGap)