Don't call InvertPixelArray with negative width and/or height.
[tangerine.git] / workbench / libs / muimaster / imspec.h
blobaa4214b1a48996d573dbc015ba9149b9ab515453
1 /*
2 Copyright 1999, David Le Corfec.
3 Copyright 2002, The AROS Development Team.
4 All rights reserved.
6 $Id$
7 */
9 #ifndef _MUI_IMSPEC_H
10 #define _MUI_IMSPEC_H
12 /* API change on Feb-2003 by dlc :
13 * MUIM_Setup
15 imspec = zune_imspec_setup(spec, mri);
16 MUIM_Show
18 zune_imspec_show(imspec, obj);
19 MUIM_Draw
21 zune_imspec_draw(imspec, ...)
23 zune_imspec_hide(imspec);
25 MUIM_Hide
26 zune_imspec_cleanup(imspec);
27 imspec = NULL;
29 MUIM_Cleanup
32 * zune_imspec_setup() (called in MUIM_Setup) will create and return an internal
33 * structure from an external specification.
34 * zune_imspec_cleanup() (called in MUIM_Cleanup) will free an internal specification.
37 struct MUI_ImageSpec_intern *zune_imspec_setup(IPTR s, struct MUI_RenderInfo *mri);
38 void zune_imspec_cleanup(struct MUI_ImageSpec_intern *spec);
39 BOOL zune_imspec_askminmax(struct MUI_ImageSpec_intern *spec, struct MUI_MinMax *minmax);
40 void zune_imspec_show(struct MUI_ImageSpec_intern *spec, Object *obj);
41 void zune_imspec_hide(struct MUI_ImageSpec_intern *spec);
42 void zune_imspec_draw (struct MUI_ImageSpec_intern *img, struct MUI_RenderInfo *mri,
43 LONG left, LONG top, LONG width, LONG height,
44 LONG xoffset, LONG yoffset, LONG state);
45 void zune_imspec_drawbuffered (struct MUI_ImageSpec_intern *spec, struct RastPort *rp, struct MUI_RenderInfo *mri,
46 LONG left, LONG top, LONG width, LONG height,
47 LONG xoffset, LONG yoffset, LONG state, LONG dx, LONG dy, WORD mode, LONG abs_l, LONG abs_t, LONG abs_r, LONG abs_b);
49 /* const char *zune_imspec_to_string(struct MUI_ImageSpec_intern *spec); */
50 STRPTR zune_image_spec_duplicate(IPTR in);
51 void zune_image_spec_free(CONST_STRPTR spec);
53 #endif