|
Drag[en]gine Script Module DragonScript 1.32.1
|
Find closest widget to focus for directional navigation. More...
Public Member Functions | |
| void | addIgnoreWidget (Widget widget) |
| Add widget to ignore list. | |
| void | addIgnoreWidgetFocusable (Widget widget) |
| Add widget or first focusable parent if widget is not focusable. | |
| RectArea | getBestHitBox () |
| Best hit box or null. | |
| Widget | getBestHitWidget () |
| Best hit widget or null. | |
| int | getBestHitX () |
| Best hit box distance along X axis in pixels. | |
| RectArea | getBestNearestBox () |
| Best nearest box. | |
| Widget | getBestNearestWidget () |
| Best nearest widget or null. | |
| int | getBestNearestX () |
| Best nearest box distance along X axis in pixels. | |
| Widget | getBestWidget () |
| Best widget to use. | |
| RectArea | getOriginBox () |
| Origin box. | |
| bool | hasIgnoreWidget (Widget widget) |
| Ignore widget is present. | |
| ClosestDirectionFocusFinder | new (int direction, Point position, Point size) |
| Create finder for search direction. | |
| void | processWidget (Widget widget, Point position, Point size) |
| Process widget. | |
| void | reset () |
| Reset finder. | |
Protected Member Functions | |
| void | challengeBest (Widget widget) |
| Compare processed widget against best widget and keep the winner. | |
Protected Attributes | |
| RectArea | pBestHitBox |
| Widget | pBestHitWidget |
| int | pBestHitX |
| Point | pDirY |
| RectArea | pHitBox |
| Array | pIgnoreWidgets |
| RectArea | pOriginBox |
Find closest widget to focus for directional navigation.
| void Dragengine.Gui.ClosestDirectionFocusFinder.addIgnoreWidget | ( | Widget | widget | ) |
Add widget to ignore list.
| void Dragengine.Gui.ClosestDirectionFocusFinder.addIgnoreWidgetFocusable | ( | Widget | widget | ) |
Add widget or first focusable parent if widget is not focusable.
|
protected |
Compare processed widget against best widget and keep the winner.
| RectArea Dragengine.Gui.ClosestDirectionFocusFinder.getBestHitBox | ( | ) |
Best hit box or null.
| Widget Dragengine.Gui.ClosestDirectionFocusFinder.getBestHitWidget | ( | ) |
Best hit widget or null.
| int Dragengine.Gui.ClosestDirectionFocusFinder.getBestHitX | ( | ) |
Best hit box distance along X axis in pixels.
| RectArea Dragengine.Gui.ClosestDirectionFocusFinder.getBestNearestBox | ( | ) |
Best nearest box.
| Widget Dragengine.Gui.ClosestDirectionFocusFinder.getBestNearestWidget | ( | ) |
Best nearest widget or null.
| int Dragengine.Gui.ClosestDirectionFocusFinder.getBestNearestX | ( | ) |
Best nearest box distance along X axis in pixels.
| Widget Dragengine.Gui.ClosestDirectionFocusFinder.getBestWidget | ( | ) |
Best widget to use.
| RectArea Dragengine.Gui.ClosestDirectionFocusFinder.getOriginBox | ( | ) |
Origin box.
| bool Dragengine.Gui.ClosestDirectionFocusFinder.hasIgnoreWidget | ( | Widget | widget | ) |
Ignore widget is present.
| ClosestDirectionFocusFinder Dragengine.Gui.ClosestDirectionFocusFinder.new | ( | int | direction, |
| Point | position, | ||
| Point | size | ||
| ) |
Create finder for search direction.
| direction | Direction as InputEventKey::arrowLeft, InputEventKey::arrowRight, InputEventKey::arrowUp or InputEventKey::arrowDown. |
| position | Position of origin widget relative to origin. |
| size | Size of origin widget. |
| void Dragengine.Gui.ClosestDirectionFocusFinder.processWidget | ( | Widget | widget, |
| Point | position, | ||
| Point | size | ||
| ) |
Process widget.
| widget | Widget to process. |
| position | Position of widget relative to origin. |
| size | Size of widget. |
| void Dragengine.Gui.ClosestDirectionFocusFinder.reset | ( | ) |
Reset finder.
Reimplemented in Dragengine.Gui.MainMenus.Interactive.IMMInteract.IMMClosestDirectionFocusFinder.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |