diff options
| author | 3gg <3gg@shellblade.net> | 2026-03-25 19:59:14 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-03-25 19:59:14 -0700 |
| commit | 4152fbecb6ee8360575aa4c24e9cedf822f159dc (patch) | |
| tree | 9e9b9db0216a37c5867d472a65289502c459691f /src/constants.h | |
| parent | 7778755c20e779554cd654ecdf7404d37b723fcc (diff) | |
Implement vertical and horizontal layouts. Use widget position properly when rendering. Toolbar, buttons and edit bars WIPmain
Diffstat (limited to 'src/constants.h')
| -rw-r--r-- | src/constants.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/constants.h b/src/constants.h index 47babab..408e3d5 100644 --- a/src/constants.h +++ b/src/constants.h | |||
| @@ -1,7 +1,17 @@ | |||
| 1 | /* Constants used throughout the library. | ||
| 2 | * | ||
| 3 | * All sizes are relative to the font size. Widths are relative to the font | ||
| 4 | * width; heights are relative to the font height. Other sizes are typically | ||
| 5 | * relative to font height. | ||
| 6 | */ | ||
| 1 | #pragma once | 7 | #pragma once |
| 2 | 8 | ||
| 3 | // Maximum number of events that can be stored in a single input loop. | 9 | /// Maximum number of events that can be stored in a single input loop. |
| 4 | #define MaxWidgetEvents 8 | 10 | #define MaxWidgetEvents 8 |
| 5 | 11 | ||
| 6 | // Width of scroll bars in pixels. | 12 | // TODO: Make this relative to the font width. |
| 13 | /// Width of scroll bars in pixels. | ||
| 7 | #define ScrollbarWidth 32 | 14 | #define ScrollbarWidth 32 |
| 15 | |||
| 16 | /// Button border size relative to font height. | ||
| 17 | #define ButtonBorderSize 0.1 | ||
