RDK Documentation (Open Sourced RDK Components)
TextStyleAttributes Class Reference
Collaboration diagram for TextStyleAttributes:
Collaboration graph

Data Structures

struct  Attributes
 Attributes, so far fontSize only. More...
 

Public Types

enum  FontSize
 Available Fontsize.
 
enum  AttribPosInArray
 Provides the indexing postion in array for attributes.
 
typedef enum TextStyleAttributes::FontSize FontSize
 
typedef enum TextStyleAttributes::AttribPosInArray AttribPosInArray
 

Public Member Functions

 TextStyleAttributes (AampLogManager *logObj)
 
int getAttributes (std::string options, attributesType &attributesValues, uint32_t &attributesMask)
 Gets Attributes of the subtitle. More...
 

Private Member Functions

int getFontSize (std::string input, FontSize *fontSizeOut)
 Get font size value from input string. More...
 

Private Attributes

AampLogManagermLogObj
 

yes

Definition at line 34 of file TextStyleAttributes.h.


Data Structure Documentation

◆ TextStyleAttributes::Attributes

struct TextStyleAttributes::Attributes

Attributes, so far fontSize only.

Definition at line 74 of file TextStyleAttributes.h.

Collaboration diagram for TextStyleAttributes::Attributes:
Collaboration graph
Data Fields
FontSize fontSize

Member Function Documentation

◆ getAttributes()

TextStyleAttributes::getAttributes ( std::string  options,
attributesType attributesValues,
uint32_t &  attributesMask 
)

Gets Attributes of the subtitle.

Parameters
[in]options- Json string containing the attributes
[out]attributesValues- Extracted Attribute values (for now they are font size and position)
[out]attributesMask- Mask corresponding to extracted attribute values
Returns
int - 0 for success, -1 for failure

Definition at line 96 of file TextStyleAttributes.cpp.

◆ getFontSize()

TextStyleAttributes::getFontSize ( std::string  input,
FontSize fontSizeOut 
)
private

Get font size value from input string.

Parameters
[in]input- input font size value
[out]fontSizeOut- font size option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 46 of file TextStyleAttributes.cpp.


The documentation for this class was generated from the following files: