diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-08-27 19:34:49 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-08-27 19:34:49 +0500 |
| commit | 52ab86e5f55b189aea4198fe4d15a29c4d3c9d57 (patch) | |
| tree | b37655113dcb04255fba127291eff05a92807881 /src/ui_elements/UI.h | |
| parent | 40d500949686c3b2ea229eb3c7fe4e2f252785af (diff) | |
distraction scene init
Diffstat (limited to 'src/ui_elements/UI.h')
| -rw-r--r-- | src/ui_elements/UI.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui_elements/UI.h b/src/ui_elements/UI.h index 532dd68..d3af014 100644 --- a/src/ui_elements/UI.h +++ b/src/ui_elements/UI.h @@ -7,6 +7,7 @@ static const float SCROLL_SENC = 10; static const float TAB_WIDTH = 4; +static const int PADDING = 10; // Sure about this value static const int MIN_FONT_SIZE = 10; @@ -78,4 +79,9 @@ void UpdateTextArea(TextArea *ta, Rectangle rec); char *GetText(TextArea *ta); void FreeTextArea(TextArea *ta); +/// Fills pane1 and pane2 with the panes location +/// proporion_h and proportion_v are the scale ratio of the panes in horizontal +/// and vertical orientation +void GetPanesSplit(Rectangle *pane1, Rectangle *pane2, Rectangle body, float proportion_h, float proportion_v); + #endif // UI_ELEMENTS_H |
