with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLTableRowMetrics_Interface is

   procedure Initialize (This : in out IHTMLTableRowMetrics_Type) is
   begin
      Set_IID (This, IID_IHTMLTableRowMetrics);
   end Initialize;

   function Pointer (This : IHTMLTableRowMetrics_Type)
     return Pointer_To_IHTMLTableRowMetrics
   is
   begin
      return To_Pointer_To_IHTMLTableRowMetrics (Address (This));
   end Pointer;

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

   function Get_clientHeight
     (This : IHTMLTableRowMetrics_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_clientHeight
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_clientHeight;

   function Get_clientWidth
     (This : IHTMLTableRowMetrics_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_clientWidth
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_clientWidth;

   function Get_clientTop
     (This : IHTMLTableRowMetrics_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_clientTop
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_clientTop;

   function Get_clientLeft
     (This : IHTMLTableRowMetrics_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_clientLeft
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_clientLeft;

end MSHTML.IHTMLTableRowMetrics_Interface;

