Commit Graph

128 Commits

Author SHA1 Message Date
Andrea Blankenstijn 09dffb63dd undo test thing 2021-08-12 16:05:11 +02:00
Andrea Blankenstijn d78a6b0f0e initialize static members in source file. 2021-08-12 16:04:02 +02:00
Andrea Blankenstijn 43dd6ab820 use raw ptr instead of fancy one when no references are kept after function
exit.
2021-08-12 15:55:47 +02:00
Andrea Blankenstijn 0642d89803 Suppressed or defaulted constructors/assignment operators 2021-08-12 15:29:25 +02:00
Andrea Blankenstijn 31763a4563 fix missing cmath include. don't understand how it compiled until now. 2021-08-12 15:22:58 +02:00
Andrea Blankenstijn c7bea043c2 rethink C opaque struct encapsulation 2021-08-11 15:58:04 +02:00
Andrea Blankenstijn 79f83abe3b smart ptr and a bit of doc 2021-08-10 23:48:19 +02:00
Andrea Blankenstijn e71a16208b noexcept correctness intent 2021-08-08 16:04:33 +02:00
Andrea Blankenstijn 4f82826bbc constness 2021-08-08 14:30:56 +02:00
Andrea Blankenstijn cab6fa0cf4 wip general code improvement 2021-08-07 20:11:28 +02:00
Andrea Blankenstijn 2d4c6e3694 Extract linear and smoothstep functions. Minor tweaks. 2021-08-01 11:19:06 +02:00
Andrea Blankenstijn 13bdb970c0 config clang-tidy linter and fix code based on linting err/warn 2021-07-30 21:37:14 +02:00
Andrea Blankenstijn 3b6e900a22 format code with custom clang-format style 2021-07-29 16:06:03 +02:00
Andrea Blankenstijn a83c4521e5 fix missing includes (for clang, gcc was working fine) 2021-07-29 15:31:39 +02:00
Andrea Blankenstijn 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
Andrea Blankenstijn 80576bdab8 fix memory leak in text rendering 2021-07-27 22:15:43 +02:00
Andrea Blankenstijn 0dfc8cdf02 fix aa 2021-07-27 21:52:38 +02:00
Andrea Blankenstijn 55fbd59c36 half workaround to fix corner glitch in draw_rect and minor changes 2021-07-26 23:48:04 +02:00
Andrea Blankenstijn 369e1c1f1b 'fix' input widget size and set back dbg outline to vp boundaries 2021-07-24 22:07:28 +02:00
Andrea Blankenstijn ef294d67fc rewrite template to discard pointers 2021-07-24 08:28:51 +02:00
Andrea Blankenstijn cc0bed2287 fix numeric input initial value to be in range 2021-07-23 22:32:56 +02:00
Andrea Blankenstijn 4b87af7bc4 various changes and fixes 2021-07-23 20:08:52 +02:00
Andrea Blankenstijn e766162b1e move input concepts to concepts file. includes reorder 2021-07-20 15:20:46 +02:00
Andrea Blankenstijn 1aab4948e9 minor change in example runner 2021-07-20 15:09:25 +02:00
Andrea Blankenstijn fbd680d11f double default layout margins 2021-07-20 15:08:55 +02:00
Andrea Blankenstijn 94f4536f45 fix layout margins 2021-07-20 15:05:14 +02:00
Andrea Blankenstijn ec0d85b97a remove unused caption vertical alignment as we use all viewport height 2021-07-20 12:29:17 +02:00
Andrea Blankenstijn e884c27ccf add missing examples 2021-07-20 12:23:16 +02:00
Andrea Blankenstijn 57a95154c2 fix empty text rendering, remove useless regex in numeric input 2021-07-20 12:11:50 +02:00
Andrea Blankenstijn 30c4205dab some fixes and working sdl wrapper 2021-07-19 23:50:50 +02:00
Andrea Blankenstijn dd3ff9358a big hierarchy refactor, some little changes, add Font class 2021-07-18 18:26:12 +02:00
Andrea Blankenstijn 98f51426b8 basic sdl wrapper 2021-07-16 17:18:13 +02:00
Andrea Blankenstijn 4e4539695f decrease button height 2021-07-15 14:00:06 +02:00
Andrea Blankenstijn c99bc3eac5 start work on a sdl wrapper 2021-07-14 17:33:54 +02:00
Andrea Blankenstijn 80184d8a35 add error checks and throw some exceptions 2021-07-13 22:57:49 +02:00
Andrea Blankenstijn 31370234df input: remove focus on enter key. don't catch stoll/stodd exception. 2021-07-13 13:30:19 +02:00
Andrea Blankenstijn 03c6f51e16 add noexcept and override specifiers. make some members public instead of using [gs]etters. 2021-07-13 13:22:11 +02:00
Andrea Blankenstijn 64fc355270 add short description 2021-07-12 19:30:50 +02:00
Andrea Blankenstijn 94002ddde3 fix Caption::size()
Also include margin space in computed size.
2021-07-12 19:11:21 +02:00
Andrea Blankenstijn fb1acc9386 set default aa pixels to 3 2021-07-12 14:22:41 +02:00
Andrea Blankenstijn aa7775b943 change button order in numeric input 2021-07-12 08:18:27 +02:00
Andrea Blankenstijn 7d5bfefff0 little fixes/enhancements here and there 2021-07-12 00:58:59 +02:00
Andrea Blankenstijn 59d4f88e3d fix caption, add vertical align, add margins 2021-07-11 22:30:33 +02:00
Andrea Blankenstijn 6ddd0a5453 handle correctly diamond-shaped inheritance 2021-07-11 22:03:30 +02:00
Andrea Blankenstijn 938bb8396c somewhat working code 2021-07-11 17:07:50 +02:00
Andrea Blankenstijn dcbeeea882 Duplicate examples/button_example.cpp history in examples/caption_example.cpp history. 2021-07-10 20:44:30 +02:00
Andrea Blankenstijn deb11ed9fd wip big rewrite 2021-07-10 19:55:53 +02:00
Andrea Blankenstijn 5a427ec4c2 change file hierarchy 2021-07-09 13:50:17 +02:00
Andrea Blankenstijn 9ddefcfd38 remove som debug output from layouts 2021-07-08 19:10:14 +02:00
Andrea Blankenstijn 596c506307 add function to get font file through fontconfig 2021-07-08 19:04:16 +02:00