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 next message
mirek is currently offline  mirek
Messages: 13975
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
Re: gui_sizeof branch merged to master [message #58506 is a reply to message #58502] Fri, 03 June 2022 18:22 Go to previous messageGo to next message
andrew is currently offline  andrew
Messages: 2
Registered: October 2021
Junior Member
Awesome! I really appreciate you keeping UPP tightly coded and optimized!

--Andrew
Re: gui_sizeof branch merged to master [message #58516 is a reply to message #58502] Mon, 06 June 2022 09:51 Go to previous messageGo to next message
pvictor is currently offline  pvictor
Messages: 67
Registered: December 2015
Member
Hi Mirek,

StaticText and Label don't have any method for getting text back (GetText) anymore.

Best Regards,
Victor
Re: gui_sizeof branch merged to master [message #58517 is a reply to message #58516] Mon, 06 June 2022 09:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
pvictor wrote on Mon, 06 June 2022 09:51
Hi Mirek,

StaticText and Label don't have any method for getting text back (GetText) anymore.

Best Regards,
Victor


Thanks, fixed.
Re: gui_sizeof branch merged to master [message #58524 is a reply to message #58517] Wed, 08 June 2022 09:38 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi Mirek,

Thanks! Looks good. Just some compiler warnings to fix with MSBT22/MSBT22x64.

Best regards,

Tom
Re: gui_sizeof branch merged to master [message #58592 is a reply to message #58524] Thu, 30 June 2022 01:58 Go to previous message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
Great! I have been expecting it. Thank you for the great job!
Previous Topic: U++ 2022.2
Next Topic: U++ online meetup with community
Goto Forum:
  


Current Time: Fri Apr 19 17:14:11 CEST 2024

Total time taken to generate the page: 0.01348 seconds