Mike Emmel wrote: > In working on the Xserver and finally starting on my own window > manager I found that it looks like it would be really useful to add a > SetVisible method to window this would allow the window manager to > hook setting the opacity so it could for example fade in and out the > window or perform some other transition like OSX does a 3D crumple. I > also noticed were missing minimize. > > So I propose we add > > SetVisible > > Not sure for minimize/maximize/fullscreen ? > > > maybe a SetWindowState ( mask ) > > In fact we could simple add just SetWindowState that takes a mask it would > have > > NORMAL > MINIMIZED > MAXIMIZED > > HIDDEN > SHOWN
These multiple choices shouldn't be in a mask or even in one. They're two enums. It would become awkward to change one item. You also have to ensure only one flag is set in each group. > And probably more but if we add the SetWindowState function with a mask we can > add more as needed. Instead of one mask we should provide an array of attributes which can be ints, enums or whatever. Still one single function to set an attribute identified by its id (index). Attributes could be introduced at runtime, maybe by the wm. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
