36 #ifndef __INCLUDE_CNXFONT_HXX 37 #define __INCLUDE_CNXFONT_HXX 43 #include <nuttx/config.h> 48 #include <nuttx/nx/nxglib.h> 49 #include <nuttx/nx/nxfonts.h> 59 #if defined(__cplusplus) 90 CNxFont(
enum nx_fontid_e fontid, nxgl_mxpixel_t fontColor,
91 nxgl_mxpixel_t transparentColor);
149 m_transparentColor = color;
181 int startIndex,
int length)
const;
192 FAR
struct nx_fontmetric_s *metrics)
const;
220 return m_pFontSet->mxwidth;
231 return m_pFontSet->mxheight;
236 #endif // __cplusplus 238 #endif // __INCLUDE_CNXFONT_HXX nxgl_coord_t getCharWidth(nxwidget_char_t letter) const
nxgl_mxpixel_t m_transparentColor
nxgl_coord_t getStringWidth(const CNxString &text) const
const nxgl_mxpixel_t getColor() const
const uint8_t getMaxWidth(void) const
void setColor(const nxgl_mxpixel_t color)
enum nx_fontid_e m_fontId
const nxgl_mxpixel_t getTransparentColor() const
nxgl_mxpixel_t m_fontColor
void drawChar(FAR SBitmap *bitmap, nxwidget_char_t letter)
const uint8_t getHeight(void) const
CNxFont(enum nx_fontid_e fontid, nxgl_mxpixel_t fontColor, nxgl_mxpixel_t transparentColor)
const bool isCharBlank(const nxwidget_char_t letter) const
FAR const struct nx_font_s * m_pFontSet
static const NXWidgets::SRlePaletteBitmapEntry bitmap[]
nxgl_coord_t getCharHeight(nxwidget_char_t letter) const
void setTransparentColor(const nxgl_mxpixel_t color)
void getCharMetrics(nxwidget_char_t letter, FAR struct nx_fontmetric_s *metrics) const