Android-cuttlefish cvd tool
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
teeui Namespace Reference

Namespaces

namespace  bits
 
namespace  localization
 
namespace  msg
 

Classes

struct  Add
 
class  Array
 
struct  BinOp
 
class  Box
 
class  Button
 
class  ButtonImpl
 
class  ByteBufferProxy
 
struct  Callback
 
struct  Callback< Ret(Args...)>
 
struct  CallbackHelper
 
struct  choose_hton
 
struct  choose_hton< IntType, __ORDER_BIG_ENDIAN__ >
 
struct  choose_hton< IntType, __ORDER_LITTLE_ENDIAN__ >
 
class  context
 
class  context< MetaList< MetaParam< ParamsNames, ParamTypes >... >, Numeric >
 
class  ConvexObject
 
class  Coordinate
 
struct  Div
 
class  Error
 
struct  Event
 
class  FontBuffer
 
class  Handle
 
struct  HandleDelete
 
class  HMac
 
struct  isCoordinateParam
 
struct  isCoordinateParam< MetaParam< ParamName, ParamType > >
 
struct  isCoordinateType
 
struct  isCoordinateType< Coordinate< Unit, Numeric > >
 
struct  isMetaParam
 
struct  isMetaParam< MetaParam< ParamName, ParamType > >
 
class  Label
 
class  LabelImpl
 
struct  LayoutElement
 
struct  MetaList
 
struct  MetaList2Layout
 
struct  MetaList2Layout< MetaList< Elements... > >
 
struct  MetaParam
 
struct  metaParam2Param
 
struct  metaParam2Param< MetaParam< ParamName, ParamType > >
 
struct  metaParam2ParamType
 
struct  metaParam2ParamType< MetaParam< ParamName, ParamType > >
 
struct  MetaParam< Name, Coordinate< Unit, Numeric > >
 
struct  Mul
 
class  Param
 
class  Range
 
class  static_vec
 
struct  Sub
 
class  TextContext
 
class  TextFace
 
struct  UnitT
 
class  UTF8Range
 
class  UTF8WordRange
 
class  Vec2d
 

Typedefs

using MsgString = static_vec< char >
 
template<typename T >
using MsgVector = static_vec< T >
 
using GlyphIndex = unsigned int
 
using AuthTokenKey = Array< uint8_t, kAuthTokenKeySize >
 
using Hmac = AuthTokenKey
 
using px = UnitT< Unit::PX >
 
using dp = UnitT< Unit::DP >
 
using mm = UnitT< Unit::MM >
 
using DefaultNumericType = float
 
template<typename T1 , typename T2 , typename Numeric >
using add = BinOp< T1, T2, Numeric, Add >
 
template<typename T1 , typename T2 , typename Numeric >
using sub = BinOp< T1, T2, Numeric, Sub >
 
template<typename T1 , typename T2 , typename Numeric >
using mul = BinOp< T1, T2, Numeric, Mul >
 
template<typename T1 , typename T2 , typename Numeric >
using div = BinOp< T1, T2, Numeric, Div >
 
using dps = Coordinate< dp >
 
using mms = Coordinate< mm >
 
using pxs = Coordinate< px >
 
using Color = uint32_t
 
template<typename Coord >
using Point = Vec2d< Coord >
 
using PxPoint = Point< pxs >
 
using PxVec = Vec2d< pxs >
 
using CallbackEvent = Callback< Error(Event)>
 
using PixelDrawer = Callback< Error(uint32_t, uint32_t, Color)>
 
template<typename Fn >
using PixelDrawerHelper = CallbackHelper< Fn, Error, uint32_t, uint32_t, Color >
 
template<typename T >
using layout_t = typename MetaList2Layout< T >::type
 

Enumerations

enum class  UIOption : uint32_t { AccessibilityInverted = 0u , AccessibilityMagnified = 1u }
 
enum class  ResponseCode : uint32_t {
  OK = 0u , Canceled = 1u , Aborted = 2u , OperationPending = 3u ,
  Ignored = 4u , SystemError = 5u , Unimplemented = 6u , Unexpected = 7u ,
  UIError = 0x10000 , UIErrorMissingGlyph , UIErrorMessageTooLong , UIErrorMalformedUTF8Encoding
}
 
enum class  MessageSize : uint32_t { MAX = 6144u }
 
enum class  TestKeyBits : uint8_t { BYTE = 165 }
 
enum class  TestModeCommands : uint64_t { OK_EVENT = 0ull , CANCEL_EVENT = 1ull }
 
enum class  Alignment : int8_t {
  LEFT , CENTER , RIGHT , TOP ,
  BOTTOM
}
 
enum class  Unit : uint8_t { PX , DP , MM }
 
enum class  EventType : uint8_t { KeyDown , KeyUp , KeyMoved }
 

Functions

 DECLARE_PARAMETER (RightEdgeOfScreen)
 
 DECLARE_PARAMETER (BottomOfScreen)
 
 DECLARE_PARAMETER (DefaultFontSize)
 
 DECLARE_PARAMETER (BodyFontSize)
 
 DECLARE_TYPED_PARAMETER (ShieldColor, ::teeui::Color)
 
 DECLARE_TYPED_PARAMETER (ColorText, ::teeui::Color)
 
 DECLARE_TYPED_PARAMETER (ColorBG, ::teeui::Color)
 
 CONSTANT (BorderWidth, dps(24))
 
 DECLARE_FONT_BUFFER (RobotoMedium, RobotoMedium, RobotoMedium_length)
 
 DECLARE_FONT_BUFFER (RobotoRegular, RobotoRegular, RobotoRegular_length)
 
 DECLARE_FONT_BUFFER (Shield, Shield, Shield_length)
 
 CONSTANT (DefaultFont, FONT(RobotoRegular))
 
 DECLARE_TYPED_PARAMETER (ColorButton, ::teeui::Color)
 
 NEW_PARAMETER_SET (ConfUIParameters, RightEdgeOfScreen, BottomOfScreen, DefaultFontSize, BodyFontSize, ShieldColor, ColorText, ColorBG, ColorButton)
 
 CONSTANT (IconShieldDistanceFromTop, dps(100))
 
 CONSTANT (LabelBorderZone, dps(4))
 
 CONSTANT (RightLabelEdge, RightEdgeOfScreen() - BorderWidth)
 
 CONSTANT (LabelWidth, RightLabelEdge - BorderWidth)
 
 CONSTANT (ButtonHeight, dps(72))
 
 CONSTANT (ButtonPositionX, 0)
 
 CONSTANT (ButtonPositionY, BottomOfScreen() - ButtonHeight)
 
 CONSTANT (ButtonWidth, dps(130))
 
 CONSTANT (ButtonLabelDistance, dps(12))
 
 FontSize (dps(24))
 
 LineHeight (dps(24))
 
 NumberOfLines (1)
 
 Dimension (LabelWidth, HeightFromLines)
 
 Position (BorderWidth, IconShieldDistanceFromTop)
 
 DefaultText ("A")
 
 TextColor (ShieldColor())
 
 HorizontalTextAlignment (Alignment::CENTER)
 
 Font (FONT(Shield))
 
 END_ELEMENT ()
 
 FontSize (dps(20))
 
 LineHeight (dps(20))
 
 Position (BorderWidth, BOTTOM_EDGE_OF(IconShield)+dps(16))
 
 DefaultText ("Android Protected Confirmation")
 
 Font (FONT(RobotoMedium))
 
 TextColor (ColorText())
 
 TextID (TEXT_ID(TranslationId::TITLE))
 
 Dimension (ButtonWidth, ButtonHeight - BorderWidth)
 
 Position (RightEdgeOfScreen() - ButtonWidth - BorderWidth, ButtonPositionY+ButtonLabelDistance)
 
 CornerRadius (dps(4))
 
 ButtonColor (ColorButton())
 
 FontSize (BodyFontSize())
 
 LineHeight (BodyFontSize() *pxs(1.4))
 
 Dimension (ButtonWidth -(LabelBorderZone *dps(2)), ButtonHeight - BorderWidth -(LabelBorderZone *dps(2)))
 
 Position (RightEdgeOfScreen() - ButtonWidth - BorderWidth+LabelBorderZone, ButtonPositionY+ButtonLabelDistance+LabelBorderZone)
 
 DefaultText ("Confirm")
 
 VerticalTextAlignment (Alignment::CENTER)
 
 TextColor (ColorBG())
 
 TextID (TEXT_ID(TranslationId::CONFIRM))
 
 Position (BorderWidth+LabelBorderZone, ButtonPositionY+ButtonLabelDistance+LabelBorderZone)
 
 DefaultText ("Cancel")
 
 HorizontalTextAlignment (Alignment::LEFT)
 
 TextColor (ColorButton())
 
 TextID (TEXT_ID(TranslationId::CANCEL))
 
 FontSize (DefaultFontSize())
 
 LineHeight (DefaultFontSize() *pxs(1.5))
 
 NumberOfLines (4)
 
 Position (BorderWidth, ButtonPositionY - dim_h - dps(48))
 
 DefaultText ("This confirmation provides an extra layer of security for the action " "you're " "about to take.")
 
 VerticalTextAlignment (Alignment::BOTTOM)
 
 Font (DefaultFont)
 
 TextID (TEXT_ID(TranslationId::DESCRIPTION))
 
 NumberOfLines (20)
 
 Position (BorderWidth, BOTTOM_EDGE_OF(LabelTitle)+dps(16))
 
 Dimension (LabelWidth, LabelHint::pos_y - pos_y - dps(24))
 
 DefaultText ("12345678901234567890123456789012345678901234567890123456789012345678901234" "567890123456" "78901234567890")
 
 Font (FONT(RobotoRegular))
 
 NEW_LAYOUT (ConfUILayout, IconShield, LabelTitle, LabelHint, LabelBody, IconOk, LabelOK, LabelCancel)
 
template<typename T >
const uint8_t * copyField (T &field, const uint8_t *(&pos))
 
template<typename T >
uint8_t * copyField (const T &field, uint8_t *(&pos))
 
template<typename T >
std::tuple< ReadStream, MsgVector< T > > readSimpleVecInPlace (ReadStream in)
 
template<typename T >
WriteStream writeSimpleVec (WriteStream out, const MsgVector< T > &vec)
 
std::tuple< ReadStream, ResponseCoderead (Message< ResponseCode >, ReadStream in)
 
WriteStream write (WriteStream out, const ResponseCode &v)
 
std::tuple< ReadStream, TestModeCommandsread (Message< TestModeCommands >, ReadStream in)
 
WriteStream write (WriteStream out, const TestModeCommands &v)
 
template<size_t size>
std::tuple< teeui::ReadStream, teeui::Array< uint8_t, size > > read (teeui::Message< teeui::Array< uint8_t, size > >, teeui::ReadStream in)
 
template<size_t size>
teeui::WriteStream write (teeui::WriteStream out, const teeui::Array< uint8_t, size > &v)
 
template<typename T >
 Handle (T handle) -> Handle< T, HandleDelete< T > >
 
 MAP_HANDLE_DELETER (FT_Face, FT_Done_Face)
 
 MAP_HANDLE_DELETER (FT_Library, FT_Done_FreeType)
 
bool isBreakable (unsigned long codePoint)
 
bool isNewline (unsigned long codePoint)
 
std::tuple< Error, Box< pxs >, UTF8Range< const char * > > findLongestWordSequence (TextFace *face, const UTF8Range< const char * > &text, const Box< pxs > &boundingBox)
 
Error drawText (TextFace *face, const UTF8Range< const char * > &text, const PixelDrawer &drawPixel, PxPoint pen)
 
template<typename T >
auto bytesCast (const T &v) -> const uint8_t(&)[sizeof(T)]
 
template<typename T >
auto bytesCast (T &v) -> uint8_t(&)[sizeof(T)]
 
bool operator== (const ByteBufferProxy &lhs, const ByteBufferProxy &rhs)
 
template<typename IntType >
IntType hton (const IntType &value)
 
template<typename IntType >
IntType ntoh (const IntType &value)
 
Color drawLinePoint (Point< pxs > a, Point< pxs > b, Point< pxs > px_origin, Color c, pxs width=pxs(1.0))
 
Color drawCirclePoint (Point< pxs > center, pxs r, Point< pxs > px_origin, Color c)
 
optional< PxPointintersect (const PxVec &a, const PxPoint &b, const PxVec &c, const PxPoint &d)
 
template<typename Ret , typename... Args>
Callback< Ret(Args...)> makeCallback (Ret(*fn)(Args..., void *), void *priv_data)
 
template<typename Fn >
PixelDrawerHelper< Fn > makePixelDrawer (Fn fn)
 
template<typename... Elements, typename Context >
std::tuple< Elements... > instantiateLayout (MetaList< Elements... >, const Context &context)
 
template<typename... Coords>
constexpr std::tuple< Vec2d< Coords >... > makeConvexObject (const Vec2d< Coords > &... points)
 
template<size_t capacity, typename Tuple , typename Context , size_t... I>
constexpr ConvexObject< capacityinitConvexObject (const Context &context, const Tuple &outline, std::index_sequence< I... >)
 
template<size_t capacity, typename... Points, typename Context >
constexpr ConvexObject< capacityinitConvexObject (const Context &context, const std::tuple< Points... > &outline)
 
template<size_t capacity, typename Tuple , typename Context , size_t... I, size_t size>
constexpr void initConvexObjectArray (const Context &context, ConvexObject< capacity >(&out)[size], const Tuple &t, std::index_sequence< I... >)
 
template<size_t capacity, typename... COs, typename Context , size_t size>
constexpr void initConvexObjectArray (const Context &context, ConvexObject< capacity >(&out)[size], const std::tuple< COs... > &t)
 
template<typename Iterator >
Range< Iterator > makeRange (Iterator begin, Iterator end)
 
ConvexObject< 4 > makeSquareAtOffset (const PxPoint &offset, const pxs &sideLength)
 
Color pixelLineIntersect (Point< pxs > line, pxs dist, Color c)
 

Variables

 VerticallyCentered
 
 RoundTopLeft
 
 RoundBottomLeft
 
 RoundTopRight
 
 RoundBottomRight
 
constexpr const uint8_t kAuthTokenKeySize = 32
 
constexpr const uint8_t kHmacKeySize = kAuthTokenKeySize
 
template<typename Unit >
constexpr const char * str = "N/A"
 
template<>
constexpr const char * str< px > = "px"
 
template<>
constexpr const char * str< dp > = "dp"
 
template<>
constexpr const char * str< mm > = "mm"
 
constexpr const DefaultNumericType kEpsilon = 0.000001
 
constexpr const DefaultNumericType kHalfSqrt2 = 0.70710678118
 

Typedef Documentation

◆ add

template<typename T1 , typename T2 , typename Numeric >
using teeui::add = typedef BinOp<T1, T2, Numeric, Add>

◆ AuthTokenKey

using teeui::AuthTokenKey = typedef Array<uint8_t, kAuthTokenKeySize>

◆ CallbackEvent

◆ Color

using teeui::Color = typedef uint32_t

◆ DefaultNumericType

using teeui::DefaultNumericType = typedef float

◆ div

template<typename T1 , typename T2 , typename Numeric >
using teeui::div = typedef BinOp<T1, T2, Numeric, Div>

◆ dp

using teeui::dp = typedef UnitT<Unit::DP>

◆ dps

using teeui::dps = typedef Coordinate<dp>

◆ GlyphIndex

using teeui::GlyphIndex = typedef unsigned int

◆ Hmac

using teeui::Hmac = typedef AuthTokenKey

◆ layout_t

template<typename T >
using teeui::layout_t = typedef typename MetaList2Layout<T>::type

◆ mm

using teeui::mm = typedef UnitT<Unit::MM>

◆ mms

using teeui::mms = typedef Coordinate<mm>

◆ MsgString

using teeui::MsgString = typedef static_vec<char>

◆ MsgVector

template<typename T >
using teeui::MsgVector = typedef static_vec<T>

◆ mul

template<typename T1 , typename T2 , typename Numeric >
using teeui::mul = typedef BinOp<T1, T2, Numeric, Mul>

◆ PixelDrawer

using teeui::PixelDrawer = typedef Callback<Error(uint32_t, uint32_t, Color)>

◆ PixelDrawerHelper

template<typename Fn >
using teeui::PixelDrawerHelper = typedef CallbackHelper<Fn, Error, uint32_t, uint32_t, Color>

◆ Point

template<typename Coord >
using teeui::Point = typedef Vec2d<Coord>

◆ px

using teeui::px = typedef UnitT<Unit::PX>

◆ PxPoint

using teeui::PxPoint = typedef Point<pxs>

◆ pxs

using teeui::pxs = typedef Coordinate<px>

◆ PxVec

using teeui::PxVec = typedef Vec2d<pxs>

◆ sub

template<typename T1 , typename T2 , typename Numeric >
using teeui::sub = typedef BinOp<T1, T2, Numeric, Sub>

Enumeration Type Documentation

◆ Alignment

enum class teeui::Alignment : int8_t
strong
Enumerator
LEFT 
CENTER 
RIGHT 
TOP 
BOTTOM 

◆ EventType

enum class teeui::EventType : uint8_t
strong
Enumerator
KeyDown 
KeyUp 
KeyMoved 

◆ MessageSize

enum class teeui::MessageSize : uint32_t
strong
Enumerator
MAX 

◆ ResponseCode

enum class teeui::ResponseCode : uint32_t
strong
Enumerator
OK 
Canceled 
Aborted 
OperationPending 
Ignored 
SystemError 
Unimplemented 
Unexpected 
UIError 
UIErrorMissingGlyph 
UIErrorMessageTooLong 
UIErrorMalformedUTF8Encoding 

◆ TestKeyBits

enum class teeui::TestKeyBits : uint8_t
strong
Enumerator
BYTE 

◆ TestModeCommands

enum class teeui::TestModeCommands : uint64_t
strong
Enumerator
OK_EVENT 
CANCEL_EVENT 

◆ UIOption

enum class teeui::UIOption : uint32_t
strong
Enumerator
AccessibilityInverted 
AccessibilityMagnified 

◆ Unit

enum class teeui::Unit : uint8_t
strong
Enumerator
PX 
DP 
MM 

Function Documentation

◆ ButtonColor()

teeui::ButtonColor ( ColorButton()  )

◆ bytesCast() [1/2]

template<typename T >
auto teeui::bytesCast ( const T &  v) -> const uint8_t (&)[sizeof(T)]

◆ bytesCast() [2/2]

template<typename T >
auto teeui::bytesCast ( T &  v) -> uint8_t (&)[sizeof(T)]

◆ CONSTANT() [1/11]

teeui::CONSTANT ( BorderWidth  ,
dps(24)   
)

◆ CONSTANT() [2/11]

teeui::CONSTANT ( ButtonHeight  ,
dps(72)   
)

◆ CONSTANT() [3/11]

teeui::CONSTANT ( ButtonLabelDistance  ,
dps(12)   
)

◆ CONSTANT() [4/11]

teeui::CONSTANT ( ButtonPositionX  ,
 
)

◆ CONSTANT() [5/11]

teeui::CONSTANT ( ButtonPositionY  ,
BottomOfScreen() -  ButtonHeight 
)

◆ CONSTANT() [6/11]

teeui::CONSTANT ( ButtonWidth  ,
dps(130)   
)

◆ CONSTANT() [7/11]

teeui::CONSTANT ( DefaultFont  ,
FONT(RobotoRegular  
)

◆ CONSTANT() [8/11]

teeui::CONSTANT ( IconShieldDistanceFromTop  ,
dps(100)   
)

◆ CONSTANT() [9/11]

teeui::CONSTANT ( LabelBorderZone  ,
dps(4)   
)

◆ CONSTANT() [10/11]

teeui::CONSTANT ( LabelWidth  ,
RightLabelEdge -  BorderWidth 
)

◆ CONSTANT() [11/11]

teeui::CONSTANT ( RightLabelEdge  ,
RightEdgeOfScreen() -  BorderWidth 
)

◆ copyField() [1/2]

template<typename T >
uint8_t * teeui::copyField ( const T &  field,
uint8_t *&  pos 
)
inline

◆ copyField() [2/2]

template<typename T >
const uint8_t * teeui::copyField ( T &  field,
const uint8_t *&  pos 
)
inline

◆ CornerRadius()

teeui::CornerRadius ( dps(4)  )

◆ DECLARE_FONT_BUFFER() [1/3]

teeui::DECLARE_FONT_BUFFER ( RobotoMedium  ,
RobotoMedium  ,
RobotoMedium_length   
)

◆ DECLARE_FONT_BUFFER() [2/3]

teeui::DECLARE_FONT_BUFFER ( RobotoRegular  ,
RobotoRegular  ,
RobotoRegular_length   
)

◆ DECLARE_FONT_BUFFER() [3/3]

teeui::DECLARE_FONT_BUFFER ( Shield  ,
Shield  ,
Shield_length   
)

◆ DECLARE_PARAMETER() [1/4]

teeui::DECLARE_PARAMETER ( BodyFontSize  )

◆ DECLARE_PARAMETER() [2/4]

teeui::DECLARE_PARAMETER ( BottomOfScreen  )

◆ DECLARE_PARAMETER() [3/4]

teeui::DECLARE_PARAMETER ( DefaultFontSize  )

◆ DECLARE_PARAMETER() [4/4]

teeui::DECLARE_PARAMETER ( RightEdgeOfScreen  )

◆ DECLARE_TYPED_PARAMETER() [1/4]

teeui::DECLARE_TYPED_PARAMETER ( ColorBG  ,
::teeui::Color   
)

◆ DECLARE_TYPED_PARAMETER() [2/4]

teeui::DECLARE_TYPED_PARAMETER ( ColorButton  ,
::teeui::Color   
)

◆ DECLARE_TYPED_PARAMETER() [3/4]

teeui::DECLARE_TYPED_PARAMETER ( ColorText  ,
::teeui::Color   
)

◆ DECLARE_TYPED_PARAMETER() [4/4]

teeui::DECLARE_TYPED_PARAMETER ( ShieldColor  ,
::teeui::Color   
)

◆ DefaultText() [1/6]

teeui::DefaultText ( "12345678901234567890123456789012345678901234567890123456789012345678901234" "567890123456" "78901234567890"  )

◆ DefaultText() [2/6]

teeui::DefaultText ( "A"  )

◆ DefaultText() [3/6]

teeui::DefaultText ( "Android Protected Confirmation"  )

◆ DefaultText() [4/6]

teeui::DefaultText ( "Cancel"  )

◆ DefaultText() [5/6]

teeui::DefaultText ( "Confirm"  )

◆ DefaultText() [6/6]

teeui::DefaultText ( "This confirmation provides an extra layer of security for the action " "you're " "about to take."  )

◆ Dimension() [1/4]

teeui::Dimension ( ButtonWidth -  LabelBorderZone *dps(2),
ButtonHeight - BorderWidth -  LabelBorderZone *dps(2) 
)

◆ Dimension() [2/4]

teeui::Dimension ( ButtonWidth  ,
ButtonHeight -  BorderWidth 
)

◆ Dimension() [3/4]

teeui::Dimension ( LabelWidth  ,
HeightFromLines   
)

◆ Dimension() [4/4]

teeui::Dimension ( LabelWidth  ,
LabelHint::pos_y - pos_y -   dps24 
)

◆ drawCirclePoint()

Color teeui::drawCirclePoint ( Point< pxs center,
pxs  r,
Point< pxs px_origin,
Color  c 
)

◆ drawLinePoint()

Color teeui::drawLinePoint ( Point< pxs a,
Point< pxs b,
Point< pxs px_origin,
Color  c,
pxs  width = pxs(1.0) 
)

◆ drawText()

Error teeui::drawText ( TextFace face,
const UTF8Range< const char * > &  text,
const PixelDrawer drawPixel,
PxPoint  pen 
)

◆ END_ELEMENT()

teeui::END_ELEMENT ( )

◆ findLongestWordSequence()

std::tuple< Error, Box< pxs >, UTF8Range< const char * > > teeui::findLongestWordSequence ( TextFace face,
const UTF8Range< const char * > &  text,
const Box< pxs > &  boundingBox 
)

◆ Font() [1/4]

teeui::Font ( DefaultFont  )

◆ Font() [2/4]

teeui::Font ( FONT(RobotoMedium )

◆ Font() [3/4]

teeui::Font ( FONT(RobotoRegular )

◆ Font() [4/4]

teeui::Font ( FONT(Shield )

◆ FontSize() [1/4]

teeui::FontSize ( BodyFontSize()  )

◆ FontSize() [2/4]

teeui::FontSize ( DefaultFontSize()  )

◆ FontSize() [3/4]

teeui::FontSize ( dps(20)  )

◆ FontSize() [4/4]

teeui::FontSize ( dps(24)  )

◆ Handle()

template<typename T >
teeui::Handle ( handle) -> Handle< T, HandleDelete< T > >

◆ HorizontalTextAlignment() [1/2]

teeui::HorizontalTextAlignment ( Alignment::CENTER  )

◆ HorizontalTextAlignment() [2/2]

teeui::HorizontalTextAlignment ( Alignment::LEFT  )

◆ hton()

template<typename IntType >
IntType teeui::hton ( const IntType &  value)
inline

◆ initConvexObject() [1/2]

template<size_t capacity, typename... Points, typename Context >
constexpr ConvexObject< capacity > teeui::initConvexObject ( const Context &  context,
const std::tuple< Points... > &  outline 
)
inlineconstexpr

◆ initConvexObject() [2/2]

template<size_t capacity, typename Tuple , typename Context , size_t... I>
constexpr ConvexObject< capacity > teeui::initConvexObject ( const Context &  context,
const Tuple &  outline,
std::index_sequence< I... >   
)
inlineconstexpr

◆ initConvexObjectArray() [1/2]

template<size_t capacity, typename... COs, typename Context , size_t size>
constexpr void teeui::initConvexObjectArray ( const Context &  context,
ConvexObject< capacity >(&)  out[size],
const std::tuple< COs... > &  t 
)
inlineconstexpr

◆ initConvexObjectArray() [2/2]

template<size_t capacity, typename Tuple , typename Context , size_t... I, size_t size>
constexpr void teeui::initConvexObjectArray ( const Context &  context,
ConvexObject< capacity >(&)  out[size],
const Tuple &  t,
std::index_sequence< I... >   
)
inlineconstexpr

◆ instantiateLayout()

template<typename... Elements, typename Context >
std::tuple< Elements... > teeui::instantiateLayout ( MetaList< Elements... >  ,
const Context &  context 
)

◆ intersect()

optional< PxPoint > teeui::intersect ( const PxVec a,
const PxPoint b,
const PxVec c,
const PxPoint d 
)

◆ isBreakable()

bool teeui::isBreakable ( unsigned long  codePoint)

◆ isNewline()

bool teeui::isNewline ( unsigned long  codePoint)

◆ LineHeight() [1/4]

teeui::LineHeight ( BodyFontSize() *pxs(1.4)  )

◆ LineHeight() [2/4]

teeui::LineHeight ( DefaultFontSize() *pxs(1.5)  )

◆ LineHeight() [3/4]

teeui::LineHeight ( dps(20)  )

◆ LineHeight() [4/4]

teeui::LineHeight ( dps(24)  )

◆ makeCallback()

template<typename Ret , typename... Args>
Callback< Ret(Args...)> teeui::makeCallback ( Ret(*)(Args..., void *)  fn,
void *  priv_data 
)

◆ makeConvexObject()

template<typename... Coords>
constexpr std::tuple< Vec2d< Coords >... > teeui::makeConvexObject ( const Vec2d< Coords > &...  points)
inlineconstexpr

◆ makePixelDrawer()

template<typename Fn >
PixelDrawerHelper< Fn > teeui::makePixelDrawer ( Fn  fn)

◆ makeRange()

template<typename Iterator >
Range< Iterator > teeui::makeRange ( Iterator  begin,
Iterator  end 
)

◆ makeSquareAtOffset()

ConvexObject< 4 > teeui::makeSquareAtOffset ( const PxPoint offset,
const pxs sideLength 
)

◆ MAP_HANDLE_DELETER() [1/2]

teeui::MAP_HANDLE_DELETER ( FT_Face  ,
FT_Done_Face   
)

◆ MAP_HANDLE_DELETER() [2/2]

teeui::MAP_HANDLE_DELETER ( FT_Library  ,
FT_Done_FreeType   
)

◆ NEW_LAYOUT()

teeui::NEW_LAYOUT ( ConfUILayout  ,
IconShield  ,
LabelTitle  ,
LabelHint  ,
LabelBody  ,
IconOk  ,
LabelOK  ,
LabelCancel   
)

◆ NEW_PARAMETER_SET()

teeui::NEW_PARAMETER_SET ( ConfUIParameters  ,
RightEdgeOfScreen  ,
BottomOfScreen  ,
DefaultFontSize  ,
BodyFontSize  ,
ShieldColor  ,
ColorText  ,
ColorBG  ,
ColorButton   
)

◆ ntoh()

template<typename IntType >
IntType teeui::ntoh ( const IntType &  value)
inline

◆ NumberOfLines() [1/3]

teeui::NumberOfLines ( )

◆ NumberOfLines() [2/3]

teeui::NumberOfLines ( 20  )

◆ NumberOfLines() [3/3]

teeui::NumberOfLines ( )

◆ operator==()

bool teeui::operator== ( const ByteBufferProxy lhs,
const ByteBufferProxy rhs 
)

◆ pixelLineIntersect()

Color teeui::pixelLineIntersect ( Point< pxs line,
pxs  dist,
Color  c 
)

◆ Position() [1/7]

teeui::Position ( BorderWidth+  LabelBorderZone,
ButtonPositionY+ButtonLabelDistance+  LabelBorderZone 
)

◆ Position() [2/7]

teeui::Position ( BorderWidth  ,
BOTTOM_EDGE_OF(IconShield)+dps(16)   
)

◆ Position() [3/7]

teeui::Position ( BorderWidth  ,
BOTTOM_EDGE_OF(LabelTitle)+dps(16)   
)

◆ Position() [4/7]

teeui::Position ( BorderWidth  ,
ButtonPositionY - dim_h -   dps48 
)

◆ Position() [5/7]

teeui::Position ( BorderWidth  ,
IconShieldDistanceFromTop   
)

◆ Position() [6/7]

teeui::Position ( RightEdgeOfScreen() - ButtonWidth - BorderWidth+  LabelBorderZone,
ButtonPositionY+ButtonLabelDistance+  LabelBorderZone 
)

◆ Position() [7/7]

teeui::Position ( RightEdgeOfScreen() - ButtonWidth -  BorderWidth,
ButtonPositionY+  ButtonLabelDistance 
)

◆ read() [1/3]

std::tuple< ReadStream, ResponseCode > teeui::read ( Message< ResponseCode ,
ReadStream  in 
)
inline

◆ read() [2/3]

std::tuple< ReadStream, TestModeCommands > teeui::read ( Message< TestModeCommands ,
ReadStream  in 
)
inline

◆ read() [3/3]

template<size_t size>
std::tuple< teeui::ReadStream, teeui::Array< uint8_t, size > > teeui::read ( teeui::Message< teeui::Array< uint8_t, size > >  ,
teeui::ReadStream  in 
)
inline

◆ readSimpleVecInPlace()

template<typename T >
std::tuple< ReadStream, MsgVector< T > > teeui::readSimpleVecInPlace ( ReadStream  in)

This actually only reads in place if compiled without TEEUI_USE_STD_VECTOR. See static_vec.h If compiled with TEEUI_USE_STD_VECTOR MsgVector becomes std::vector and the data is actually copied.

◆ TextColor() [1/4]

teeui::TextColor ( ColorBG()  )

◆ TextColor() [2/4]

teeui::TextColor ( ColorButton()  )

◆ TextColor() [3/4]

teeui::TextColor ( ColorText()  )

◆ TextColor() [4/4]

teeui::TextColor ( ShieldColor()  )

◆ TextID() [1/4]

teeui::TextID ( TEXT_ID(TranslationId::CANCEL)  )

◆ TextID() [2/4]

teeui::TextID ( TEXT_ID(TranslationId::CONFIRM)  )

◆ TextID() [3/4]

teeui::TextID ( TEXT_ID(TranslationId::DESCRIPTION)  )

◆ TextID() [4/4]

teeui::TextID ( TEXT_ID(TranslationId::TITLE)  )

◆ VerticalTextAlignment() [1/2]

teeui::VerticalTextAlignment ( Alignment::BOTTOM  )

◆ VerticalTextAlignment() [2/2]

teeui::VerticalTextAlignment ( Alignment::CENTER  )

◆ write() [1/3]

template<size_t size>
teeui::WriteStream teeui::write ( teeui::WriteStream  out,
const teeui::Array< uint8_t, size > &  v 
)
inline

◆ write() [2/3]

WriteStream teeui::write ( WriteStream  out,
const ResponseCode v 
)
inline

◆ write() [3/3]

WriteStream teeui::write ( WriteStream  out,
const TestModeCommands v 
)
inline

◆ writeSimpleVec()

template<typename T >
WriteStream teeui::writeSimpleVec ( WriteStream  out,
const MsgVector< T > &  vec 
)

Variable Documentation

◆ kAuthTokenKeySize

constexpr const uint8_t teeui::kAuthTokenKeySize = 32
constexpr

◆ kEpsilon

constexpr const DefaultNumericType teeui::kEpsilon = 0.000001
constexpr

◆ kHalfSqrt2

constexpr const DefaultNumericType teeui::kHalfSqrt2 = 0.70710678118
constexpr

◆ kHmacKeySize

constexpr const uint8_t teeui::kHmacKeySize = kAuthTokenKeySize
constexpr

◆ RoundBottomLeft

teeui::RoundBottomLeft

◆ RoundBottomRight

teeui::RoundBottomRight

◆ RoundTopLeft

teeui::RoundTopLeft

◆ RoundTopRight

teeui::RoundTopRight

◆ str

template<typename Unit >
constexpr const char* teeui::str = "N/A"
inlineconstexpr

◆ str< dp >

template<>
constexpr const char* teeui::str< dp > = "dp"
inlineconstexpr

◆ str< mm >

template<>
constexpr const char* teeui::str< mm > = "mm"
inlineconstexpr

◆ str< px >

template<>
constexpr const char* teeui::str< px > = "px"
inlineconstexpr

◆ VerticallyCentered

teeui::VerticallyCentered