U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » gui_sizeof branch merged to master
gui_sizeof branch merged to master [message #58502] Fri, 03 June 2022 11:53 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
This is massive optimization of CtrlCore / CtrlLib meant to reduce the memory footprint of widgets.

While most changes are limited to CtrlCore, there are some minimal interface changes:

- caret handling is changed to virtual method; there is no more Ctrl::SetCaret method but virtual Rect GetCaret() const;

- Label is no longer derived from LabelBase (irronically Smile

Also note of interest is the new PackedData class in Core and set of protected Ctrl::*Attr* methods - this allows effective sparse attribute storage (e.g. most of time Label does not have any additional attributes like special Font. If it does, PackedData allocates heap block when it effectively stores only attributes that are not default, usually fitting within additional 32 heap bytes).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ 2022.2
Next Topic: U++ online meetup with community
Goto Forum:
  


Current Time: Sat Jun 20 19:44:30 GMT+2 2026

Total time taken to generate the page: 0.00728 seconds