summaryrefslogtreecommitdiff
path: root/src/ui_elements/UI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_elements/UI.h')
-rw-r--r--src/ui_elements/UI.h6
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