Hitbox used for clickable HUD elements. 更多...
#include <HUDHitBox.h>
Public 成员函数 | |
| const bool | ConsumesInput () const |
| Should other boxes be processed if this box is clicked. 更多... | |
| bool | Contains (FVector2D InCoords) const |
| Are the given coordinates within this hitbox. 更多... | |
| void | Draw (class FCanvas *InCanvas, const FLinearColor &InColor) const |
| Debug render for this hitbox. 更多... | |
| FHUDHitBox (FVector2D InCoords, FVector2D InSize, const FName &InName, bool bInConsumesInput, int32 InPriority) | |
| Constructor for a hitbox. 更多... | |
| const FName & | GetName () const |
| Get the name of this hitbox. 更多... | |
| const int32 | GetPriority () const |
| Get the priority of this hitbox. 更多... | |
Hitbox used for clickable HUD elements.
These are named regions that receive various events when clicked upon.
| FHUDHitBox::FHUDHitBox | ( | FVector2D | InCoords, |
| FVector2D | InSize, | ||
| const FName & | InName, | ||
| bool | bInConsumesInput, | ||
| int32 | InPriority | ||
| ) |
Constructor for a hitbox.
| InCoords | Coordinates of top left of hitbox. |
| InSize | Size of the box. |
|
inline |
Should other boxes be processed if this box is clicked.
| bool FHUDHitBox::Contains | ( | FVector2D | InCoords | ) | const |
Are the given coordinates within this hitbox.
| InCoords | Coordinates to check. |
| void FHUDHitBox::Draw | ( | class FCanvas * | InCanvas, |
| const FLinearColor & | InColor | ||
| ) | const |
Debug render for this hitbox.
| InCanvas | Canvas on which to render. |
| InColor | Color to render the box. |
|
inline |
Get the name of this hitbox.
|
inline |
Get the priority of this hitbox.