Board index FlightGear Development Canvas

Makeing a canvas window transparent?

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Re: Makeing a canvas window transparent?

Postby Hooray » Fri Feb 24, 2017 4:04 pm

IIRC, the child canvas is treated as a raster image - thus, you should only have to set the top-level group's alpha/transparency accordingly, and everything should work work/look correctly (note, I haven't actually tried this - but that's how I remember the system to be designed).

Basically, the window is a composed of raster images that are recursively added, and the content is taken from another/embedded Canvas.

For details, refer to the implementation of Canvas::Window/Canvas::Image and Canvas::Element (I think you once mentioned being familiar with C++?)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11263
Joined: Tue Mar 25, 2008 8:40 am

Previous

Return to Canvas

Who is online

Users browsing this forum: No registered users and 2 guests