Commit graph

57 commits

Author SHA1 Message Date
9481997034 Support retrieving ui:🪟:on_close callback & explicitly closing a window 2023-01-03 23:31:36 +03:00
d6f53ed76f Make default ui::selector use fg_color instead of bg_color 2022-12-23 09:59:31 +03:00
a63bc2eb01 Add submenu arrows to default ui::selector 2022-12-22 16:33:46 +03:00
932e64a991 Fix default ui::button child & size constraints handling 2022-12-20 17:11:54 +03:00
852a170c97 Add default ui::edit implementation 2022-12-18 21:55:30 +03:00
9ab72a7c1a Fix default ui::window impl event handling 2022-12-18 21:55:23 +03:00
1c9fb28ebf Implement shadows in default selector impl 2022-12-18 19:22:55 +03:00
a1307b84b9 Support changing ui::default_element_factory close icon 2022-12-18 18:17:40 +03:00
3d2c03c1b4 Implement default ui::selector 2022-12-18 16:42:39 +03:00
83cb71d2c0 Implement width/height_constraints for default ui::frame implementation 2022-12-18 16:42:27 +03:00
11e46ba1c6 Support retrieving caption label from ui::window 2022-12-08 17:53:55 +03:00
59de6682ba Support retrieving buttons from spinbox 2022-05-17 23:16:26 +03:00
3f9275b2ad Remove toggle_button, make checkbox support children by default 2022-05-17 22:03:40 +03:00
9c744b9a21 Throw if set_child is called for default arrow button 2022-05-17 21:27:44 +03:00
bfb8ba407b Remove rich_button, make any button able to contain a child element 2022-05-17 21:25:01 +03:00
6412238e19 Make ui::style::inner_margin a 2D vector 2022-03-09 19:25:56 +03:00
f139b1ca1f Don't include all ui elements in element_factory.hpp, forward declare them instead 2022-03-09 16:44:43 +03:00
75e6db45f1 Redesign resources system: centralized id-based resource registry 2022-03-07 00:05:40 +03:00
eb78e2cdb7 Make image_view use texture_view instead of owning a texture 2022-02-17 18:54:14 +03:00
681bc5cc25 Fix ui frame_impl size constraints 2022-02-05 20:44:17 +03:00
b4f116cada Implement scroller ui container 2021-10-15 21:38:23 +03:00
3a5e29835f Implement bevels in default_element_factory frame 2021-10-13 23:16:25 +03:00
7499785c72 Support non-propagating styles in ui elements 2021-10-13 22:52:45 +03:00
90d5917ef4 Fix default window event handling: events are considered processed if mouse is over window 2021-07-21 22:04:59 +03:00
6dd5fd5ee7 Add ui::checkbox interface & default implementation 2021-07-17 17:46:17 +03:00
9f550d7a46 Default window tweaks: add caption margin & draw background 2021-07-17 17:45:26 +03:00
188f840372 Support ui:🪟:on_close 2021-07-17 17:44:41 +03:00
8c21543ecb Support draggable windows 2021-07-17 12:31:13 +03:00
5e62e6fa26 Add missing override specifications 2021-05-28 11:32:21 +03:00
eecc054870 Use io::stream for png input 2021-04-20 15:11:41 +03:00
27bd390381 UI spinbox implementation 2021-03-05 23:33:19 +03:00
3faccd1256 Default ui element factory supports arrow buttons 2021-03-05 23:13:57 +03:00
4383ce7e8b Separate ui::button into button & rich_button 2021-03-05 22:57:39 +03:00
6ad43ff0a5 Add ui::style::ref_height 2021-03-05 22:34:30 +03:00
bcba2893bf Fix action offset in button children 2021-03-05 15:55:36 +03:00
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
fe60386ad7 Support button onclick offset in ui styles 2021-03-03 16:54:42 +03:00
336bdde8d2 Add ui::element_factory interface 2021-03-03 12:25:04 +03:00
b8fb2d47e3 UI window wip 2021-03-03 10:59:50 +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
fd5a9b7863 Support button icons 2021-02-27 17:53:37 +03:00
226b862e95 Remove style from element factory 2021-02-27 10:57:30 +03:00
1e9eb51911 Implement ui grid layout 2021-02-26 22:57:43 +03:00
3c851dfd60 Fix ui::frame size constraints 2021-02-26 14:34:58 +03:00
619c4edbe2 Add frame element 2021-02-25 21:09:26 +03:00
673fc70a47 Create ui labels through element factory 2021-02-25 21:02:41 +03:00
33256b6549 Proper default button size constraints 2021-02-25 15:15:12 +03:00
d42e1b1bcb Use shared_ptr instead of unique_ptr for ui elements 2021-02-25 14:42:35 +03:00