comparison src/include/ui_utils.h @ 1:1ae666fdf9e2

*: initial commit
author Paper <mrpapersonic@gmail.com>
date Tue, 08 Aug 2023 19:49:15 -0400
parents
children 23d0d9319a00
comparison
equal deleted inserted replaced
0:5a76e1b94163 1:1ae666fdf9e2
1 #ifndef __ui_utils_h
2 #define __ui_utils_h
3 namespace UiUtils {
4 /* Creates a text paragraph with a title header.
5 Note: the `height` parameters for both of these functions is actually
6 the height of the data on its own.
7 Returns a pointer to the data wxStaticText element. */
8 wxStaticText* CreateTextParagraph(wxWindow* parent, const wchar_t* title, const wchar_t* data, int width, int height, int x = 0, int y = 0);
9
10 wxStaticText* CreateTextParagraphWithLabels(wxWindow* parent, const wchar_t* title, const wchar_t* label, const wchar_t* data, int width, int height, int x = 0, int y = 0);
11 wxTextCtrl* CreateSelectableTextParagraph(wxWindow* parent, const wchar_t* title, const wchar_t* data, int width, int height, int x = 0, int y = 0);
12 void CreateTextHeader(wxWindow* parent, const wchar_t* title, int width, int x = 0, int y = 0);
13 };
14 #endif // __ui_utils_h