Typedefs | Enumerations | Functions

iup_drvdraw.h File Reference

Simple Draw API. More...

Typedefs

typedef struct _IdrawCanvas IdrawCanvas

Enumerations

enum  { IUP_DRAW_FILL, IUP_DRAW_STROKE, IUP_DRAW_STROKE_DASH, IUP_DRAW_STROKE_DOT }
enum  { IUP_IMGPOS_LEFT, IUP_IMGPOS_RIGHT, IUP_IMGPOS_TOP, IUP_IMGPOS_BOTTOM }
enum  { IUPDRAW_ARROW_LEFT, IUPDRAW_ARROW_RIGHT, IUPDRAW_ARROW_TOP, IUPDRAW_ARROW_BOTTOM }

Functions

IdrawCanvas * iupdrvDrawCreateCanvas (Ihandle *ih)
void iupdrvDrawKillCanvas (IdrawCanvas *dc)
void iupdrvDrawFlush (IdrawCanvas *dc)
void iupdrvDrawUpdateSize (IdrawCanvas *dc)
void iupdrvDrawGetSize (IdrawCanvas *dc, int *w, int *h)
void iupdrvDrawLine (IdrawCanvas *dc, int x1, int y1, int x2, int y2, unsigned char r, unsigned char g, unsigned char b, int style)
void iupdrvDrawRectangle (IdrawCanvas *dc, int x1, int y1, int x2, int y2, unsigned char r, unsigned char g, unsigned char b, int style)
void iupdrvDrawArc (IdrawCanvas *dc, int x1, int y1, int x2, int y2, double a1, double a2, unsigned char r, unsigned char g, unsigned char b, int style)
void iupdrvDrawPolygon (IdrawCanvas *dc, int *points, int count, unsigned char r, unsigned char g, unsigned char b, int style)
void iupdrvDrawText (IdrawCanvas *dc, const char *text, int len, int x, int y, int w, int h, unsigned char r, unsigned char g, unsigned char b, const char *font, int align)
void iupdrvDrawImage (IdrawCanvas *dc, const char *name, int make_inactive, int x, int y)
void iupdrvDrawSetClipRect (IdrawCanvas *dc, int x1, int y1, int x2, int y2)
void iupdrvDrawResetClip (IdrawCanvas *dc)
void iupdrvDrawSelectRect (IdrawCanvas *dc, int x1, int y1, int x2, int y2)
void iupdrvDrawFocusRect (IdrawCanvas *dc, int x1, int y1, int x2, int y2)
void iupdrvDrawParentBackground (IdrawCanvas *dc, Ihandle *ih)
int iupFlatGetHorizontalAlignment (const char *value)
int iupFlatGetVerticalAlignment (const char *value)
int iupFlatGetImagePosition (const char *value)
char * iupFlatGetTextSize (Ihandle *ih, const char *str, int *w, int *h)
const char * iupFlatGetImageName (Ihandle *ih, const char *baseattrib, const char *basevalue, int press, int highlight, int active, int *make_inactive)
const char * iupFlatGetImageNameId (Ihandle *ih, const char *baseattrib, int id, const char *basevalue, int press, int highlight, int active, int *make_inactive)
void iupFlatDrawBorder (IdrawCanvas *dc, int xmin, int xmax, int ymin, int ymax, int border_width, const char *color, const char *bgcolor, int active)
void iupFlatDrawBox (IdrawCanvas *dc, int xmin, int xmax, int ymin, int ymax, const char *color, const char *bgcolor, int active)
void iupFlatDrawIcon (Ihandle *ih, IdrawCanvas *dc, int icon_x, int icon_y, int icon_width, int icon_height, int img_position, int spacing, int horiz_alignment, int vert_alignment, int horiz_padding, int vert_padding, const char *imagename, int make_inactive, const char *title, const char *text_align, const char *fgcolor, const char *bgcolor, int active)
void iupFlatDrawArrow (IdrawCanvas *dc, int x, int y, int size, const char *color, const char *bgcolor, int active, int dir)

Detailed Description

See Copyright Notice in "iup.h"