// swfobjs.idl : IDL source for swfobjs.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (swfobjs.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(0DD77390-686B-11D4-B367-D4475FDFF33A),
dual,
helpstring("IswfMovie Interface"),
pointer_default(unique)
]
interface IswfMovie : IDispatch
{
[id(1), helpstring("method WriteMovie")] HRESULT WriteMovie([in] BSTR fname);
[id(2), helpstring("method SetSize")] HRESULT SetSize([in] long cx, [in] long cy);
[id(3), helpstring("method SetFrameRate")] HRESULT SetFrameRate([in] long framerate);
[propget, id(5), helpstring("property filename")] HRESULT filename([out, retval] BSTR *pVal);
[propput, id(5), helpstring("property filename")] HRESULT filename([in] BSTR newVal);
[id(6), helpstring("method AddObject")] HRESULT AddObject([in] IUnknown* pUnk);
[id(7), helpstring("method GotoFrame")] HRESULT GotoFrame([in] long index);
[id(8), helpstring("method SetFrameBkColor")] HRESULT SetFrameBkColor([in] unsigned char red, [in] unsigned char green, [in] unsigned char blue);
[id(9), helpstring("method RemoveObject")] HRESULT RemoveObject([in] IUnknown* pUnk);
[id(10), helpstring("method AddAction")] HRESULT AddAction([in] IUnknown* pUnk);
[id(11), helpstring("method MakeMovie")] HRESULT MakeMovie();
[id(12), helpstring("method SetTempDir")] HRESULT SetTempDir([in] BSTR tempDir);
[propget, id(13), helpstring("property Content")] HRESULT Content([out, retval] VARIANT *pVal);
[id(14), helpstring("method DeleteTempFile")] HRESULT DeleteTempFile();
[id(15), helpstring("method ReadFileContent")] HRESULT ReadFileContent([in] BSTR fname, [out, retval] VARIANT *pVal);
};
[
object,
uuid(0DD7739C-686B-11D4-B367-D4475FDFF33A),
dual,
helpstring("IswfObject Interface"),
pointer_default(unique)
]
interface IswfObject : IDispatch
{
[propget, id(1), helpstring("property ObjectType")] HRESULT ObjectType([out, retval] short *pVal);
[propput, id(1), helpstring("property ObjectType")] HRESULT ObjectType([in] short newVal);
[id(2), helpstring("method MakeRectangle")] HRESULT MakeRectangle([in] long xmin, [in] long ymin, [in] long xmax, [in] long ymax);
[id(3), helpstring("method MakeCircle")] HRESULT MakeCircle([in] long center_x, [in] long center_y, [in] long radius);
[id(4), helpstring("method MakePolygon")] HRESULT MakePolygon([in] long originX, [in] long originY);
[id(5), helpstring("method MakeOval")] HRESULT MakeOval([in] long xMin, [in] long yMin, [in] long xMax, [in] long yMax);
[id(6), helpstring("method SetLineWidth")] HRESULT SetLineWidth([in] long lineWidth );
[id(7), helpstring("method SetLineColorA")] HRESULT SetLineColorA([in] unsigned char red, [in] unsigned char green, [in] unsigned char blue, [in] unsigned char alpha);
[id(8), helpstring("method SetSolidFill")] HRESULT SetSolidFill([in] unsigned char red, [in] unsigned char green, [in] unsigned char blue, [in] unsigned char alpha);
[id(9), helpstring("method SetLinearFill")] HRESULT SetLinearFill([in] unsigned char red1, [in] unsigned char green1, [in] unsigned char blue1, [in] unsigned char alpha1, [in] unsigned char red2, [in] unsigned char green2, [in] unsigned char blue2, [in] unsigned char alpha2);
[id(10), helpstring("method SetLinearFillCenter")] HRESULT SetLinearFillCenter([in] long centerX, [in] long centerY);
[id(11), helpstring("method SetRadialFill")] HRESULT SetRadialFill([in] unsigned char red1, [in] unsigned char green1, [in] unsigned char blue1, [in] unsigned char alpha1, [in] unsigned char red2, [in] unsigned char green2, [in] unsigned char blue2, [in] unsigned char alpha2);
[id(12), helpstring("method SetRadialFillCenter")] HRESULT SetRadialFillCenter([in] long centerX, [in] long centerY);
[id(13), helpstring("method Translate")] HRESULT Translate([in] long x, [in] long y);
[id(14), helpstring("method Rotate")] HRESULT Rotate([in] long degree);
[id(15), helpstring("method Scale")] HRESULT Scale([in] long scaleX, [in] long scaleY);
[id(16), helpstring("method SetNoFill")] HRESULT SetNoFill();
[id(17), helpstring("method AddCurvedLine")] HRESULT AddCurvedLine([in] long controlDX, [in] long controlDY, [in] long anchorDX, [in] long anchorDY);
[id(18), helpstring("method AddStraightLine")] HRESULT AddStraightLine([in] long dx, [in] long dy);
[id(20), helpstring("method Delete")] HRESULT Delete();
[id(21), helpstring("method MakeEditText")] HRESULT MakeEditText([in] long xmin, [in] long ymin, [in] long xmax, [in] long ymax, [in] BSTR Text);
[id(22), helpstring("method SetEditTextHeight")] HRESULT SetEditTextHeight([in] long height);
[id(23), helpstring("method SetEditTextEditable")] HRESULT SetEditTextEditable([in] BOOL editable);
[id(24), helpstring("method SetEditTextColor")] HRESULT SetEditTextColor([in] unsigned char red, [in] unsigned char green, [in] unsigned char blue);
[id(25), helpstring("method MakePicture")] HRESULT MakePicture([in] long xmin, [in] long ymin, [in] long xmax, [in] long ymax, [in] long bitmap_x, [in] long bitmap_y, [in] BSTR filename);
[id(26), helpstring("method SetDepth")] HRESULT SetDepth([in] long depth);
[id(27), helpstring("method MakeSound")] HRESULT MakeSound([in] BSTR filename);
[id(28), helpstring("method MakeButton")] HRESULT MakeButton([in] IUnknown *p1, [in] IUnknown *p2, [in] IUnknown *p3, [in] IUnknown *p4);
[id(29), helpstring("method QueueEvent")] HRESULT QueueEvent([in] IUnknown *Action, [in] long iEvent);
[id(30), helpstring("method SetBitmapFillJpeg")] HRESULT SetBitmapFillJpeg([in] long bitmap_x, [in] long bitmap_y, [in] BSTR filename);
[id(31), helpstring("method MakeFont")] HRESULT MakeFont([in] BSTR name);
[id(32), helpstring("method MakeText")] HRESULT MakeText([in] BSTR text, [in] IUnknown *pUnk);
[id(33), helpstring("method AddGlyph")] HRESULT AddGlyph([in] BSTR font, [in] BSTR text, [in] long unicode);
[id(34), helpstring("method MakeButtonSimple")] HRESULT MakeButtonSimple([in] IUnknown* p1, [in] short r1, [in] short g1, [in] short b1, [in] short a1, [in] short r2, [in] short g2, [in] short b2, [in] short a2);
[id(35), helpstring("method SetLineColor")] HRESULT SetLineColor([in] unsigned char red, [in] unsigned char green, [in] unsigned char blue, [in] unsigned char alpha);
[id(36), helpstring("method AddGlyphEx")] HRESULT AddGlyphEx([in] BSTR font, [in] BSTR text, [in] long unicode, [in] long advance);
[id(37), helpstring("method MakeTextEx")] HRESULT MakeTextEx([in] BSTR text, [in] IUnknown *pUnk, [in] long x, [in] long y, [in] long size);
[id(38), helpstring("method ScaleEx")] HRESULT ScaleEx(long scaleX, long scaleY);
[id(39), helpstring("method MakeTextSimple")] HRESULT MakeTextSimple([in] BSTR fontname, [in] BSTR text, [in] long x, [in] long y, [in] long size);
[id(40), helpstring("method AddNewPath")] HRESULT AddNewPath([in] long dx, [in] long dy);
};
[
object,
uuid(0DD773A2-686B-11D4-B367-D4475FDFF33A),
dual,
helpstring("IswfAction Interface"),
pointer_default(unique)
]
interface IswfAction : IDispatch
{
[id(1), helpstring("method MakeActionStop")] HRESULT MakeActionStop();
[id(2), helpstring("method MakeActionPlay")] HRESULT MakeActionPlay();
[id(3), helpstring("method MakeActionGotoFrame")] HRESULT MakeActionGotoFrame([in] long frame);
[id(4), helpstring("method MakeActionGotoURL")] HRESULT MakeActionGotoURL([in] BSTR url);
[id(5), helpstring("method MakeActionGotoURLTarget")] HRESULT MakeActionGotoURLTarget([in] BSTR url, [in] BSTR target);
};
[
uuid(0DD77380-686B-11D4-B367-D4475FDFF33A),
version(1.0),
helpstring("swfobjs 1.0 Type Library")
]
library SWFOBJSLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(0DD77391-686B-11D4-B367-D4475FDFF33A),
helpstring("swfMovie Class")
]
coclass swfMovie
{
[default] interface IswfMovie;
};
[
uuid(0DD7739D-686B-11D4-B367-D4475FDFF33A),
helpstring("swfObject Class")
]
coclass swfObject
{
[default] interface IswfObject;
};
[
uuid(0DD773A3-686B-11D4-B367-D4475FDFF33A),
helpstring("swfAction Class")
]
coclass swfAction
{
[default] interface IswfAction;
};
}