Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13980
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: Mon May 13 15:29:08 CEST 2024

Total time taken to generate the page: 0.02351 seconds