Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / main / std_includes / interfaces / scalosgfx.xml
blob4c5ea0b86c93471175aadaf7256a1bf786eec589
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE library SYSTEM "library.dtd">
3 <!-- autogenerated by fdtrans v52.1 -->
4 <library name="scalosgfx" basename="ScalosGfxBase" openname="scalosgfx.library">
5         <include>intuition/classusr.h</include>
6         <include>scalos/scalos.h</include>
7         <include>graphics/gfx.h</include>
8         <include>scalos/scalosgfx.h</include>
9         <interface name="main" version="1.0" struct="ScalosGfxIFace" prefix="_ScalosGfx_" asmprefix="IScalosGfx" global="IScalosGfx">
10                 <method name="Obtain" result="uint32"/>
11                 <method name="Release" result="uint32"/>
12                 <method name="Expunge" result="void" status="unimplemented"/>
13                 <method name="Clone" result="struct Interface *" status="unimplemented"/>
14                 <method name="ScalosGfxCreateEmptySAC" result="struct ScalosBitMapAndColor *">
15                 </method>
16                 <method name="ScalosGfxCreateSAC" result="struct ScalosBitMapAndColor *">
17                         <arg name="width" type="ULONG"/>
18                         <arg name="height" type="ULONG"/>
19                         <arg name="depth" type="ULONG"/>
20                         <arg name="friendBM" type="struct BitMap *"/>
21                         <arg name="tagList" type="struct TagItem *"/>
22                 </method>
23                 <method name="ScalosGfxCreateSACTags" result="struct ScalosBitMapAndColor *">
24                         <arg name="width" type="ULONG"/>
25                         <arg name="height" type="ULONG"/>
26                         <arg name="depth" type="ULONG"/>
27                         <arg name="friendBM" type="struct BitMap *"/>
28                         <vararg name="firstTag" type="ULONG"/>
29                 </method>
30                 <method name="ScalosGfxFreeSAC" result="VOID">
31                         <arg name="sac" type="struct ScalosBitMapAndColor *"/>
32                 </method>
33                 <method name="ScalosGfxCreateARGB" result="struct gfxARGB *">
34                         <arg name="width" type="ULONG"/>
35                         <arg name="height" type="ULONG"/>
36                         <arg name="tagList" type="struct TagItem *"/>
37                 </method>
38                 <method name="ScalosGfxCreateARGBTags" result="struct gfxARGB *">
39                         <arg name="width" type="ULONG"/>
40                         <arg name="height" type="ULONG"/>
41                         <vararg name="firstTag" type="ULONG"/>
42                 </method>
43                 <method name="ScalosGfxFreeARGB" result="VOID">
44                         <arg name="argb" type="struct gfxARGB **"/>
45                 </method>
46                 <method name="ScalosGfxARGBSetAlpha" result="VOID">
47                         <arg name="src" type="struct ARGBHeader *"/>
48                         <arg name="alpha" type="UBYTE"/>
49                 </method>
50                 <method name="ScalosGfxARGBSetAlphaMask" result="VOID">
51                         <arg name="argbh" type="struct ARGBHeader *"/>
52                         <arg name="maskPlane" type="PLANEPTR"/>
53                 </method>
54                 <method name="ScalosGfxCreateARGBFromBitMap" result="struct gfxARGB *">
55                         <arg name="bm" type="struct BitMap *"/>
56                         <arg name="width" type="ULONG"/>
57                         <arg name="height" type="ULONG"/>
58                         <arg name="numberOfColors" type="ULONG"/>
59                         <arg name="colorTable" type="const ULONG *"/>
60                         <arg name="maskPlane" type="PLANEPTR"/>
61                 </method>
62                 <method name="ScalosGfxFillARGBFromBitMap" result="VOID">
63                         <arg name="argbh" type="struct ARGBHeader *"/>
64                         <arg name="srcBM" type="struct BitMap *"/>
65                         <arg name="maskPlane" type="PLANEPTR"/>
66                 </method>
67                 <method name="ScalosGfxWriteARGBToBitMap" result="VOID">
68                         <arg name="argbh" type="struct ARGBHeader *"/>
69                         <arg name="bm" type="struct BitMap *"/>
70                         <arg name="numberOfColors" type="ULONG"/>
71                         <arg name="colorTable" type="const ULONG *"/>
72                 </method>
73                 <method name="ScalosGfxMedianCut" result="struct ScalosBitMapAndColor *">
74                         <arg name="argbh" type="struct ARGBHeader *"/>
75                         <arg name="depth" type="ULONG"/>
76                         <arg name="tagList" type="struct TagItem *"/>
77                 </method>
78                 <method name="ScalosGfxMedianCutTags" result="struct ScalosBitMapAndColor *">
79                         <arg name="argbh" type="struct ARGBHeader *"/>
80                         <arg name="depth" type="ULONG"/>
81                         <vararg name="firstTag" type="ULONG"/>
82                 </method>
83                 <method name="ScalosGfxScaleARGBArray" result="struct gfxARGB *">
84                         <arg name="src" type="const struct ARGBHeader *"/>
85                         <arg name="destWidth" type="ULONG *"/>
86                         <arg name="destHeight" type="ULONG *"/>
87                         <arg name="tagList" type="struct TagItem *"/>
88                 </method>
89                 <method name="ScalosGfxScaleARGBArrayTags" result="struct gfxARGB *">
90                         <arg name="src" type="const struct ARGBHeader *"/>
91                         <arg name="destWidth" type="ULONG *"/>
92                         <arg name="destHeight" type="ULONG *"/>
93                         <vararg name="firstTag" type="ULONG"/>
94                 </method>
95                 <method name="ScalosGfxScaleBitMap" result="struct BitMap *">
96                         <arg name="sbma" type="struct ScaleBitMapArg *"/>
97                         <arg name="tagList" type="struct TagItem *"/>
98                 </method>
99                 <method name="ScalosGfxScaleBitMapTags" result="struct BitMap *">
100                         <arg name="sbma" type="struct ScaleBitMapArg *"/>
101                         <vararg name="firstTag" type="ULONG"/>
102                 </method>
103                 <method name="ScalosGfxCalculateScaleAspect" result="VOID">
104                         <arg name="sourceWidth" type="ULONG"/>
105                         <arg name="sourceHeight" type="ULONG"/>
106                         <arg name="destWidth" type="ULONG *"/>
107                         <arg name="destHeight" type="ULONG *"/>
108                 </method>
109                 <method name="ScalosGfxBlitARGB" result="VOID">
110                         <arg name="destARGB" type="struct ARGBHeader *"/>
111                         <arg name="srcARGB" type="const struct ARGBHeader *"/>
112                         <arg name="destLeft" type="LONG"/>
113                         <arg name="destTop" type="LONG"/>
114                         <arg name="srcLeft" type="LONG"/>
115                         <arg name="srcTop" type="LONG"/>
116                         <arg name="width" type="LONG"/>
117                         <arg name="height" type="LONG"/>
118                 </method>
119                 <method name="ScalosGfxFillRectARGB" result="VOID">
120                         <arg name="destARGB" type="struct ARGBHeader *"/>
121                         <arg name="fillARGB" type="const struct gfxARGB *"/>
122                         <arg name="left" type="LONG"/>
123                         <arg name="top" type="LONG"/>
124                         <arg name="width" type="LONG"/>
125                         <arg name="height" type="LONG"/>
126                 </method>
127                 <method name="ScalosGfxSetARGB" result="VOID">
128                         <arg name="destARGB" type="struct ARGBHeader *"/>
129                         <arg name="fillARGB" type="const struct gfxARGB *"/>
130                 </method>
131                 <method name="ScalosGfxNewColorMap" result="BOOL">
132                         <arg name="sac" type="struct ScalosBitMapAndColor *"/>
133                         <arg name="colorMap" type="const ULONG *"/>
134                         <arg name="colorEntries" type="ULONG"/>
135                 </method>
136                 <method name="ScalosGfxARGBRectMult" result="VOID">
137                         <arg name="rp" type="struct RastPort *"/>
138                         <arg name="numerator" type="const struct gfxARGB *"/>
139                         <arg name="denominator" type="const struct gfxARGB *"/>
140                         <arg name="xMin" type="WORD"/>
141                         <arg name="yMin" type="WORD"/>
142                         <arg name="xMax" type="WORD"/>
143                         <arg name="yMax" type="WORD"/>
144                 </method>
145                 <method name="ScalosGfxBlitARGBAlpha" result="VOID">
146                         <arg name="rp" type="struct RastPort *"/>
147                         <arg name="srcH" type="const struct ARGBHeader *"/>
148                         <arg name="destLeft" type="ULONG"/>
149                         <arg name="destTop" type="ULONG"/>
150                         <arg name="srcLeft" type="ULONG"/>
151                         <arg name="srcTop" type="ULONG"/>
152                         <arg name="width" type="ULONG"/>
153                         <arg name="height" type="ULONG"/>
154                 </method>
155                 <method name="ScalosGfxBlitARGBAlphaTagList" result="VOID">
156                         <arg name="rp" type="struct RastPort *"/>
157                         <arg name="srcH" type="const struct ARGBHeader *"/>
158                         <arg name="destLeft" type="ULONG"/>
159                         <arg name="destTop" type="ULONG"/>
160                         <arg name="srcSize" type="const struct IBox *"/>
161                         <arg name="tagList" type="struct TagItem *"/>
162                 </method>
163                 <method name="ScalosGfxBlitARGBAlphaTags" result="VOID">
164                         <arg name="rp" type="struct RastPort *"/>
165                         <arg name="srcH" type="const struct ARGBHeader *"/>
166                         <arg name="destLeft" type="ULONG"/>
167                         <arg name="destTop" type="ULONG"/>
168                         <arg name="srcSize" type="const struct IBox *"/>
169                         <vararg name="firstTag" type="ULONG"/>
170                 </method>
171                 <method name="ScalosGfxBlitIcon" result="VOID">
172                         <arg name="rpBackground" type="struct RastPort *"/>
173                         <arg name="rpIcon" type="struct RastPort *"/>
174                         <arg name="left" type="ULONG"/>
175                         <arg name="top" type="ULONG"/>
176                         <arg name="width" type="ULONG"/>
177                         <arg name="height" type="ULONG"/>
178                         <arg name="tagList" type="struct TagItem *"/>
179                 </method>
180                 <method name="ScalosGfxBlitIconTags" result="VOID">
181                         <arg name="rpBackground" type="struct RastPort *"/>
182                         <arg name="rpIcon" type="struct RastPort *"/>
183                         <arg name="left" type="ULONG"/>
184                         <arg name="top" type="ULONG"/>
185                         <arg name="width" type="ULONG"/>
186                         <arg name="height" type="ULONG"/>
187                         <vararg name="firstTag" type="ULONG"/>
188                 </method>
189                 <method name="ScalosGfxDrawGradient" result="BOOL">
190                         <arg name="dest" type="struct ARGBHeader *"/>
191                         <arg name="left" type="LONG"/>
192                         <arg name="top" type="LONG"/>
193                         <arg name="width" type="LONG"/>
194                         <arg name="height" type="LONG"/>
195                         <arg name="start" type="struct gfxARGB *"/>
196                         <arg name="stop" type="struct gfxARGB *"/>
197                         <arg name="gradType" type="ULONG"/>
198                 </method>
199                 <method name="ScalosGfxDrawGradientRastPort" result="BOOL">
200                         <arg name="rp" type="struct RastPort *"/>
201                         <arg name="left" type="LONG"/>
202                         <arg name="top" type="LONG"/>
203                         <arg name="width" type="LONG"/>
204                         <arg name="height" type="LONG"/>
205                         <arg name="start" type="struct gfxARGB *"/>
206                         <arg name="stop" type="struct gfxARGB *"/>
207                         <arg name="gradType" type="ULONG"/>
208                 </method>
209                 <method name="ScalosGfxDrawLine" result="VOID">
210                         <arg name="dest" type="struct ARGBHeader *"/>
211                         <arg name="fromX" type="LONG"/>
212                         <arg name="fromY" type="LONG"/>
213                         <arg name="toX" type="LONG"/>
214                         <arg name="toY" type="LONG"/>
215                         <arg name="lineColor" type="const struct gfxARGB *"/>
216                 </method>
217                 <method name="ScalosGfxDrawLineRastPort" result="VOID">
218                         <arg name="rp" type="struct RastPort *"/>
219                         <arg name="fromX" type="LONG"/>
220                         <arg name="fromY" type="LONG"/>
221                         <arg name="toX" type="LONG"/>
222                         <arg name="toY" type="LONG"/>
223                         <arg name="lineColor" type="const struct gfxARGB *"/>
224                 </method>
225                 <method name="ScalosGfxDrawEllipse" result="VOID">
226                         <arg name="dest" type="struct ARGBHeader *"/>
227                         <arg name="xCenter" type="LONG"/>
228                         <arg name="yCenter" type="LONG"/>
229                         <arg name="radiusX" type="LONG"/>
230                         <arg name="radiusy" type="LONG"/>
231                         <arg name="segment" type="WORD"/>
232                         <arg name="color1" type="const struct gfxARGB *"/>
233                         <arg name="color2" type="const struct gfxARGB *"/>
234                 </method>
235                 <method name="ScalosGfxDrawEllipseRastPort" result="VOID">
236                         <arg name="rp" type="struct RastPort *"/>
237                         <arg name="xCenter" type="LONG"/>
238                         <arg name="yCenter" type="LONG"/>
239                         <arg name="radiusX" type="LONG"/>
240                         <arg name="radiusy" type="LONG"/>
241                         <arg name="segment" type="WORD"/>
242                         <arg name="color1" type="const struct gfxARGB *"/>
243                         <arg name="color2" type="const struct gfxARGB *"/>
244                 </method>
245         </interface>
246 </library>