From a338adecd93b328816b4a3ff51bfb278377c7cf9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 28 Sep 2022 20:10:07 +0200 Subject: margin, scroll, richtext --- TODO | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'TODO') diff --git a/TODO b/TODO index a4d3437..a708437 100644 --- a/TODO +++ b/TODO @@ -9,4 +9,13 @@ Cut widget collision check by scissor. Handle scrolling when resizing scroll content and widget items change size (images downscaled, richtext wrapping, etc). Cut event and size calculation for widgets outside scissor. Calculate text (richtext and label) height better when its a single line. In such cases it should be the glyph height and not character size. -Move richtext vertices to global space and only add vertices for the visible richtext. \ No newline at end of file +Move richtext vertices to global space and only add vertices for the visible richtext. +Create an effect widget. This would allow all children to have an effect applied to it (also support multiple effects at the same time), such as rounded corners. +Have a global effect loader for widgets that the end user can overwrite in their system mglgui theme folder to apply effects. Also have json files for themes. +Allow creating custom widgets, and perhaps allow the end user to create their own custom widget shared libraries to overwrite rendering of widgets. +Add checks in mgl that everything is done in the same thread as mgl_init. Especially in deinit functions. +Reduce number of font atlases by rounding the font size up to power of two and then downscaling the rendering to the font size (either here or in mgl). +Implement a sprite sheet that automatically creates a sprite sheet from images (almost like the font atlas). That reduces memory usage and improves performance (either here or in mgl). +Implement a method to load/unload widgets in a scrollview list to allow easy loading of items when visible on the screen and unload to save memory. +Overlay widget to implement context menu and watch progress in quickmedia. +Do not call event handler for widgets that are not visible, but call a widget specific handler when widget is set to visible/not visible to reset things (such as selecting text). \ No newline at end of file -- cgit v1.2.3