with GNATCOM.Errors;

package body MSHTML.IElementBehaviorFocus_Interface is

   procedure Initialize (This : in out IElementBehaviorFocus_Type) is
   begin
      Set_IID (This, IID_IElementBehaviorFocus);
   end Initialize;

   function Pointer (This : IElementBehaviorFocus_Type)
     return Pointer_To_IElementBehaviorFocus
   is
   begin
      return To_Pointer_To_IElementBehaviorFocus (Address (This));
   end Pointer;

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

   procedure GetFocusRect
     (This  : IElementBehaviorFocus_Type;
      pRect : Pointer_To_tagRECT)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetFocusRect
         (Pointer (This),
          pRect));

   end GetFocusRect;

end MSHTML.IElementBehaviorFocus_Interface;

