class UnitType

Defined at line 2228 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h

This provides an easy, standardized way to specify units. New units can

be added as needed. Each UnitType should be named after a specific unit that

should be fully distinguished by the name (E.g: Use METERS instead of

DISTANCE). More complicated units that need to be differentiated should

begin with SI_ (for Internation System of Units) or ENGLISH_ (for English

System of Units).

Public Members

static UnitType kNone
static UnitType kOther
static UnitType kMeters
static UnitType kGrams
static UnitType kDegrees
static UnitType kEnglishAngularVelocity
static UnitType kSiLinearVelocity
static UnitType kSiLinearAcceleration
static UnitType kWebers
static UnitType kCandelas
static UnitType kPascals
static UnitType kLux
static UnitType kSeconds

Public Methods

void UnitType ()

Defined at line 2277 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h

void UnitType (uint32_t value)

Defined at line 2278 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h

EnumForSwitching_ operator fuchsia_input::UnitType::EnumForSwitching_ ()

Defined at line 2279 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h

uint32_t operator unsigned int ()

Defined at line 2280 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h

bool IsUnknown ()

Defined at line 2282 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h

UnitType Unknown ()

Returns an enum corresponding to the member designated as

in the

FIDL schema if exists, or a compiler-reserved unknown value otherwise.

Defined at line 2317 of file fidling/gen/sdk/fidl/fuchsia.input/fuchsia.input/cpp/fidl/fuchsia.input/cpp/common_types.h