Commit graph

75 commits

Author SHA1 Message Date
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
59d4f88e3d fix caption, add vertical align, add margins 2021-07-11 22:30:33 +02:00
6ddd0a5453 handle correctly diamond-shaped inheritance 2021-07-11 22:03:30 +02:00
938bb8396c somewhat working code 2021-07-11 17:07:50 +02:00
dcbeeea882 Duplicate examples/button_example.cpp history in examples/caption_example.cpp history. 2021-07-10 20:44:30 +02:00
deb11ed9fd wip big rewrite 2021-07-10 19:55:53 +02:00
5a427ec4c2 change file hierarchy 2021-07-09 13:50:17 +02:00
9ddefcfd38 remove som debug output from layouts 2021-07-08 19:10:14 +02:00
596c506307 add function to get font file through fontconfig 2021-07-08 19:04:16 +02:00
e14956703c idk 2021-07-08 18:58:02 +02:00
23c94bbea8 use nullptr instead of NULL 2021-07-08 18:57:41 +02:00
f1e1373af1 use static inline and some reindent 2021-07-03 18:44:45 +02:00