28 #include "../../gfx.h"
30 #if GFX_USE_GWIN || defined(__DOXYGEN__)
41 #if GWIN_NEED_WINDOWMANAGER
57 #if GWIN_NEED_CONTAINERS
81 #if GWIN_NEED_CONTAINERS
90 typedef enum { GWIN_NORMAL, GWIN_MAXIMIZE, GWIN_MINIMIZE }
GWindowMinMax;
96 #if GWIN_NEED_WINDOWMANAGER || defined(__DOXYGEN__)
98 struct GWindowManager;
169 #if GDISP_NEED_TEXT || defined(__DOXYGEN__)
211 #define gwinWindowCreate(pgw, pInit) gwinGWindowCreate(GDISP, pgw, pInit);
241 #define gwinGetClassID(gh) ((void *)((gh)->vmt))
252 #define gwinGetScreenX(gh) ((gh)->x)
263 #define gwinGetScreenY(gh) ((gh)->y)
272 #define gwinGetWidth(gh) ((gh)->width)
281 #define gwinGetHeight(gh) ((gh)->height)
292 #define gwinSetColor(gh, clr) (gh)->color = (clr)
304 #define gwinSetBgColor(gh, bgclr) (gh)->bgcolor = (bgclr)
313 #define gwinGetColor(gh) (gh)->color
322 #define gwinGetBgColor(gh) (gh)->bgcolor
354 #define gwinShow(gh) gwinSetVisible(gh, gTrue)
363 #define gwinHide(gh) gwinSetVisible(gh, gFalse)
400 #define gwinEnable(gh) gwinSetEnabled(gh, gTrue)
409 #define gwinDisable(gh) gwinSetEnabled(gh, gFalse)
473 #if GWIN_NEED_WINDOWMANAGER || defined (__DOXYGEN__)
577 #define gwinFlash(gh) gwinSetFlashing(gh, gTrue)
586 #define gwinNoFlash(gh) gwinSetFlashing(gh, gFalse)
589 #if GDISP_NEED_TEXT || defined(__DOXYGEN__)
689 #if GDISP_NEED_CIRCLE || defined(__DOXYGEN__)
717 #if GDISP_NEED_DUALCIRCLE || defined(__DOXYGEN__)
735 #if GDISP_NEED_ELLIPSE || defined(__DOXYGEN__)
763 #if GDISP_NEED_ARC || defined(__DOXYGEN__)
811 #if GDISP_NEED_ARCSECTORS || defined(__DOXYGEN__)
863 #if GDISP_NEED_PIXELREAD || defined(__DOXYGEN__)
881 #if GDISP_NEED_TEXT || defined(__DOXYGEN__)
977 #if GDISP_NEED_CONVEX_POLYGON || defined(__DOXYGEN__)
1037 #if GDISP_NEED_IMAGE || defined(__DOXYGEN__)
1067 #if GWIN_NEED_WIDGET || defined(__DOXYGEN__)
1072 #if GWIN_NEED_CONTAINERS || defined(__DOXYGEN__)
1077 #if GWIN_NEED_CONSOLE || defined(__DOXYGEN__)
1080 #if GWIN_NEED_GRAPH || defined(__DOXYGEN__)
1083 #if GWIN_NEED_IMAGE || defined(__DOXYGEN__)
1086 #if GWIN_NEED_GL3D || defined(__DOXYGEN__)
COLOR_TYPE gColor
The color type definition.
const struct mf_font_s * gFont
The type of a font.
gColor gPixel
The pixel format.
gJustify
Type for the text justification.
gI16 gCoord
The type for a coordinate or length on the screen.
gU16 gdispImageError
An image error code.
struct GWindowInit GWindowInit
The structure to initialise a GWIN.
void gwinDrawBox(GHandle gh, gCoord x, gCoord y, gCoord cx, gCoord cy)
Draw a box in the window.
struct GWindowObject GWindowObject
A window object structure.
void gwinFillEllipse(GHandle gh, gCoord x, gCoord y, gCoord a, gCoord b)
Draw an filled ellipse.
void gwinDrawPoly(GHandle gh, gCoord tx, gCoord ty, const gPoint *pntarray, unsigned cnt)
Draw an enclosed polygon (convex, non-convex or complex).
void gwinDrawCircle(GHandle gh, gCoord x, gCoord y, gCoord radius)
Draw a circle in the window.
void gwinDrawPixel(GHandle gh, gCoord x, gCoord y)
Set a pixel in the window.
void gwinRedrawDisplay(GDisplay *g, gBool preserve)
Redraw a display.
void gwinFillChar(GHandle gh, gCoord x, gCoord y, char c)
Draw a text character with a filled background at the specified position in the window.
gBool gwinGetEnabled(GHandle gh)
Gets the enabled state of a window.
void gwinFillConvexPoly(GHandle gh, gCoord tx, gCoord ty, const gPoint *pntarray, unsigned cnt)
Fill a convex polygon.
void gwinDrawChar(GHandle gh, gCoord x, gCoord y, char c)
Draw a text character at the specified position in the window.
void gwinDrawString(GHandle gh, gCoord x, gCoord y, const char *str)
Draw a text string in the window.
void gwinSetDefaultFont(gFont font)
Set the default font for all new GWIN windows.
void gwinDrawEllipse(GHandle gh, gCoord x, gCoord y, gCoord a, gCoord b)
Draw an ellipse.
void gwinRaise(GHandle gh)
Raise a window to the top of the z-order.
void gwinClear(GHandle gh)
Clear the window.
void gwinClearInit(GWindowInit *pwi)
Clear a GWindowInit structure to all zero's.
gFont gwinGetDefaultFont(void)
Get the current default font.
void gwinFillArea(GHandle gh, gCoord x, gCoord y, gCoord cx, gCoord cy)
Fill an rectangular area in the window.
void gwinFillDualCircle(GHandle gh, gCoord x, gCoord y, gCoord radius1, gCoord radius2)
Draw two filled circles with the same centre in the window.
void gwinRedraw(GHandle gh)
Redraw a window.
void gwinDestroy(GHandle gh)
Destroy a window (of any type). Releases any dynamically allocated memory.
void gwinFillCircle(GHandle gh, gCoord x, gCoord y, gCoord radius)
Draw a filled circle in the window.
void gwinSetVisible(GHandle gh, gBool visible)
Sets whether a window is visible or not.
void gwinSetFlashing(GHandle gh, gBool flash)
Set a window or widget to flash.
void gwinSetFont(GHandle gh, gFont font)
Set the current font for this window.
GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit)
Create a basic window.
gColor gwinGetDefaultColor(void)
Get the default foreground color for all new GWIN windows.
void gwinBlitArea(GHandle gh, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord srcx, gCoord srcy, gCoord srccx, const gPixel *buffer)
Fill an area in the window using the supplied bitmap.
const char * gwinGetClassName(GHandle gh)
Get the real class name of the GHandle.
gdispImageError gwinDrawImage(GHandle gh, gImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy)
Draw the image.
void gwinFillStringBox(GHandle gh, gCoord x, gCoord y, gCoord cx, gCoord cy, const char *str, gJustify justify)
Draw a text string verticly centered within the specified filled box.
void gwinSetDefaultColor(gColor clr)
Set the default foreground color for all new GWIN windows.
GHandle gwinGetNextWindow(GHandle gh)
Get the next window in the z-order.
gColor gwinGetDefaultBgColor(void)
Get the default background color for all new GWIN windows.
void gwinDrawLine(GHandle gh, gCoord x0, gCoord y0, gCoord x1, gCoord y1)
Draw a line in the window.
GWindowMinMax
A window's minimized, maximized or normal size.
void gwinDrawStringBox(GHandle gh, gCoord x, gCoord y, gCoord cx, gCoord cy, const char *str, gJustify justify)
Draw a text string verticly centered within the specified box.
void gwinSetEnabled(GHandle gh, gBool enabled)
Enable or disable a window.
void gwinSetDefaultBgColor(gColor bgclr)
Set the default background color for all new GWIN windows.
GWindowMinMax gwinGetMinMax(GHandle gh)
Get the Minimized/Maximized state of a window.
void gwinResize(GHandle gh, gCoord width, gCoord height)
Resize a window.
void gwinFillString(GHandle gh, gCoord x, gCoord y, const char *str)
Draw a text string with a filled background in the window.
void gwinMove(GHandle gh, gCoord x, gCoord y)
Move a window.
void gwinSetWindowManager(struct GWindowManager *gwm)
Set the window manager for the GWIN system.
gColor gwinGetPixelColor(GHandle gh, gCoord x, gCoord y)
Get the color of a pixel in the window.
void gwinSetMinMax(GHandle gh, GWindowMinMax minmax)
Minimize, Maximize or Restore a window.
void gwinDrawThickLine(GHandle gh, gCoord x0, gCoord y0, gCoord x1, gCoord y1, gCoord width, gBool round)
Draw a thick line in the window.
gBool gwinGetVisible(GHandle gh)
Gets the visibility of a window.
GWIN Graphic window subsystem header file.
GWIN 3D module header file.
GWIN GRAPH module header file.
GWIN image widget header file.
The structure to initialise a GWIN.
A window object structure.
const struct gwinVMT * vmt
The structure for an image.
Type for a 2D point on the screen.
The Virtual Method Table for a GWIN window.