40 #include <nuttx/config.h> 124 (FAR
void *)static_cast<CCallback*>(
this));
173 widgetControl = allocControl;
191 widgetControl, height);
233 struct nxgl_rect_s windowBounds;
238 struct nxgl_point_s windowPos;
243 struct nxgl_rect_s toolbarBounds;
248 struct nxgl_size_s toolbarSize;
249 nxgl_rectsize(&toolbarSize, &toolbarBounds);
253 struct nxgl_point_s toolbarPos;
254 nxgl_vectoradd(&toolbarPos, &toolbarBounds.pt1, &windowPos);
259 &toolbarPos, &windowBounds);
372 nxgl_mxpixel_t color)
394 nxgl_mxpixel_t color)
431 FAR
const struct nxgl_trapezoid_s *pTrap,
432 nxgl_mxpixel_t color)
436 return nxtk_filltrapwindow(
m_hNxTkWindow, pTrap, &color) == OK;
452 nxgl_coord_t width, nxgl_mxpixel_t color,
457 return nxtk_drawlinewindow(
m_hNxTkWindow, vector, width, &color, (uint8_t)caps) == OK;
469 nxgl_mxpixel_t color)
471 return nxtk_fillcirclewindow(
m_hNxTkWindow, center, radius, &color) == OK;
484 FAR
const struct nxgl_point_s *pOffset)
507 FAR
const void *pSrc,
508 FAR
const struct nxgl_point_s *pOrigin,
513 return nxtk_bitmapwindow(
m_hNxTkWindow, pDest, &pSrc, pOrigin, stride) == OK;
void getRectangle(FAR const struct nxgl_rect_s *rect, struct SBitmap *dest)
nxgl_mxpixel_t selectedBackground
bool createGraphicsPort(INxWindow *window)
bool setPixel(FAR const struct nxgl_point_s *pos, nxgl_mxpixel_t color)
CNxTkWindow(NXHANDLE hNxServer, CWidgetControl *widgetControl)
nxgl_coord_t m_toolbarHeight
CNxToolbar * openToolbar(nxgl_coord_t height, CWidgetControl *widgetControl=(CWidgetControl *) 0)
bool getWindowPosition(FAR struct nxgl_point_s *pos)
bool fill(FAR const struct nxgl_rect_s *pRect, nxgl_mxpixel_t color)
bool getPosition(FAR struct nxgl_point_s *pos)
bool move(FAR const struct nxgl_rect_s *pRect, FAR const struct nxgl_point_s *pOffset)
void setWidgetStyle(const CWidgetStyle *style)
bool setPosition(FAR const struct nxgl_point_s *pos)
bool drawLine(FAR struct nxgl_vector_s *vector, nxgl_coord_t width, nxgl_mxpixel_t color, enum ELineCaps caps)
bool fillTrapezoid(FAR const struct nxgl_rect_s *pClip, FAR const struct nxgl_trapezoid_s *pTrap, nxgl_mxpixel_t color)
CRect getWindowBoundingBox(void)
bool drawFilledCircle(struct nxgl_point_s *center, nxgl_coord_t radius, nxgl_mxpixel_t color)
CWidgetControl * m_widgetControl
nxgl_mxpixel_t background
bool requestPosition(void)
void geometryEvent(NXHANDLE hWindow, const struct nxgl_size_s *size, const struct nxgl_point_s *pos, const struct nxgl_rect_s *bounds)
void getWidgetStyle(CWidgetStyle *style)
bool bitmap(FAR const struct nxgl_rect_s *pDest, FAR const void *pSrc, FAR const struct nxgl_point_s *pOrigin, unsigned int stride)
bool getWindowSize(FAR struct nxgl_size_s *size)
CWidgetControl * getWidgetControl(void) const
bool getSize(FAR struct nxgl_size_s *size)
FAR struct nx_callback_s * getCallbackVTable(void)
bool setSize(FAR const struct nxgl_size_s *size)