Open GoogleCodeExporter opened 9 years ago
My apologies if these are not correctly created, as I've never neither
submitted code
before nor have I ever created a patch file before, but I think these are how
they
are supposed to look.
Original comment by holy.smo...@gmail.com
on 18 Dec 2008 at 6:08
Attachments:
Wouldn't it be easier to just set the background color to transparent? Or does
that
cause extra rendering?
Original comment by bsm...@gmail.com
on 24 Dec 2008 at 8:33
As far as I'm aware, the background needs to be set to a gcn::Color.
Transparent
implementation in other objects is run in this same way, though, (if isOpaque()
==
TRUE then it draws the background and if not it won't draw it)
I suppose a next question would be, wouldn't make more sense to put this
functionality in gcn::Widget (isOpaque(), setOpaque()) and just add it to
gcn::Widget::draw())?
Original comment by holy.smo...@gmail.com
on 24 Dec 2008 at 9:23
"and just add it to gcn::Widget::draw())"
gcn::Widget::draw is a pure virtual function.
"wouldn't make more sense to put this functionality in gcn::Widget (isOpaque(),
setOpaque())"
What does setOpaque mean for a label or for an image? If the functionality
isn't used
by all widgets I see no reason adding it to the base class.
Original comment by olof.nae...@gmail.com
on 24 Dec 2008 at 9:33
Well, supposing the image has a transparency or certain background for the
label.
That certainly isn't to say their constructors couldn't disable it by default.
Still, I figured it might be worth noting.
Original comment by holy.smo...@gmail.com
on 24 Dec 2008 at 9:36
Original issue reported on code.google.com by
holy.smo...@gmail.com
on 18 Dec 2008 at 4:34