74 #include <nuttx/config.h> 76 #include <sys/types.h> 82 #include <nuttx/nx/nxglib.h> 108 nxgl_coord_t x, nxgl_coord_t y,
109 nxgl_coord_t width, nxgl_coord_t height)
110 :
CNxWidget(pWidgetControl, x, y, width, height, 0)
165 int16_t barWidth = ((
m_value * ratio) + 128) >> 8;
187 struct nxgl_point_s pos;
188 pos.x = rect.
getX() +
190 pos.y = rect.
getY() +
195 nxgl_mxpixel_t textColor;
CProgressBar(const CProgressBar &progressBar)
bool isBorderless(void) const
nxgl_mxpixel_t getShadowEdgeColor(void) const
nxgl_coord_t getHeight(void) const
void getRect(CRect &rect) const
nxgl_coord_t getWidth(void) const
void drawBevelledRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, nxgl_mxpixel_t shineColor, nxgl_mxpixel_t shadowColor)
nxgl_coord_t getX(void) const
nxgl_mxpixel_t getBackgroundColor(void) const
bool isEnabled(void) const
nxgl_coord_t getStringWidth(const CNxString &text) const
nxgl_mxpixel_t getEnabledTextColor(void) const
nxgl_coord_t getHeight(void) const
void setValue(const int16_t value)
virtual void drawContents(CGraphicsPort *port)
void drawFilledRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, nxgl_mxpixel_t color)
CNxFont * getFont(void) const
nxgl_mxpixel_t getShineEdgeColor(void) const
const uint8_t getHeight(void) const
virtual void drawBorder(CGraphicsPort *port)
nxgl_mxpixel_t getHighlightColor(void) const
nxgl_coord_t getY(void) const
nxgl_coord_t getWidth(void) const
nxgl_coord_t getX(void) const
nxgl_coord_t getY(void) const
nxgl_mxpixel_t getDisabledTextColor(void) const
bool m_showPercentageText
void drawText(struct nxgl_point_s *pos, CRect *bound, CNxFont *font, const CNxString &string)