Commit graph

590 commits

Author SHA1 Message Date
e67b3f1fdc Add ui slider element 2021-03-05 15:51:17 +03:00
0bf4324ba4 Refactor button creation + create image view via element factory 2021-03-05 14:27:20 +03:00
0f9b8f72c1 Make ui::button::set_icon/set_label public 2021-03-05 14:26:45 +03:00
984cae76ae Add todo to sources only if root project 2021-03-05 12:48:23 +03:00
49b58f76c5 UI: rich_image_view use loop instead of calling reshape & region_changed directly 2021-03-05 12:29:31 +03:00
3c4e1f99df Logging: automatically increase max thread name length + properly log thread name if thread unregisters itself 2021-03-05 11:21:05 +03:00
725a7a6ea2 Fix rich_image_view rmb up 2021-03-04 20:35:31 +03:00
104ecb528a Fix task cancelling 2021-03-04 20:30:12 +03:00
8091183375 Fix future::then 2021-03-04 20:30:02 +03:00
08d71a8496 Add async::make_ready_future 2021-03-04 19:45:30 +03:00
4914be8099 Proper sfinae for vector & point constructors instead of static_assert 2021-03-04 18:37:07 +03:00
1bfbaaa840 Support async::future::then 2021-03-04 18:33:58 +03:00
dd32ab00d3 Huge async rewrite: std-like future, promise & packaged task 2021-03-04 18:33:40 +03:00
c26cf898ca Bugfix in util::function: forward the callable instead of moving it 2021-03-04 14:31:15 +03:00
4641c5d7d2 UI element::post uses movable function 2021-03-04 14:30:46 +03:00
9cba2d1c16 Add thread unregistering in log 2021-03-04 14:29:39 +03:00
2f56f0caa2 Add hash for geom::vector 2021-03-04 14:29:09 +03:00
ea46e820ab UI elements should explicitly reset parent for their children 2021-03-04 13:58:15 +03:00
ef34071748 Reimplement async::future without std::future 2021-03-04 11:02:11 +03:00
fccf2e382e Add scrollable & zoomable image view element 2021-03-04 10:03:04 +03:00
486a8b24aa UI painter: add draw_subimage & don't restrict to integer texcoords 2021-03-04 10:02:46 +03:00
576bc8b91a Add geom::unlerp 2021-03-04 10:01:56 +03:00
32461e205e Add geom::clamp(point, box) 2021-03-04 10:01:49 +03:00
e266bb476e Fix unused function warning for release build 2021-03-03 19:46:24 +03:00
bf9e279952 Grid layout changes: support minimized rows/columns + support skipping outer outline 2021-03-03 19:20:09 +03:00
4ba85c9e79 App uses a scene stack & owns scenes 2021-03-03 18:03:40 +03:00
908b6cc5c9 Active scenes can access parent app 2021-03-03 17:27:31 +03:00
fe60386ad7 Support button onclick offset in ui styles 2021-03-03 16:54:42 +03:00
8aa6c8a3bb App: ui_scene updates controller ui root on scene enter/exit 2021-03-03 16:19:22 +03:00
692da35066 App: scene_base tracks whether a scene is currently active 2021-03-03 16:18:18 +03:00
a7f259352c App sends on_scene_exit at the end of main loop 2021-03-03 16:17:50 +03:00
31fbfdaa4d Simplify creating horizontal/vertical layouts 2021-03-03 13:39:01 +03:00
670ac8beda Make ui_scene update event loop 2021-03-03 13:05:03 +03:00
5dda61ab50 UI: use async::event_loop instead of abstract async::executor 2021-03-03 13:03:32 +03:00
336bdde8d2 Add ui::element_factory interface 2021-03-03 12:25:04 +03:00
a362dafee3 Add app::ui_scene helper base class 2021-03-03 12:24:45 +03:00
5e6d52f341 Add (unused) ui key press event 2021-03-03 12:15:52 +03:00
b8fb2d47e3 UI window wip 2021-03-03 10:59:50 +03:00
b9131a8d5c Add red cross image to ui resources 2021-03-03 10:59:34 +03:00
0b30163ed1 Bugfix: ui style merging should merge fonts as well 2021-03-03 10:59:04 +03:00
b37d2d25c7 Implement cached style merging 2021-02-27 20:21:50 +03:00
d0a117adf4 Make style members optional 2021-02-27 19:59:12 +03:00
f878321628 Convert default font to PNG 2021-02-27 19:45:27 +03:00
6661299573 Support reading grayscale pngs 2021-02-27 19:44:17 +03:00
12e2bff790 Fix ui text rendering 2021-02-27 19:43:50 +03:00
08d6469311 Support png image loading 2021-02-27 19:09:14 +03:00
de4a661009 Move netpbm routines to netpbm.cpp 2021-02-27 18:13:40 +03:00
fd5a9b7863 Support button icons 2021-02-27 17:53:37 +03:00
e0e1b97860 Add ui::image_view element 2021-02-27 16:38:58 +03:00
4a8021aa4e Support image rendering in ui::painter 2021-02-27 16:37:05 +03:00