Interface GuiEventManager
-
- All Superinterfaces:
be.yildizgames.module.window.input.WindowInputListener
- All Known Implementing Classes:
EventBubblingDispatcher
public interface GuiEventManager extends be.yildizgames.module.window.input.WindowInputListener- Author:
- Grégory Van den Borre
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddView(View view)Add a view to the dispatcher and set all listeners list for that view.BaseWidgetgetWidgetUnderMouse()voidremoveView(View view)Remove a View from the event dispatch.voidsetDebugListener(be.yildizgames.common.client.debug.DebugListener listener)voidsetDefaultView(View view)voidsetFocus(View view)Set the focus on a particular View.-
Methods inherited from interface be.yildizgames.module.window.input.WindowInputListener
keyboardKeyPressed, keyboardKeyReleased, mouseDoubleClick, mouseDragLeft, mouseDragRight, mouseDragWheel, mouseLeftClick, mouseLeftReleased, mouseMove, mouseRightClick, mouseRightReleased, mouseWheel, specialKeyPressed, specialKeyReleased
-
-
-
-
Method Detail
-
addView
void addView(View view)
Add a view to the dispatcher and set all listeners list for that view.- Parameters:
view- View to add.
-
removeView
void removeView(View view)
Remove a View from the event dispatch.- Parameters:
view- View to remove, it will no longer be affected by mouse and keyboard events.
-
setFocus
void setFocus(View view)
Set the focus on a particular View.- Parameters:
view- View to set the focus on.
-
getWidgetUnderMouse
BaseWidget getWidgetUnderMouse()
- Returns:
- The current widget under the mouse.
-
setDebugListener
void setDebugListener(be.yildizgames.common.client.debug.DebugListener listener)
-
setDefaultView
void setDefaultView(View view)
-
-