extend the getregiondata call to return the region rectangles in GTK2 and QT
Original Reporter info from Mantis: taazz
-
Reporter name: John Kozikopoulos
Original Reporter info from Mantis: taazz
- Reporter name: John Kozikopoulos
Description:
Extending the base graphics abilities of LCL I would like to see the GetRegionData implemented for all the platforms that support converting a region in to rectangles.
QRegion class has a Rects property that returns an array of rects unfortunality this method is not exported from the QT4pas dll and I don't have enough knowledge to work on it myself.
GTK2 also has the gdk_region_get_rectangles call which is already defined in the interfaces and can be used.
Windows Description of the GetRegiondata.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd144920%28v=vs.85%29.aspx
GDK documentation on the subject
https://developer.gnome.org/gdk/stable/gdk-Points-Rectangles-and-Regions.html#gdk-region-get-rectangles
QT Documentation on the subject
http://harmattan-dev.nokia.com/docs/library/html/qt4/qregion.html#rects
This will give lcl a more complete Region api. It can be encapsulated in a class or not it doesn't matter much as long as the api is there.
If the above enhancement are made to LCL it would be a breeze to also extend the TransformRgn windows API to multiple widget sets.
Mantis conversion info:
- Mantis ID: 24798
- Version: 1.0.10
- Monitored by: » taazz (John Kozikopoulos)