74 #include <nuttx/config.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, flags, style)
183 if ((dx != 0) || (dy != 0))
222 if (revealedRects.
size() > 0)
226 for (
int i = 0; i < revealedRects.
size(); ++i)
228 CRect &rrect = revealedRects[i];
230 ginfo(
"Redrawing %d,%d,%d,%d after scroll\n",
327 nxgl_coord_t vX, nxgl_coord_t vY)
355 nxgl_coord_t widgetX = 0;
356 nxgl_coord_t widgetY = 0;
357 nxgl_coord_t thisX =
getX();
358 nxgl_coord_t thisY =
getY();
361 for (int32_t i = 0; i <
m_children.size(); i++)
371 widgetX = (widget->
getX() - thisX) + dx;
372 widgetY = (widget->
getY() - thisY) + dy;
373 widget->
moveTo(widgetX, widgetY);
375 if (!do_redraw && oldstate)
bool allowsVerticalScroll(void) const
virtual void drawBorder(CGraphicsPort *port)
bool isBorderless(void) const
void raiseScrollEvent(nxgl_coord_t vX, nxgl_coord_t vY)
nxgl_mxpixel_t getShadowEdgeColor(void) const
nxgl_coord_t getHeight(void) const
CGraphicsPort * getGraphicsPort(void)
bool moveTo(nxgl_coord_t x, nxgl_coord_t y)
void disableDrawing(void)
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
bool intersects(const CRect &rect) const
virtual void onClick(nxgl_coord_t x, nxgl_coord_t y)
nxgl_mxpixel_t getBackgroundColor(void) const
void setContentScrolled(bool scrolled)
CWidgetControl * m_widgetControl
bool allowsHorizontalScroll(void) const
nxgl_coord_t getHeight(void) const
CScrollingPanel(const CScrollingPanel &scrollingPanel)
void getClientRect(CRect &rect) const
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)
void setAllowsHorizontalScroll(bool allow)
void scrollChildren(int32_t dx, int32_t dy, bool do_redraw)
nxgl_mxpixel_t getShineEdgeColor(void) const
void push_back(const T &value)
CWidgetEventHandlerList * m_widgetEventHandlers
virtual void scroll(int32_t dx, int32_t dy)
nxgl_coord_t getY(void) const
void setAllowsVerticalScroll(bool allow)
nxgl_coord_t getWidth(void) const
nxgl_coord_t getX(void) const
void move(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t deltaX, nxgl_coord_t deltaY, nxgl_coord_t width, nxgl_coord_t height)
nxgl_coord_t getY(void) const
const int size(void) const
TNxArray< CNxWidget * > m_children
bool isDrawingEnabled(void) const
void startDragging(nxgl_coord_t x, nxgl_coord_t y)
virtual void jump(int32_t x, int32_t y)
virtual void onDrag(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t vX, nxgl_coord_t vY)