AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Types | Static Public Member Functions | Public Attributes | List of all members
alexaClientSDK::visualCharacteristicsInterfaces::Dimension Struct Reference

#include <VisualCharacteristicsInterface.h>

Public Types

enum  Unit {
  Unit::PIXEL, Unit::DPI, Unit::DP, Unit::CENTIMETERS,
  Unit::INCHES
}
 Enum defining the units for dimension. More...
 

Static Public Member Functions

static const std::string unitToText (const Unit unit)
 

Public Attributes

Unit unit
 Unit for this dimension. More...
 
double width
 Width in unit dimensions. More...
 
double height
 Height in unit dimensions. More...
 

Detailed Description

The dimension configuration

Member Enumeration Documentation

◆ Unit

Enum defining the units for dimension.

Enumerator
PIXEL 

Unit in pixels.

DPI 

Unit in pixels.

DP 

Unit in dp.

CENTIMETERS 

Unit in centimeter.

INCHES 

Unit in inch.

Member Function Documentation

◆ unitToText()

static const std::string alexaClientSDK::visualCharacteristicsInterfaces::Dimension::unitToText ( const Unit  unit)
inlinestatic

Convert enum to string

Parameters
unitUNIT value
Returns
Text defining the enum

Member Data Documentation

◆ height

double alexaClientSDK::visualCharacteristicsInterfaces::Dimension::height

Height in unit dimensions.

◆ unit

Unit alexaClientSDK::visualCharacteristicsInterfaces::Dimension::unit

Unit for this dimension.

◆ width

double alexaClientSDK::visualCharacteristicsInterfaces::Dimension::width

Width in unit dimensions.


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

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0