MPLABĀ® Harmony Graphics Suite  GFX v3.13.0
Legato API Documentation
legato_tablestring.h File Reference

Definition for the table string feature. More...

Include dependency graph for legato_tablestring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  leTableString
 This struct represents a table string. More...
 

Macros

#define LE_STRING_NULLIDX   -1
 
#define THIS_TYPE   struct leWidget
 

Typedefs

typedef struct leTableString leTableString
 This struct represents a table string. More...
 

Functions

leTableStringleTableString_New (uint32_t idx)
 Constructs a new table string. More...
 
void leTableString_Constructor (leTableString *str, uint32_t idx)
 Constructs a new table string. More...
 
virtual uint32_t getID (const leTableString *_this)
 Get id. More...
 
virtual leResult setID (leTableString *this, uint32_t id)
 Set string table ID. More...
 
virtual uint32_t sizeInBytes (const leTableString *this)
 Get size of this string in bytes. More...
 

Detailed Description

Definition for the table string feature.

Typedef Documentation

◆ leTableString

typedef struct leTableString leTableString

This struct represents a table string.

Color mode information keeps track of size, bpp, color channel mask and color.

Function Documentation

◆ getID()

virtual uint32_t getID ( const leTableString _this)
virtual

Get id.

Gets the ID from _this.

uint32_t id = _this->fn->getID(str);
Parameters
_thisis the string to examine.
Returns
returns the id of the string.

◆ leTableString_Constructor()

void leTableString_Constructor ( leTableString str,
uint32_t  idx 
)

Constructs a new table string.

Creates a new table in table idx.

See also
leString_New().
uint32_t idx;
Parameters
idxis the table from which to create
Returns
returns a new table string. Initialize table string.

Initializes the leTableString str at idx.

Parameters
stris the string to initialize
idxis the index location
Returns
void.

◆ leTableString_New()

leTableString* leTableString_New ( uint32_t  idx)

Constructs a new table string.

Creates a new table in table idx.

See also
leString_New().
uint32_t idx;
Parameters
idxis the table from which to create
Returns
returns a new table string.

◆ setID()

virtual leResult setID ( leTableString this,
uint32_t  id 
)
virtual

Set string table ID.

Sets the ID to id.

leResult res = _this->fn->setID(_this, id);
Parameters
_thisis the string to examine.
idis the string table ID to use.
Returns
LE_SUCCESS if set, otherwise LE_FAILURE.

◆ sizeInBytes()

virtual uint32_t sizeInBytes ( const leTableString this)
virtual

Get size of this string in bytes.

Gets the size of this string in bytes.

uint32_t size = str->fn->sizeInBytes(str);
Parameters
stris the string to examine.
Returns
returns the size of the string table.