From 52ab86e5f55b189aea4198fe4d15a29c4d3c9d57 Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Thu, 27 Aug 2026 19:34:49 +0500 Subject: distraction scene init --- src/ui_elements/UI.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui_elements/UI.h') 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 -- cgit v1.3