diff options
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 | ||
