74 #include <nuttx/config.h> 76 #include <sys/types.h> 80 #include <nuttx/nx/nxglib.h> 109 nxgl_coord_t x, nxgl_coord_t y,
111 :
CNxWidget(pWidgetControl, x, y, 0, 0, WIDGET_BORDERLESS, style)
131 nxgl_coord_t width, nxgl_coord_t height)
142 if (newWidth < x + width)
144 newWidth = x + width;
147 if (newHeight < y + height)
149 newHeight = y + height;
152 resize(newWidth, newHeight);
240 nxgl_coord_t width = 0;
241 nxgl_coord_t height = 0;
249 nxgl_coord_t widgetX = 0;
250 nxgl_coord_t widgetY = 0;
252 nxgl_coord_t maxX = 0;
253 nxgl_coord_t maxY = 0;
CRadioButtonGroup(const CRadioButtonGroup &radioButtonGroup)
WidgetBorderSize m_borderSize
virtual void setSelectedIndex(int index)
virtual const int getSelectedIndex(void) const
CRadioButton * newRadioButton(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height)
nxgl_coord_t getX(void) const
nxgl_mxpixel_t getBackgroundColor(void) const
void raiseDoubleClickEvent(nxgl_coord_t x, nxgl_coord_t y)
virtual void getPreferredDimensions(CRect &rect) const
virtual void handleDoubleClickEvent(const CWidgetEventArgs &e)
bool resize(nxgl_coord_t width, nxgl_coord_t height)
CWidgetControl * m_widgetControl
const nxgl_coord_t getX(void) const
nxgl_coord_t getHeight(void) const
void setHeight(nxgl_coord_t height)
void addWidgetEventHandler(CWidgetEventHandler *eventHandler)
virtual void setSelectedWidget(CRadioButton *widget)
void setX(nxgl_coord_t x)
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)
virtual const CRadioButton * getSelectedWidget(void) const
virtual bool checkCollision(nxgl_coord_t x, nxgl_coord_t y) const
void raiseReleaseOutsideEvent(nxgl_coord_t x, nxgl_coord_t y)
const nxgl_coord_t getY(void) const
void raiseClickEvent(nxgl_coord_t x, nxgl_coord_t y)
virtual void handleReleaseOutsideEvent(const CWidgetEventArgs &e)
CWidgetEventHandlerList * m_widgetEventHandlers
virtual void handleReleaseEvent(const CWidgetEventArgs &e)
void addWidget(CNxWidget *widget)
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
virtual void setState(RadioButtonState state)
void setY(nxgl_coord_t y)
TNxArray< CNxWidget * > m_children
CRadioButton * m_selectedWidget
virtual void handleClickEvent(const CWidgetEventArgs &e)
void raiseValueChangeEvent(void)
void raiseReleaseEvent(nxgl_coord_t x, nxgl_coord_t y)