{
   $Id: gtkarrow.pp,v 1.1 2000/07/13 06:34:03 michael Exp $
}

{****************************************************************************
                                 Interface
****************************************************************************}

{$ifdef read_interface}

    type
       PGtkArrow = ^TGtkArrow;
       TGtkArrow = record
            misc : TGtkMisc;
            arrow_type : gint16;
            shadow_type : gint16;
         end;

       PGtkArrowClass = ^TGtkArrowClass;
       TGtkArrowClass = record
            parent_class : TGtkMiscClass;
         end;

Type
  GTK_ARROW = PGtkArrow;
  GTK_ARROW_CLASS = PGtkArrowClass;

function  GTK_ARROW_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_arrow_get_type';
function  GTK_IS_ARROW(obj:pointer):boolean;
function  GTK_IS_ARROW_CLASS(klass:pointer):boolean;

function  gtk_arrow_get_type:TGtkType;cdecl;external gtkdll name 'gtk_arrow_get_type';
function  gtk_arrow_new (arrow_type:TGtkArrowType; shadow_type:TGtkShadowType):PGtkWidget;cdecl;external gtkdll name 'gtk_arrow_new';
procedure gtk_arrow_set(arrow:PGtkArrow; arrow_type:TGtkArrowType; shadow_type:TGtkShadowType);cdecl;external gtkdll name 'gtk_arrow_set';

{$endif read_interface}


{****************************************************************************
                              Implementation
****************************************************************************}

{$ifdef read_implementation}

function  GTK_IS_ARROW(obj:pointer):boolean;
begin
  GTK_IS_ARROW:=(obj<>nil) and GTK_IS_ARROW_CLASS(PGtkTypeObject(obj)^.klass);
end;

function  GTK_IS_ARROW_CLASS(klass:pointer):boolean;
begin
  GTK_IS_ARROW_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GTK_ARROW_TYPE);
end;

{$endif read_implementation}

{
  $Log: gtkarrow.pp,v $
  Revision 1.1  2000/07/13 06:34:03  michael
  + Initial import

  Revision 1.1  1999/11/24 23:36:35  peter
    * moved to packages dir

  Revision 1.11  1999/10/21 08:42:01  florian
    * some changes to get it work with gtk 1.3 under Windows 98:
      - removed some trailing space after the import name
      - In gtkbindings.h is
        #define  gtk_binding_entry_add          gtk_binding_entry_clear
        so in the pascal headers the import name of gtk_bindings_entry_add should be
        gtk_binding_entry_clear!
      - removed the declaration of
        gtk_drag_source_unset in gtkdnd.pp it isn't in gtk-1.3.dll!
      - in gdk.pp glibdll must be set to gdk-1.3:
        const
           gdkdll='gdk-1.3';
           glibdll='gdk-1.3';
        else the whole gdk_* calls are imported from glib-1.3.dll which is wrong!

  Revision 1.10  1999/10/06 17:42:48  peter
    * external is now only in the interface
    * removed gtk 1.0 support

  Revision 1.9  1999/07/23 16:11:54  peter
    * use packrecords C

  Revision 1.8  1999/05/11 00:38:06  peter
    * win32 fixes

  Revision 1.7  1999/05/10 15:18:54  peter
    * cdecl fixes

  Revision 1.6  1999/05/07 15:09:52  peter
    * more fixes

  Revision 1.5  1999/05/07 10:40:26  peter
    * first things for 1.2

  Revision 1.4  1998/11/09 10:09:32  peter
    + C type casts are now correctly handled

  Revision 1.3  1998/10/21 20:22:07  peter
    * cdecl, packrecord fixes (from the gtk.tar.gz)
    * win32 support
    * gtk.pp,gdk.pp for an all in one unit

}


