{
   $Id: gtktearoffmenuitem.pp,v 1.1 2002/01/29 17:55:13 peter Exp $
}

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

{$ifdef read_interface}

  type
     PGtkTearoffMenuItem = ^TGtkTearoffMenuItem;
     TGtkTearoffMenuItem = record
          menu_item : TGtkMenuItem;
          flag0 : longint;
       end;

  const
     bm_TGtkTearoffMenuItem_torn_off = $1;
     bp_TGtkTearoffMenuItem_torn_off = 0;
function  torn_off(var a : TGtkTearoffMenuItem) : guint;
procedure set_torn_off(var a : TGtkTearoffMenuItem; __torn_off : guint);

  type
     PGtkTearoffMenuItemClass = ^TGtkTearoffMenuItemClass;
     TGtkTearoffMenuItemClass = record
          parent_class : TGtkMenuItemClass;
       end;

type
  GTK_TEAROFF_MENU_ITEM=PGtkTearoffMenuItem;
  GTK_TEAROFF_MENU_ITEM_CLASS=PGtkTearoffMenuItemClass;

function  GTK_TEAROFF_MENU_ITEM_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_tearoff_menu_item_get_type';
function  GTK_IS_TEAROFF_MENU_ITEM(obj:pointer):boolean;
function  GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass:pointer):boolean;

function  gtk_tearoff_menu_item_get_type:TGtkType;cdecl;external gtkdll name 'gtk_tearoff_menu_item_get_type';
function  gtk_tearoff_menu_item_new:PGtkWidget;cdecl;external gtkdll name 'gtk_tearoff_menu_item_new';

{$endif read_interface}


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

{$ifdef read_implementation}


function  torn_off(var a : TGtkTearoffMenuItem) : guint;
    begin
       torn_off:=(a.flag0 and bm_TGtkTearoffMenuItem_torn_off) shr bp_TGtkTearoffMenuItem_torn_off;
    end;

procedure set_torn_off(var a : TGtkTearoffMenuItem; __torn_off : guint);
    begin
       a.flag0:=a.flag0 or ((__torn_off shl bp_TGtkTearoffMenuItem_torn_off) and bm_TGtkTearoffMenuItem_torn_off);
    end;

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

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

{$endif read_implementation}


{
  $Log: gtktearoffmenuitem.pp,v $
  Revision 1.1  2002/01/29 17:55:13  peter
    * splitted to base and extra

  Revision 1.2  2000/07/13 11:33:24  michael
  + removed logs
 
}
