Hi Stef, stepharo wrote
OSWindow cannot be the only one backend for Bloc so Bloc events cannot be based on OSEvents. Why that?
Because it is OS"Window" and many devices don't have window and sometime don't have SDL too. If tomorrow, OSWindow become something like OSDirectMedia with support for many kind of devices and backends, my answer will be completely different and in this case you will be right. So, right now OSWindow is used in Bloc for what it is, a nice windowing library based on SDL/OpenGL. stepharo wrote
I do not get why on android we cannot map android event to OSWindowEvents And do not have duplication in Bloc.
Maybe it is possible, maybe not, maybe it is just inconsistent with the rest of OSWindow in its current state. Clearly, I don't know and you? In doubt, i prefer to keep the possibility to use another backend. stepharo wrote
So then it means that OSWindowEvents are not useful. But to me this is bloc events that are not needed.
I don't understand what you mean. The question is not what is the more useful event hierarchy. The question is why we cannot use OSWindow events directly in Bloc right now. The answer is: - because many events do not exist in SDL and are consequently not managed by OSWindow. - because OSWindow events are not design to be used in a scene graph - because some information related to the scene graph are missing in the OSWindow event hierarchy. If you want to improve OSWindow in this way, this mean that part of Bloc has to be moved in OSWindow because: - you need a dispatch/handling mechanism - you need a scene graph - you need to generate high-level events (click, drag, focus,...) depending on nodes in the scene graph Personally, if something has to be done, I would prefer the opposite: to move OSWindow in Bloc ;). stepharo wrote
OSWindow is already used in other projects and these users will not be happy if we remove OSEvents ;). who?
I know that Ronie uses OSWindow for Woden. As i said, if everybody is ok, we can merge OSWindow in Bloc and we can just keep the existing BlEvent hierarchy. As explained, it is not a stupid duplication, many things in Bloc events would have no sense in OSWindow events. I would like also to mention that we are discussing about a justified duplication of a hierarchy which have to be changed maybe every 3 years if magically new events are added in SDL... It is known that it i not perfect to duplicate things but it is localized and today i don't have alternative solution that does not includes to redo/brake OSWindow. <joke> But if you have a concrete solution to avoid that and that does not requires 1000 times more developments than updating the "duplicated" hierarchy once in 2 years, i'm on it ! ;) </joke> Regards, Glenn. ----- Glenn Cavarlé -- View this message in context: http://forum.world.st/Bloc-Hierarchy-of-BiEvent-tp4920209p4920294.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.