74 #include <nuttx/config.h> 76 #include <sys/types.h> 80 #include <nuttx/nx/nxglib.h> 111 nxgl_coord_t x, nxgl_coord_t y,
112 nxgl_coord_t width, nxgl_coord_t height,
114 :
CNxWidget(pWidgetControl, x, y, width, height, 0, style)
287 nxgl_mxpixel_t textColor;
288 nxgl_mxpixel_t backColor;
308 #ifndef CONFIG_NXWIDGETS_FLICKERFREE 315 struct nxgl_point_s pos;
319 #ifdef CONFIG_NXWIDGETS_FLICKERFREE 333 rect.
getX2() - (pos.x + width) + 1,
344 rect.
getY2() - (pos.y + height) + 1, backColor);
350 textColor, backColor);
426 nxgl_coord_t width = rect.
getWidth();
WidgetBorderSize m_borderSize
bool isBorderless(void) const
nxgl_mxpixel_t getShadowEdgeColor(void) const
nxgl_coord_t getY2(void) const
nxgl_coord_t getHeight(void) const
void getRect(CRect &rect) const
virtual bool isTextChange(void) 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
nxgl_coord_t getX2(void) const
virtual void getPreferredDimensions(CRect &rect) const
void append(const CNxString &text)
struct nxgl_point_s m_align
CLabel(const CLabel &label)
TextAlignmentVert m_vAlignment
bool isEnabled(void) const
nxgl_coord_t getStringWidth(const CNxString &text) const
virtual void highlight(bool highlightOn)
virtual void setTextAlignmentHoriz(TextAlignmentHoriz alignment)
virtual void appendText(const CNxString &text)
virtual void calculateTextPositionHorizontal(void)
nxgl_mxpixel_t getEnabledTextColor(void) const
TextAlignmentHoriz m_hAlignment
nxgl_coord_t getHeight(void) const
void setHeight(nxgl_coord_t height)
void getClientRect(CRect &rect) const
virtual void onTextChange(void)
void setX(nxgl_coord_t x)
nxgl_mxpixel_t getSelectedBackgroundColor(void) const
virtual void onResize(nxgl_coord_t width, nxgl_coord_t height)
void drawFilledRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, nxgl_mxpixel_t color)
virtual void drawContents(CGraphicsPort *port)
CNxFont * getFont(void) const
nxgl_mxpixel_t getShineEdgeColor(void) const
const uint8_t getHeight(void) const
virtual void setTextAlignmentVert(TextAlignmentVert alignment)
CWidgetEventHandlerList * m_widgetEventHandlers
const unsigned int getLength(void) const
nxgl_coord_t getY(void) const
void setWidth(nxgl_coord_t width)
nxgl_coord_t getWidth(void) const
nxgl_coord_t getX(void) const
nxgl_coord_t getY(void) const
nxgl_mxpixel_t getDisabledTextColor(void) const
virtual void insertText(const CNxString &text, const int index)
virtual void calculateTextPositionVertical(void)
void insert(const CNxString &text, const int index)
void setY(nxgl_coord_t y)
virtual void setFont(CNxFont *font)
virtual void drawBorder(CGraphicsPort *port)
void drawText(struct nxgl_point_s *pos, CRect *bound, CNxFont *font, const CNxString &string)
void raiseValueChangeEvent(void)
virtual void setText(const CNxString &text)
nxgl_mxpixel_t getSelectedTextColor(void) const