summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-08 10:55:28 -0700
committer3gg <3gg@shellblade.net>2026-03-08 10:55:28 -0700
commit58c0f40df5947b3933bf7b6564b2ba5dc39fbd92 (patch)
tree361c9a445532aa128f69158d8fee7b73672a1fb7 /src
parent89188be968ac39e0e12077e6b596efaf00d06986 (diff)
Remove table header
Diffstat (limited to 'src')
-rw-r--r--src/layout.c1
-rw-r--r--src/render.c1
-rw-r--r--src/widget/table.c2
-rw-r--r--src/widget/table.h9
-rw-r--r--src/widget/widget.h4
5 files changed, 4 insertions, 13 deletions
diff --git a/src/layout.c b/src/layout.c
index 2b43ce8..c8f5995 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -1,7 +1,6 @@
1#include <ui.h> 1#include <ui.h>
2 2
3#include "uiLibrary.h" 3#include "uiLibrary.h"
4#include "widget/table.h"
5#include "widget/widget.h" 4#include "widget/widget.h"
6 5
7#include <cassert.h> 6#include <cassert.h>
diff --git a/src/render.c b/src/render.c
index 2d3764a..20ab142 100644
--- a/src/render.c
+++ b/src/render.c
@@ -1,7 +1,6 @@
1#include <ui.h> 1#include <ui.h>
2 2
3#include "uiLibrary.h" 3#include "uiLibrary.h"
4#include "widget/table.h"
5#include "widget/widget.h" 4#include "widget/widget.h"
6 5
7#include <cassert.h> 6#include <cassert.h>
diff --git a/src/widget/table.c b/src/widget/table.c
index dfb2e69..76a0413 100644
--- a/src/widget/table.c
+++ b/src/widget/table.c
@@ -1,5 +1,3 @@
1#include "table.h"
2
3#include "widget.h" 1#include "widget.h"
4 2
5const uiCell* GetCell(const uiTable* table, int row, int col) { 3const uiCell* GetCell(const uiTable* table, int row, int col) {
diff --git a/src/widget/table.h b/src/widget/table.h
deleted file mode 100644
index 0585140..0000000
--- a/src/widget/table.h
+++ /dev/null
@@ -1,9 +0,0 @@
1#pragma once
2
3#include <ui.h>
4
5#include "widget.h"
6
7const uiCell* GetCell(const uiTable* table, int row, int col);
8uiCell* GetCellMut(uiTable* table, int row, int col);
9uiCell** GetLastRow(uiTable* table);
diff --git a/src/widget/widget.h b/src/widget/widget.h
index 38acb9c..63f3d94 100644
--- a/src/widget/widget.h
+++ b/src/widget/widget.h
@@ -56,6 +56,10 @@ typedef struct uiTable {
56 56
57void DestroyWidget(uiWidget** ppWidget); 57void DestroyWidget(uiWidget** ppWidget);
58 58
59const uiCell* GetCell(const uiTable* table, int row, int col);
60uiCell* GetCellMut(uiTable* table, int row, int col);
61uiCell** GetLastRow(uiTable* table);
62
59#define UI_NEW(TYPE) (TYPE*)uiAlloc(1, sizeof(TYPE)) 63#define UI_NEW(TYPE) (TYPE*)uiAlloc(1, sizeof(TYPE))
60 64
61static inline void* uiAlloc(size_t count, size_t size) { 65static inline void* uiAlloc(size_t count, size_t size) {