summaryrefslogtreecommitdiff
path: root/src/widget/widget.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-07-13 11:44:32 -0700
committer3gg <3gg@shellblade.net>2024-07-13 11:44:32 -0700
commit68a3532728b55b73d8bcadb8ccfc1d9396346cd2 (patch)
treec87a636a36f21024032fc5cb5900982957491f95 /src/widget/widget.h
parenta4294e4a94189dffb1fdf99c9a60d87d77272926 (diff)
Basic table scrollbar rendering.main
Diffstat (limited to 'src/widget/widget.h')
-rw-r--r--src/widget/widget.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/widget/widget.h b/src/widget/widget.h
index a2c96bc..c75bd65 100644
--- a/src/widget/widget.h
+++ b/src/widget/widget.h
@@ -54,10 +54,12 @@ typedef struct uiTable {
54 uiWidget widget; 54 uiWidget widget;
55 int rows; 55 int rows;
56 int cols; 56 int cols;
57 int* widths; // Width, in pixels, for each column. 57 int height; // Height in pixels.
58 uiCell* header; // If non-null, row of 'cols' header cells. 58 int* widths; // Width, in pixels, for each column.
59 uiCell** cells; // Array of 'rows' rows, each of 'cols' cells. 59 uiCell* header; // If non-null, row of 'cols' header cells.
60 int offset; // Offset into the rows of the table. Units: rows. 60 uiCell** cells; // Array of 'rows' rows, each of 'cols' cells.
61 int offset; // Offset into the rows of the table. Units: rows.
62 int num_visible_rows; // The number of rows that are visible at once.
61 struct { 63 struct {
62 bool vertical_overflow : 1; // True if contents overflow vertically. 64 bool vertical_overflow : 1; // True if contents overflow vertically.
63 } flags; 65 } flags;