{
   $Id: gtkpixmap.pp,v 1.2 2002/09/07 15:43:00 peter Exp $
}

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

{$ifdef read_interface}

  type
     PGtkPixmap = ^TGtkPixmap;
     TGtkPixmap = record
          misc : TGtkMisc;
          pixmap : PGdkPixmap;
          mask : PGdkBitmap;
          pixmap_insensitive : PGdkPixmap;
          flag0 : {$ifdef win32}longint{$else}word{$endif};
       end;
  const
     bm_TGtkPixmap_build_insensitive = $1;
     bp_TGtkPixmap_build_insensitive = 0;
function  build_insensitive(var a : TGtkPixmap) : guint;
procedure set_build_insensitive(var a : TGtkPixmap; __build_insensitive : guint);

  type
     PGtkPixmapClass = ^TGtkPixmapClass;
     TGtkPixmapClass = record
          parent_class : TGtkMiscClass;
       end;

Type
  GTK_PIXMAP=PGtkPixmap;
  GTK_PIXMAP_CLASS=PGtkPixmapClass;

function  GTK_PIXMAP_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_pixmap_get_type';
function  GTK_IS_PIXMAP(obj:pointer):boolean;
function  GTK_IS_PIXMAP_CLASS(klass:pointer):boolean;

function  gtk_pixmap_get_type:TGtkType;cdecl;external gtkdll name 'gtk_pixmap_get_type';
function  gtk_pixmap_new(pixmap:PGdkPixmap; mask:PGdkBitmap):PGtkWidget;cdecl;external gtkdll name 'gtk_pixmap_new';
procedure gtk_pixmap_set(pixmap:PGtkPixmap; val:PGdkPixmap; mask:PGdkBitmap);cdecl;external gtkdll name 'gtk_pixmap_set';
procedure gtk_pixmap_get(pixmap:PGtkPixmap; val:PPGdkPixmap; mask:PPGdkBitmap);cdecl;external gtkdll name 'gtk_pixmap_get';
procedure gtk_pixmap_set_build_insensitive(pixmap:PGtkPixmap; build:guint);cdecl;external gtkdll name 'gtk_pixmap_set_build_insensitive';

{$endif read_interface}


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

{$ifdef read_implementation}

function  build_insensitive(var a : TGtkPixmap) : guint;
    begin
       build_insensitive:=(a.flag0 and bm_TGtkPixmap_build_insensitive) shr bp_TGtkPixmap_build_insensitive;
    end;

procedure set_build_insensitive(var a : TGtkPixmap; __build_insensitive : guint);
    begin
       a.flag0:=a.flag0 or ((__build_insensitive shl bp_TGtkPixmap_build_insensitive) and bm_TGtkPixmap_build_insensitive);
    end;

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

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

{$endif read_implementation}


{
  $Log: gtkpixmap.pp,v $
  Revision 1.2  2002/09/07 15:43:00  peter
    * old logs removed and tabs fixed

  Revision 1.1  2002/01/29 17:55:12  peter
    * splitted to base and extra

}
