For my Gui I want to use the following system: The way it works is that, if the widget under the mouse does not consume a mouse or kb event, it is passed to that widget s parent until it is consumed or the desktop is reached.
Just one thing puzzles me about it. Does that mean if a Button, for whatever reason has a Label as one of its children. If I click the label, would that not mean that my button, which is under the label would click (since a label does not consume the mouse), which is undesired in this case. Does that mean I d have to do if(mouseEvent.source == this){do button stuff} ?
增 编