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

Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Painting refactored...
Painting refactored... [message #4111] Fri, 21 July 2006 12:17
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
The most important difference is that frames are now transparent.

Painting engine was optimized, should be now faster.

Following complicated Ctrl virtuals are now gone:

	virtual Vector<Rect> GetTransparentFrameRects();
	virtual Vector<Rect> GetOpaqueFrameRects();
	virtual Vector<Rect> GetTransparentViewRects();
	virtual Vector<Rect> GetOpaqueViewRects();


replaced by simple

	virtual Rect   GetOpaqueRect();


which can simply return the opaque view rect (and painting engine uses that value to optimize drawing). Default implementation is

Rect Ctrl::GetOpaqueRect()
{
	return IsTransparent() ? Rect(0, 0, 0, 0) : GetSize();
}


Mirek

[Updated on: Fri, 21 July 2006 12:17]

Report message to a moderator

Previous Topic: Chamelon progress....
Next Topic: Alpha composition
Goto Forum:
  


Current Time: Sat Apr 25 01:01:27 GMT+2 2026

Total time taken to generate the page: 0.00411 seconds