HoverRace  2.0
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
HoverRace::Display::Hud::HudAlignment Struct Reference

#include <Hud.h>

Public Types

enum  type {
  ABOVE, BELOW, N, NNE,
  NE, ENE, E, ESE,
  SE, SSE, S, SSW,
  SW, WSW, W, WNW,
  NW, NNW
}
 

Static Public Member Functions

static Alignment AlignmentFor (type t)
 
static type FromInt (int t)
 Safely convert from an int. More...
 
static bool IsCorner (type t)
 

Static Public Attributes

static const size_t NUM = NNW + 1
 

Member Enumeration Documentation

Enumerator
ABOVE 

Centered in the top-half of the screen.

BELOW 

Centered in the bottom-half of the screen.

Center-north, stacked left-to-right.

NNE 

Northeast corner, stacked right-to-left.

NE 

Northeast corner, only top is visible.

ENE 

Northeast corner, stacked top-to-bottom.

Center-east, stacked top-to-bottom.

ESE 

Southeast corner, stacked bottom-to-top.

SE 

Southeast corner, only top is visible.

SSE 

Southeast corner, stacked right-to-left.

Center-south, stacked left-to-right.

SSW 

Southwest corner, stacked left-to-right.

SW 

Southwest corner, only top is visible.

WSW 

Southwest corner, stacked bottom-to-top.

Center-west, stacked top-to-bottom.

WNW 

Northwest corner, stacked top-to-bottom.

NW 

Northwest corner, only top is visible.

NNW 

Northwest corner, stacked left-to-right.

Member Function Documentation

static Alignment HoverRace::Display::Hud::HudAlignment::AlignmentFor ( type  t)
inlinestatic
static type HoverRace::Display::Hud::HudAlignment::FromInt ( int  t)
inlinestatic

Safely convert from an int.

Parameters
tThe int value.
Returns
The HudAlignment enum value.
Exceptions
ExceptionThe int value is does not map to a valid enum value.
static bool HoverRace::Display::Hud::HudAlignment::IsCorner ( type  t)
inlinestatic

Member Data Documentation

const size_t HoverRace::Display::Hud::HudAlignment::NUM = NNW + 1
static

The documentation for this struct was generated from the following file: