74 #include <nuttx/config.h> 76 #include <sys/types.h> 80 #include <nuttx/nx/nxglib.h> 112 nxgl_coord_t x, nxgl_coord_t y,
113 nxgl_coord_t width, nxgl_coord_t height,
115 :
CButton(pWidgetControl, x, y, width, height,
"", style)
260 nxgl_coord_t width = 0;
267 nxgl_coord_t optionWidth =
270 if (optionWidth > width)
333 0, 0, CONFIG_NXWIDGETS_TRANSPARENT_COLOR);
339 struct nxgl_point_s pos;
WidgetBorderSize m_borderSize
bool isClicked(void) const
bool isBorderless(void) const
nxgl_mxpixel_t getShadowEdgeColor(void) const
CCycleButton(const CCycleButton &cycleButton)
nxgl_coord_t getHeight(void) const
virtual void getPreferredDimensions(CRect &rect) const
virtual const CListDataItem * getItem(const int index) const
virtual void removeAllOptions(void)
void getRect(CRect &rect) 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
virtual void removeItem(const int index)
virtual const CListDataItem * getSelectedOption(void) const
void drawBitmap(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, const struct SBitmap *bitmap, int bitmapX, int bitmapY)
nxgl_mxpixel_t getBackgroundColor(void) const
void addOption(const CNxString &text, const uint32_t value)
const struct SBitmap g_cycle
struct nxgl_point_s m_align
virtual void onPreRelease(nxgl_coord_t x, nxgl_coord_t y)
virtual const CListDataItem * getSelectedItem(void) const
bool isEnabled(void) const
nxgl_coord_t getStringWidth(const CNxString &text) const
virtual void handleListDataSelectionChangedEvent(const CListDataEventArgs &e)
nxgl_mxpixel_t getEnabledTextColor(void) const
virtual void onReleaseOutside(nxgl_coord_t x, nxgl_coord_t y)
nxgl_coord_t getHeight(void) const
virtual void onPreRelease(nxgl_coord_t x, nxgl_coord_t y)
virtual const int getSelectedIndex(void) const
virtual void removeOption(const int index)
void setHeight(nxgl_coord_t height)
virtual const int getSelectedIndex(void) const
void setX(nxgl_coord_t x)
nxgl_mxpixel_t getSelectedBackgroundColor(void) const
virtual const int getItemCount(void) const
virtual void removeAllItems(void)
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
const CNxString & getText(void) const
nxgl_mxpixel_t getShineEdgeColor(void) const
void addListDataEventHandler(IListDataEventHandler *eventHandler)
const uint8_t getHeight(void) const
virtual void handleListDataChangedEvent(const CListDataEventArgs &e)
CWidgetEventHandlerList * m_widgetEventHandlers
const unsigned int getLength(void) const
virtual void drawBorder(CGraphicsPort *port)
virtual void setAllowMultipleSelections(const bool allowMultipleSelections)
nxgl_coord_t getY(void) const
void setWidth(nxgl_coord_t width)
nxgl_coord_t getWidth(void) const
nxgl_coord_t getX(void) const
virtual void selectOption(const int index)
nxgl_coord_t getY(void) const
nxgl_mxpixel_t getDisabledTextColor(void) const
virtual void setItemSelected(const int index, const bool selected)
void setY(nxgl_coord_t y)
void drawText(struct nxgl_point_s *pos, CRect *bound, CNxFont *font, const CNxString &string)
virtual void addItem(const CNxString &text, const uint32_t value)
virtual void drawOutline(CGraphicsPort *port)
void raiseValueChangeEvent(void)
nxgl_mxpixel_t getSelectedTextColor(void) const
virtual void setSelectedIndex(const int index)
virtual void drawContents(CGraphicsPort *port)