Commit graph

64 commits

Author SHA1 Message Date
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
0b0b521dc3 add convenience function taking SDL_Rect rvalues and forward them as ptr to RenderCopy. 2021-07-02 13:52:46 +02:00
07fc2291d5 use textures instead of surface for drawing primitive(s). 2021-07-01 23:23:37 +02:00
dccf6ec7c4 add sf rendered circle rendering feature with basic aa 2021-07-01 14:43:48 +02:00
fa01d4024f fix widget spacing in layouts. 2021-06-25 21:57:57 +02:00
9bfdbd3b00 fix widget area size 2021-06-24 16:38:26 +02:00
885ec1a10b make it usable as a meson submodule 2021-06-24 15:09:29 +02:00
3d21921c4a fix Button, working numeric input, build static lib and examples. 2021-06-23 15:39:36 +02:00
9d939c33e8 more work on input widget 2021-06-20 00:42:40 +02:00
63691a493f more work on input and caption widgets. 2021-06-17 20:47:47 +02:00
79fa78f68b more wip on widgets 2021-06-16 18:10:34 +02:00
649be9a6af on going work on input field rendering 2021-06-16 13:50:34 +02:00