40 #include <nuttx/config.h> 68 :
CCallback(pWidgetControl), m_hNxServer(hNxServer), m_hWindow(0),
69 m_widgetControl(pWidgetControl)
105 (FAR
void *)static_cast<CCallback*>(
this));
243 nxgl_mxpixel_t color)
247 return nx_setpixel(
m_hWindow, pPos, &color) == OK;
260 nxgl_mxpixel_t color)
264 return nx_fill(
m_hWindow, pRect, &color) == OK;
297 FAR
const struct nxgl_trapezoid_s *pTrap,
298 nxgl_mxpixel_t color)
302 return nx_filltrapezoid(
m_hWindow, pClip, pTrap, &color) == OK;
318 nxgl_coord_t width, nxgl_mxpixel_t color,
323 return nx_drawline(
m_hWindow, vector, width, &color, (uint8_t)caps) == OK;
335 nxgl_mxpixel_t color)
337 return nx_fillcircle(
m_hWindow, center, radius, &color) == OK;
350 FAR
const struct nxgl_point_s *pOffset)
354 return nx_move(
m_hWindow, pRect, pOffset) == OK;
373 FAR
const void *pSrc,
374 FAR
const struct nxgl_point_s *pOrigin,
379 return nx_bitmap(
m_hWindow, pDest, &pSrc, pOrigin, stride) == OK;
bool createGraphicsPort(INxWindow *window)
bool drawLine(FAR struct nxgl_vector_s *vector, nxgl_coord_t width, nxgl_mxpixel_t color, enum ELineCaps caps)
bool requestPosition(void)
void getRectangle(FAR const struct nxgl_rect_s *rect, struct SBitmap *dest)
bool setPixel(FAR const struct nxgl_point_s *pPos, nxgl_mxpixel_t color)
CWidgetControl * m_widgetControl
bool getSize(FAR struct nxgl_size_s *pSize)
bool drawFilledCircle(struct nxgl_point_s *center, nxgl_coord_t radius, nxgl_mxpixel_t color)
bool bitmap(FAR const struct nxgl_rect_s *pDest, FAR const void *pSrc, FAR const struct nxgl_point_s *pOrigin, unsigned int stride)
bool fillTrapezoid(FAR const struct nxgl_rect_s *pClip, FAR const struct nxgl_trapezoid_s *pTrap, nxgl_mxpixel_t color)
bool setPosition(FAR const struct nxgl_point_s *pPos)
CBgWindow(NXHANDLE hNxServer, CWidgetControl *widgetControl)
bool setSize(FAR const struct nxgl_size_s *pSize)
CWidgetControl * getWidgetControl(void) const
bool getWindowSize(FAR struct nxgl_size_s *size)
FAR struct nx_callback_s * getCallbackVTable(void)
bool fill(FAR const struct nxgl_rect_s *pRect, nxgl_mxpixel_t color)
bool move(FAR const struct nxgl_rect_s *pRect, FAR const struct nxgl_point_s *pOffset)
NXHANDLE getWindowHandle(void)
bool getPosition(FAR struct nxgl_point_s *pPos)