microui  14.5.5
microui
ui_drawing_stub.h
Go to the documentation of this file.
1 /*
2  * Copyright 2023-2026 MicroEJ Corp. All rights reserved.
3  * MicroEJ Corp. PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */
5 
6 #ifndef UI_DRAWING_STUB_H
7 #define UI_DRAWING_STUB_H
8 
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
13 
24 // --------------------------------------------------------------------------------
25 // Includes
26 // --------------------------------------------------------------------------------
27 
28 #include "ui_drawing.h"
29 
30 // --------------------------------------------------------------------------------
31 // Public API
32 // --------------------------------------------------------------------------------
33 
43 DRAWING_Status UI_DRAWING_STUB_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y);
44 
56 DRAWING_Status UI_DRAWING_STUB_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY);
57 
68 DRAWING_Status UI_DRAWING_STUB_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
69 
80 DRAWING_Status UI_DRAWING_STUB_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
81 
93 DRAWING_Status UI_DRAWING_STUB_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
94 
106 DRAWING_Status UI_DRAWING_STUB_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
107 
121 DRAWING_Status UI_DRAWING_STUB_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
122  jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
123 
137 DRAWING_Status UI_DRAWING_STUB_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
138  jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
139 
152 DRAWING_Status UI_DRAWING_STUB_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
153  jfloat startAngle, jfloat arcAngle);
154 
168 DRAWING_Status UI_DRAWING_STUB_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
169  jfloat startAngle, jfloat arcAngle);
170 
183 DRAWING_Status UI_DRAWING_STUB_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
184  jfloat startAngle, jfloat arcAngle);
185 
199 DRAWING_Status UI_DRAWING_STUB_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
200  jfloat startAngle, jfloat arcAngle);
201 
213 DRAWING_Status UI_DRAWING_STUB_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
214 
226 DRAWING_Status UI_DRAWING_STUB_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
227 
238 DRAWING_Status UI_DRAWING_STUB_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
239 
250 DRAWING_Status UI_DRAWING_STUB_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
251 
264 DRAWING_Status UI_DRAWING_STUB_drawString(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font,
265  jint x, jint y);
266 
276 jint UI_DRAWING_STUB_stringWidth(jchar *chars, jint length, MICROUI_Font *font);
277 
288 jint UI_DRAWING_STUB_initializeRenderableStringSNIContext(jchar *chars, jint length, MICROUI_Font *font,
289  MICROUI_RenderableString *renderableString);
290 
305 DRAWING_Status UI_DRAWING_STUB_drawRenderableString(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
306  MICROUI_Font *font, jint width,
307  MICROUI_RenderableString *renderableString, jint x, jint y);
308 
324 DRAWING_Status UI_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
325  jint width, jint height, jint x, jint y, jint alpha);
326 
341 DRAWING_Status UI_DRAWING_STUB_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
342  jint width, jint height, jint x, jint y);
343 
358 DRAWING_Status UI_DRAWING_STUB_drawRegion(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
359  jint height, jint x, jint y, jint alpha);
360 
372 DRAWING_Status UI_DRAWING_STUB_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
373  jint fade);
374 
390 DRAWING_Status UI_DRAWING_STUB_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
391  jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
392  DRAWING_Cap endCap);
393 
406 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
407  jint thickness, jint fade);
408 
425 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
426  jfloat startAngle, jfloat arcAngle, jint thickness, jint fade,
427  DRAWING_Cap start, DRAWING_Cap end);
428 
442 DRAWING_Status UI_DRAWING_STUB_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
443  jint height, jint thickness, jint fade);
444 
457 DRAWING_Status UI_DRAWING_STUB_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
458  jint endY, jint thickness);
459 
471 DRAWING_Status UI_DRAWING_STUB_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
472  jint thickness);
473 
486 DRAWING_Status UI_DRAWING_STUB_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
487  jint thickness);
488 
502 DRAWING_Status UI_DRAWING_STUB_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
503  jfloat startAngle, jfloat arcAngle, jint thickness);
504 
521 DRAWING_Status UI_DRAWING_STUB_drawFlippedImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
522  jint regionY, jint width, jint height, jint x, jint y,
523  DRAWING_Flip transformation, jint alpha);
524 
539 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
540  jint y, jint rotationX, jint rotationY, jfloat angle,
541  jint alpha);
542 
557 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
558  jint rotationX, jint rotationY, jfloat angle, jint alpha);
559 
573 DRAWING_Status UI_DRAWING_STUB_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
574  jint y, jfloat factorX, jfloat factorY, jint alpha);
575 
589 DRAWING_Status UI_DRAWING_STUB_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
590  jfloat factorX, jfloat factorY, jint alpha);
591 
606 DRAWING_Status UI_DRAWING_STUB_drawScaledStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
607  MICROUI_Font *font, jint x, jint y, jfloat xRatio,
608  jfloat yRatio);
609 
626 DRAWING_Status UI_DRAWING_STUB_drawScaledRenderableStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars,
627  jint length, MICROUI_Font *font, jint width,
628  MICROUI_RenderableString *renderableString, jint x,
629  jint y, jfloat xRatio, jfloat yRatio);
630 
646 DRAWING_Status UI_DRAWING_STUB_drawCharWithRotationBilinear(MICROUI_GraphicsContext *gc, jchar c, MICROUI_Font *font,
647  jint x, jint y, jint xRotation, jint yRotation,
648  jfloat angle, jint alpha);
649 
665 DRAWING_Status UI_DRAWING_STUB_drawCharWithRotationNearestNeighbor(MICROUI_GraphicsContext *gc, jchar c,
666  MICROUI_Font *font, jint x, jint y, jint xRotation,
667  jint yRotation, jfloat angle, jint alpha);
668 
669 // --------------------------------------------------------------------------------
670 // EOF
671 // --------------------------------------------------------------------------------
672 
673 #ifdef __cplusplus
674 }
675 #endif
676 
677 #endif // UI_DRAWING_STUB_H
DRAWING_Status UI_DRAWING_STUB_drawRenderableString(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font, jint width, MICROUI_RenderableString *renderableString, jint x, jint y)
Stub implementation of drawRenderableString. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jint thickness)
Stubbed implementation of drawThickCircle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y, jfloat factorX, jfloat factorY, jint alpha)
Stubbed implementation of drawScaledImageBilinear. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height, jfloat startAngle, jfloat arcAngle)
Stubbed implementation of drawEllipseArc. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawFlippedImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY, jint width, jint height, jint x, jint y, DRAWING_Flip transformation, jint alpha)
Stubbed implementation of drawFlippedImage. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY, jint thickness)
Stubbed implementation of drawThickLine. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y)
Stubbed implementation of writePixel. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height)
Stubbed implementation of fillEllipse. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawScaledStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font, jint x, jint y, jfloat xRatio, jfloat yRatio)
Stubbed implementation of drawScaledStringBilinear. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle)
Stubbed implementation of drawCircleArc. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height)
Stubbed implementation of drawEllipse. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawString(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font, jint x, jint y)
Stub implementation of drawString. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height, jint thickness)
Stubbed implementation of drawThickEllipse. See ui_drawing.h.
jint UI_DRAWING_STUB_stringWidth(jchar *chars, jint length, MICROUI_Font *font)
Stub implementation of stringWidth. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height, jfloat startAngle, jfloat arcAngle)
Stubbed implementation of fillEllipseArc. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness, jint fade)
Stubbed implementation of drawThickFadedPoint. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY)
Stubbed implementation of drawLine. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle, jint thickness)
Stubbed implementation of drawThickCircleArc. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter)
Stubbed implementation of fillCircle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawRegion(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width, jint height, jint x, jint y, jint alpha)
Stubbed implementation of drawRegion. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2)
Stubbed implementation of fillRectangle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY, jint width, jint height, jint x, jint y, jint alpha)
Stubbed implementation of drawImage. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y)
Stubbed implementation of drawHorizontalLine. See ui_drawing.h.
jint UI_DRAWING_STUB_initializeRenderableStringSNIContext(jchar *chars, jint length, MICROUI_Font *font, MICROUI_RenderableString *renderableString)
Stub implementation of initializeRenderableStringSNIContext. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2)
Stubbed implementation of drawVerticalLine. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle, jint thickness, jint fade, DRAWING_Cap start, DRAWING_Cap end)
Stubbed implementation of drawThickFadedCircleArc. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter)
Stubbed implementation of drawCircle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle)
Stubbed implementation of fillCircleArc. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY, jint width, jint height, jint x, jint y)
Stubbed implementation of copyImage. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y, jint rotationX, jint rotationY, jfloat angle, jint alpha)
Stubbed implementation of drawRotatedImageBilinear. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawCharWithRotationBilinear(MICROUI_GraphicsContext *gc, jchar c, MICROUI_Font *font, jint x, jint y, jint xRotation, jint yRotation, jfloat angle, jint alpha)
Stubbed implementation of drawCharWithRotationBilinear. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y, jint rotationX, jint rotationY, jfloat angle, jint alpha)
Stubbed implementation of drawRotatedImageNearestNeighbor. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY, jint thickness, jint fade, DRAWING_Cap startCap, DRAWING_Cap endCap)
Stubbed implementation of drawThickFadedLine. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height, jint cornerEllipseWidth, jint cornerEllipseHeight)
Stubbed implementation of drawRoundedRectangle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawScaledRenderableStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font, jint width, MICROUI_RenderableString *renderableString, jint x, jint y, jfloat xRatio, jfloat yRatio)
Stubbed implementation of drawScaledRenderableStringBilinear. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height, jint cornerEllipseWidth, jint cornerEllipseHeight)
Stubbed implementation of fillRoundedRectangle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2)
Stubbed implementation of drawRectangle. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height, jint thickness, jint fade)
Stubbed implementation of drawThickFadedEllipse. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawCharWithRotationNearestNeighbor(MICROUI_GraphicsContext *gc, jchar c, MICROUI_Font *font, jint x, jint y, jint xRotation, jint yRotation, jfloat angle, jint alpha)
Stubbed implementation of drawCharWithRotationNearestNeighbor. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y, jfloat factorX, jfloat factorY, jint alpha)
Stubbed implementation of drawScaledImageNearestNeighbor. See ui_drawing.h.
DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jint thickness, jint fade)
Stubbed implementation of drawThickFadedCircle. See ui_drawing.h.