millennium-dev team mailing list archive
-
millennium-dev team
-
Mailing list archive
-
Message #00196
[Bug 1206590] [NEW] Widgets should be able to react on mouse-over
Public bug reported:
A lot of widgets might want to react when mouse pointer touches them.
For example, buttons might want to change their color in such case,
other widgets may display additional options when touched.
That means we'll need to listen for one more event in the main loop.
Handling this will be similar to clicks, coordinates need to be
processed recursively.
Widgets have to be notified when mouse pointer enters the area of the widget, *and when it leaves it* (so that the button would change it's bg color to normal back again). There are several equally good ways to accomplish this, one of ideas is as follows:
- Each time the currently untouched widget is touched, previously touched one should be found and told it is no longer touched.
- Containers that contain a touched widget are, themselves, also touched. That means whenever a container recognizes that a mouse is now over a new children that wasn't touched in last mouse' position, it should find which of it's children was touched before, tell it it's no longer touched, and it should recursively unmark all it's children. Then the parent widget passes the mouse-over event to the appropriate child.
** Affects: millenniumduel
Importance: Medium
Status: New
** Summary changed:
- Widgets are unable to react on mouse-over
+ Widgets should be able to react on mouse-over
--
You received this bug notification because you are a member of
Millennium Developers, which is subscribed to Millennium Duel.
https://bugs.launchpad.net/bugs/1206590
Title:
Widgets should be able to react on mouse-over
Status in Millennium Duel - a GUI frontend for Millennium:
New
Bug description:
A lot of widgets might want to react when mouse pointer touches them.
For example, buttons might want to change their color in such case,
other widgets may display additional options when touched.
That means we'll need to listen for one more event in the main loop.
Handling this will be similar to clicks, coordinates need to be
processed recursively.
Widgets have to be notified when mouse pointer enters the area of the widget, *and when it leaves it* (so that the button would change it's bg color to normal back again). There are several equally good ways to accomplish this, one of ideas is as follows:
- Each time the currently untouched widget is touched, previously touched one should be found and told it is no longer touched.
- Containers that contain a touched widget are, themselves, also touched. That means whenever a container recognizes that a mouse is now over a new children that wasn't touched in last mouse' position, it should find which of it's children was touched before, tell it it's no longer touched, and it should recursively unmark all it's children. Then the parent widget passes the mouse-over event to the appropriate child.
To manage notifications about this bug go to:
https://bugs.launchpad.net/millenniumduel/+bug/1206590/+subscriptions
Follow ups
References