From ad93d9bf0a0b041f57110762cfd256db41177984 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 21 Jan 2025 08:23:16 -0300 Subject: [PATCH 1/2] make alias public --- component/grid_formula.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/component/grid_formula.v b/component/grid_formula.v index 997884b2..e13a739e 100644 --- a/component/grid_formula.v +++ b/component/grid_formula.v @@ -8,12 +8,12 @@ import regex const no_cell = GridCell{-1, -1} // Spreadsheet-like (ex: A1, B4, ...) -type AlphaCell = string +pub type AlphaCell = string // Spreadsheet-like (ex: A1:B4, Z12:AB13, ...) -type AlphaCellBlock = string +pub type AlphaCellBlock = string -type ActiveCells = AlphaCell | AlphaCellBlock +pub type ActiveCells = AlphaCell | AlphaCellBlock // Matrix-like (zero indexed) pub struct GridCell { From ae3db3f118bdc0c6cdc5df5458672175e067555e Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 22 Jan 2025 13:05:58 -0300 Subject: [PATCH 2/2] make symbols public --- component/grid.v | 2 +- component/treeview.v | 2 +- src/button.v | 8 ++++---- src/chunkview.v | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/component/grid.v b/component/grid.v index a86432ab..00d9ffe0 100644 --- a/component/grid.v +++ b/component/grid.v @@ -19,7 +19,7 @@ enum GridType { dd_factor } -type GridData = Factor | []bool | []f64 | []int | []string +pub type GridData = Factor | []bool | []f64 | []int | []string @[heap] pub struct GridComponent { diff --git a/component/treeview.v b/component/treeview.v index 6d68da15..77217f92 100644 --- a/component/treeview.v +++ b/component/treeview.v @@ -7,7 +7,7 @@ import os const tree_sep = ':' const root_sep = '_|||_' -type TreeItem = Tree | string +pub type TreeItem = Tree | string pub struct Tree { pub mut: diff --git a/src/button.v b/src/button.v index f89f1c0a..bdfdb391 100644 --- a/src/button.v +++ b/src/button.v @@ -20,13 +20,13 @@ enum ButtonState { hovering } -type ButtonFn = fn (&Button) +pub type ButtonFn = fn (&Button) -type ButtonU32Fn = fn (&Button, u32) +pub type ButtonU32Fn = fn (&Button, u32) -type ButtonMouseFn = fn (&Button, &MouseEvent) +pub type ButtonMouseFn = fn (&Button, &MouseEvent) -type ButtonMouseMoveFn = fn (&Button, &MouseMoveEvent) +pub type ButtonMouseMoveFn = fn (&Button, &MouseMoveEvent) @[heap] pub struct Button { diff --git a/src/chunkview.v b/src/chunkview.v index fb13faee..3efc8036 100644 --- a/src/chunkview.v +++ b/src/chunkview.v @@ -21,7 +21,7 @@ pub mut: y int } -interface ChunkContent { +pub interface ChunkContent { mut: bb Rect init(cv &ChunkView)