with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ICanvasPattern_Interface is

   procedure Initialize (This : in out ICanvasPattern_Type) is
   begin
      Set_IID (This, IID_ICanvasPattern);
   end Initialize;

   function Pointer (This : ICanvasPattern_Type)
     return Pointer_To_ICanvasPattern
   is
   begin
      return To_Pointer_To_ICanvasPattern (Address (This));
   end Pointer;

   procedure Attach (This    : in out ICanvasPattern_Type;
                     Pointer : in     Pointer_To_ICanvasPattern)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

end MSHTML.ICanvasPattern_Interface;

