christianboutin.com
22-09-2009 01:08:51
I have different menu screens and each screen contains a vector of Widgets. And when I call "hide" on any of those screens I want to hide all the widgets on it.
Also, should I want to animate the buttons, maybe have them appear from outside the screen and move into position. Can I do it considering the setPosition of the Button widget (or any widget) is also protected?
in the header file of the widget there are 2 blocks of "protected:" methods. Under the one I changed to public is the mention :
So it's obvious that these methods being protected is by design. I wonder if that's the best way to go, or how I can go about turning widgets visible/invisible or moving them around from the outside without those methods. Thanks!
Also, should I want to animate the buttons, maybe have them appear from outside the screen and move into position. Can I do it considering the setPosition of the Button widget (or any widget) is also protected?
in the header file of the widget there are 2 blocks of "protected:" methods. Under the one I changed to public is the mention :
// The following functions are protected because all inheritted classes should not allow
// public access to them. For example, a MenuItem is a Widget, but should not allow users
// to manipulate its size or position.
So it's obvious that these methods being protected is by design. I wonder if that's the best way to go, or how I can go about turning widgets visible/invisible or moving them around from the outside without those methods. Thanks!