Commit graph

86 commits

Author SHA1 Message Date
f78fa82ae8 better smart ptr owner semantic 2021-08-12 23:27:09 +02:00
494b638e2c use unique_ptr in layout 2021-08-12 23:17:00 +02:00
d7abc49d07 remove useless calls to Color::operator() 2021-08-12 16:38:55 +02:00
86c28dd36b use std::chrono instead of SDL_GetTicks 2021-08-12 16:30:00 +02:00
5cb15abe11 code formatting. 2021-08-12 16:10:49 +02:00
d1cd97809e littles things 2021-08-12 16:09:26 +02:00
d3be108df6 don't pass by ref scalar types, copy them. 2021-08-12 16:08:08 +02:00
85837167fe fix: layout didn't call Widget constructor. 2021-08-12 16:06:33 +02:00
09dffb63dd undo test thing 2021-08-12 16:05:11 +02:00
d78a6b0f0e initialize static members in source file. 2021-08-12 16:04:02 +02:00
43dd6ab820 use raw ptr instead of fancy one when no references are kept after function
exit.
2021-08-12 15:55:47 +02:00
0642d89803 Suppressed or defaulted constructors/assignment operators 2021-08-12 15:29:25 +02:00
31763a4563 fix missing cmath include. don't understand how it compiled until now. 2021-08-12 15:22:58 +02:00
c7bea043c2 rethink C opaque struct encapsulation 2021-08-11 15:58:04 +02:00
79f83abe3b smart ptr and a bit of doc 2021-08-10 23:48:19 +02:00
e71a16208b noexcept correctness intent 2021-08-08 16:04:33 +02:00
4f82826bbc constness 2021-08-08 14:30:56 +02:00
cab6fa0cf4 wip general code improvement 2021-08-07 20:11:28 +02:00
2d4c6e3694 Extract linear and smoothstep functions. Minor tweaks. 2021-08-01 11:19:06 +02:00
13bdb970c0 config clang-tidy linter and fix code based on linting err/warn 2021-07-30 21:37:14 +02:00
3b6e900a22 format code with custom clang-format style 2021-07-29 16:06:03 +02:00
a83c4521e5 fix missing includes (for clang, gcc was working fine) 2021-07-29 15:31:39 +02:00
657c7f852c fix struct/class forward decl incoherence, forgotten override spec and make it compile with clang 12 2021-07-28 15:15:32 +02:00
80576bdab8 fix memory leak in text rendering 2021-07-27 22:15:43 +02:00
0dfc8cdf02 fix aa 2021-07-27 21:52:38 +02:00
55fbd59c36 half workaround to fix corner glitch in draw_rect and minor changes 2021-07-26 23:48:04 +02:00
369e1c1f1b 'fix' input widget size and set back dbg outline to vp boundaries 2021-07-24 22:07:28 +02:00
ef294d67fc rewrite template to discard pointers 2021-07-24 08:28:51 +02:00
cc0bed2287 fix numeric input initial value to be in range 2021-07-23 22:32:56 +02:00
4b87af7bc4 various changes and fixes 2021-07-23 20:08:52 +02:00
e766162b1e move input concepts to concepts file. includes reorder 2021-07-20 15:20:46 +02:00
1aab4948e9 minor change in example runner 2021-07-20 15:09:25 +02:00
fbd680d11f double default layout margins 2021-07-20 15:08:55 +02:00
94f4536f45 fix layout margins 2021-07-20 15:05:14 +02:00
ec0d85b97a remove unused caption vertical alignment as we use all viewport height 2021-07-20 12:29:17 +02:00
e884c27ccf add missing examples 2021-07-20 12:23:16 +02:00
57a95154c2 fix empty text rendering, remove useless regex in numeric input 2021-07-20 12:11:50 +02:00
30c4205dab some fixes and working sdl wrapper 2021-07-19 23:50:50 +02:00
dd3ff9358a big hierarchy refactor, some little changes, add Font class 2021-07-18 18:26:12 +02:00
98f51426b8 basic sdl wrapper 2021-07-16 17:18:13 +02:00
4e4539695f decrease button height 2021-07-15 14:00:06 +02:00
c99bc3eac5 start work on a sdl wrapper 2021-07-14 17:33:54 +02:00
80184d8a35 add error checks and throw some exceptions 2021-07-13 22:57:49 +02:00
31370234df input: remove focus on enter key. don't catch stoll/stodd exception. 2021-07-13 13:30:19 +02:00
03c6f51e16 add noexcept and override specifiers. make some members public instead of using [gs]etters. 2021-07-13 13:22:11 +02:00
64fc355270 add short description 2021-07-12 19:30:50 +02:00
94002ddde3 fix Caption::size()
Also include margin space in computed size.
2021-07-12 19:11:21 +02:00
fb1acc9386 set default aa pixels to 3 2021-07-12 14:22:41 +02:00
aa7775b943 change button order in numeric input 2021-07-12 08:18:27 +02:00
7d5bfefff0 little fixes/enhancements here and there 2021-07-12 00:58:59 +02:00