Public Access
22 lines
481 B
C++
22 lines
481 B
C++
#include "display/page_resources.h"
|
|||
|
|
|
||
|
|
#include "display/bitmap_store.h"
|
||
|
|
#include "display/font_store.h"
|
||
|
|
#include "net/ha_api.h"
|
||
|
|
|
||
|
|
StoredPageResources pageResources;
|
||
|
|
|
||
|
|
bool StoredPageResources::background(const char *name, uint8_t *bitmap)
|
||
|
|
{
|
||
|
|
return loadBitmap(name, bitmap);
|
||
|
|
}
|
||
|
|
|
||
|
|
Font StoredPageResources::font(const char *name)
|
||
|
|
{
|
||
|
|
return findFont(name);
|
||
|
|
}
|
||
|
|
|
||
|
|
const char *StoredPageResources::haValue(const PageElement &element)
|
||
|
|
{
|
||
|
|
return haApiValue(element.entity, element.attribute);
|
||
|
|
}
|