70 #ifndef __INCLUDE_CGRAPHICSPORT_HXX 71 #define __INCLUDE_CGRAPHICSPORT_HXX 77 #include <nuttx/config.h> 93 #if defined(__cplusplus) 110 #ifdef CONFIG_NX_WRITEONLY 128 const CNxString &
string,
int startIndex,
int length,
129 nxgl_mxpixel_t background,
bool transparent);
140 #ifdef CONFIG_NX_WRITEONLY 142 nxgl_mxpixel_t backColor = CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR);
160 const nxgl_coord_t
getX(
void)
const;
169 const nxgl_coord_t
getY(
void)
const;
179 #ifdef CONFIG_NX_WRITEONLY 194 #ifdef CONFIG_NX_WRITEONLY 197 m_backColor = backColor;
209 void drawPixel(nxgl_coord_t x, nxgl_coord_t y, nxgl_mxpixel_t color);
221 void drawHorizLine(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width,
222 nxgl_mxpixel_t color);
234 void drawVertLine(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t height,
235 nxgl_mxpixel_t color);
249 void drawLine(nxgl_coord_t x1, nxgl_coord_t y1,
250 nxgl_coord_t x2, nxgl_coord_t y2,
264 void drawFilledRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width,
265 nxgl_coord_t height, nxgl_mxpixel_t color);
277 void drawRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width,
278 nxgl_coord_t height, nxgl_mxpixel_t color);
292 nxgl_coord_t width, nxgl_coord_t height,
293 nxgl_mxpixel_t shineColor,
294 nxgl_mxpixel_t shadowColor);
305 nxgl_mxpixel_t color)
334 const CNxString &
string,
int startIndex,
int length,
335 nxgl_mxpixel_t color);
349 const CNxString &
string,
int startIndex,
int length);
366 const CNxString &
string,
int startIndex,
int length,
367 nxgl_mxpixel_t color, nxgl_mxpixel_t background);
383 void drawBitmap(nxgl_coord_t x, nxgl_coord_t y,
384 nxgl_coord_t width, nxgl_coord_t height,
403 void drawBitmap(nxgl_coord_t x, nxgl_coord_t y,
404 nxgl_coord_t width, nxgl_coord_t height,
405 const struct SBitmap *bitmap,
int bitmapX,
int bitmapY,
406 nxgl_mxpixel_t transparentColor);
423 nxgl_coord_t width, nxgl_coord_t height,
424 const struct SBitmap *bitmap,
int bitmapX,
int bitmapY);
438 void copy(nxgl_coord_t sourceX, nxgl_coord_t sourceY,
439 nxgl_coord_t destX, nxgl_coord_t destY,
440 nxgl_coord_t width, nxgl_coord_t height);
453 void move(nxgl_coord_t x, nxgl_coord_t y,
454 nxgl_coord_t deltaX, nxgl_coord_t deltaY,
455 nxgl_coord_t width, nxgl_coord_t height);
466 void greyScale(nxgl_coord_t x, nxgl_coord_t y,
467 nxgl_coord_t width, nxgl_coord_t height);
481 void invert(nxgl_coord_t x, nxgl_coord_t y,
482 nxgl_coord_t width, nxgl_coord_t height);
487 #endif // __cplusplus 489 #endif // __INCLUDE_CGRAPHICSPORT_HXX
void copy(nxgl_coord_t sourceX, nxgl_coord_t sourceY, nxgl_coord_t destX, nxgl_coord_t destY, nxgl_coord_t width, nxgl_coord_t height)
void drawVertLine(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t height, nxgl_mxpixel_t color)
const nxgl_coord_t getY(void) const
nxgl_mxpixel_t m_backColor
void setBackColor(nxgl_mxpixel_t backColor)
CGraphicsPort(INxWindow *pNxWnd, nxgl_mxpixel_t backColor=CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR)
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)
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)
void drawHorizLine(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_mxpixel_t color)
void drawBitmapGreyScale(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, const struct SBitmap *bitmap, int bitmapX, int bitmapY)
void drawFilledCircle(struct nxgl_point_s *center, nxgl_coord_t radius, nxgl_mxpixel_t color)
void greyScale(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height)
void drawFilledRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, nxgl_mxpixel_t color)
void drawLine(nxgl_coord_t x1, nxgl_coord_t y1, nxgl_coord_t x2, nxgl_coord_t y2, nxgl_mxpixel_t color, enum INxWindow::ELineCaps caps)
void invert(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height)
nxgl_mxpixel_t getBackColor(void) const
const nxgl_coord_t getX(void) const
void drawPixel(nxgl_coord_t x, nxgl_coord_t y, nxgl_mxpixel_t color)
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)
static const NXWidgets::SRlePaletteBitmapEntry bitmap[]
virtual bool drawFilledCircle(struct nxgl_point_s *center, nxgl_coord_t radius, nxgl_mxpixel_t color)=0
void _drawText(struct nxgl_point_s *pos, CRect *bound, CNxFont *font, const CNxString &string, int startIndex, int length, nxgl_mxpixel_t background, bool transparent)
void drawText(struct nxgl_point_s *pos, CRect *bound, CNxFont *font, const CNxString &string)
void drawRect(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, nxgl_mxpixel_t color)