Commit Graph

43 Commits

Author SHA1 Message Date
Andrea Blankenstijn d8f56e0e5f Delete OpaqueStruct and use directly fancy pointers now that I know
how to set the deleter correctly.
2021-08-26 18:59:52 +02:00
Andrea Blankenstijn 76d319fb69 trash commit, style, small api changes (ref vs ptr) and who knows 2021-08-19 15:00:44 +02:00
Andrea Blankenstijn 880748276a input interface-impl separation 2021-08-17 18:00:27 +02:00
Andrea Blankenstijn eb777db6dd layout interface-api separation 2021-08-17 12:10:41 +02:00
Andrea Blankenstijn fbaabd5aa7 button interface-api separation 2021-08-17 12:08:38 +02:00
Andrea Blankenstijn 0eb300ceeb caption interface-api separation 2021-08-17 11:39:07 +02:00
Andrea Blankenstijn bb934d4f86 separate widget interface-implementation 2021-08-17 00:27:51 +02:00
Andrea Blankenstijn d9eccc940a rewrite how events are held 2021-08-16 23:13:59 +02:00
Andrea Blankenstijn 2d21c6e320 aesthetic 2021-08-14 16:45:30 +02:00
Andrea Blankenstijn 3458ca123b pass by value vs by ref thing 2021-08-14 16:37:42 +02:00
Andrea Blankenstijn 478ed90d1f use a lambda instead of a function for atexit 2021-08-14 12:19:16 +02:00
Andrea Blankenstijn 58300d08d5 owner semantic "maybe be shared owner" (const shared_ptr&) 2021-08-14 12:14:34 +02:00
Andrea Blankenstijn 280575a0e2 make aligned layout orientation a template parameter. 2021-08-14 11:48:24 +02:00
Andrea Blankenstijn 718af15b07 don't inherit directly from std::excption but from derived type and use their constructor. 2021-08-14 11:04:48 +02:00
Andrea Blankenstijn ab34a95027 fix error checking 2021-08-14 10:18:31 +02:00
Andrea Blankenstijn 3570cf301a format code 2021-08-14 09:25:28 +02:00
Andrea Blankenstijn f0e89f837b Simplify exceptions 2021-08-13 22:01:14 +02:00
Andrea Blankenstijn e52b55f460 delete default copy/move ctor/operator=, default default ctor and
destructor
2021-08-13 16:11:19 +02:00
Andrea Blankenstijn 494b638e2c use unique_ptr in layout 2021-08-12 23:17:00 +02:00
Andrea Blankenstijn 86c28dd36b use std::chrono instead of SDL_GetTicks 2021-08-12 16:30:00 +02:00
Andrea Blankenstijn 09dffb63dd undo test thing 2021-08-12 16:05:11 +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 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 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 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 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 1aab4948e9 minor change in example runner 2021-07-20 15:09:25 +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 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 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 596c506307 add function to get font file through fontconfig 2021-07-08 19:04:16 +02:00
Andrea Blankenstijn 885ec1a10b make it usable as a meson submodule 2021-06-24 15:09:29 +02:00
Andrea Blankenstijn 3d21921c4a fix Button, working numeric input, build static lib and examples. 2021-06-23 15:39:36 +02:00