// included by gtk2.pas

{$IFDEF read_forward_definitions}
{$ENDIF read_forward_definitions}

//------------------------------------------------------------------------------

{$IFDEF read_interface_types}
   PGtkStockItem = ^TGtkStockItem;
   TGtkStockItem = record
        stock_id : Pgchar;
        _label : Pgchar;
        modifier : TGdkModifierType;
        keyval : guint;
        translation_domain : Pgchar;
     end;
{$ENDIF read_interface_types}

//------------------------------------------------------------------------------

{$IFDEF read_interface_rest}
const
   GTK_STOCK_DIALOG_INFO = 'gtk-dialog-info';
   GTK_STOCK_DIALOG_WARNING = 'gtk-dialog-warning';
   GTK_STOCK_DIALOG_ERROR = 'gtk-dialog-error';
   GTK_STOCK_DIALOG_QUESTION = 'gtk-dialog-question';
   GTK_STOCK_DND = 'gtk-dnd';
   GTK_STOCK_DND_MULTIPLE = 'gtk-dnd-multiple';
   GTK_STOCK_ADD_name = 'gtk-add';
   GTK_STOCK_APPLY = 'gtk-apply';
   GTK_STOCK_BOLD = 'gtk-bold';
   GTK_STOCK_CANCEL = 'gtk-cancel';
   GTK_STOCK_CDROM = 'gtk-cdrom';
   GTK_STOCK_CLEAR = 'gtk-clear';
   GTK_STOCK_CLOSE = 'gtk-close';
   GTK_STOCK_CONVERT = 'gtk-convert';
   GTK_STOCK_COPY = 'gtk-copy';
   GTK_STOCK_CUT = 'gtk-cut';
   GTK_STOCK_DELETE = 'gtk-delete';
   GTK_STOCK_EXECUTE = 'gtk-execute';
   GTK_STOCK_FIND = 'gtk-find';
   GTK_STOCK_FIND_AND_REPLACE = 'gtk-find-and-replace';
   GTK_STOCK_FLOPPY = 'gtk-floppy';
   GTK_STOCK_GOTO_BOTTOM = 'gtk-goto-bottom';
   GTK_STOCK_GOTO_FIRST = 'gtk-goto-first';
   GTK_STOCK_GOTO_LAST = 'gtk-goto-last';
   GTK_STOCK_GOTO_TOP = 'gtk-goto-top';
   GTK_STOCK_GO_BACK = 'gtk-go-back';
   GTK_STOCK_GO_DOWN = 'gtk-go-down';
   GTK_STOCK_GO_FORWARD = 'gtk-go-forward';
   GTK_STOCK_GO_UP = 'gtk-go-up';
   GTK_STOCK_HELP = 'gtk-help';
   GTK_STOCK_HOME = 'gtk-home';
   GTK_STOCK_INDEX = 'gtk-index';
   GTK_STOCK_ITALIC = 'gtk-italic';
   GTK_STOCK_JUMP_TO = 'gtk-jump-to';
   GTK_STOCK_JUSTIFY_CENTER = 'gtk-justify-center';
   GTK_STOCK_JUSTIFY_FILL = 'gtk-justify-fill';
   GTK_STOCK_JUSTIFY_LEFT = 'gtk-justify-left';
   GTK_STOCK_JUSTIFY_RIGHT = 'gtk-justify-right';
   GTK_STOCK_MISSING_IMAGE = 'gtk-missing-image';
   GTK_STOCK_NEW = 'gtk-new';
   GTK_STOCK_NO = 'gtk-no';
   GTK_STOCK_OK = 'gtk-ok';
   GTK_STOCK_OPEN = 'gtk-open';
   GTK_STOCK_PASTE = 'gtk-paste';
   GTK_STOCK_PREFERENCES = 'gtk-preferences';
   GTK_STOCK_PRINT = 'gtk-print';
   GTK_STOCK_PRINT_PREVIEW = 'gtk-print-preview';
   GTK_STOCK_PROPERTIES = 'gtk-properties';
   GTK_STOCK_QUIT = 'gtk-quit';
   GTK_STOCK_REDO = 'gtk-redo';
   GTK_STOCK_REFRESH = 'gtk-refresh';
   GTK_STOCK_REMOVE = 'gtk-remove';
   GTK_STOCK_REVERT_TO_SAVED = 'gtk-revert-to-saved';
   GTK_STOCK_SAVE = 'gtk-save';
   GTK_STOCK_SAVE_AS = 'gtk-save-as';
   GTK_STOCK_SELECT_COLOR = 'gtk-select-color';
   GTK_STOCK_SELECT_FONT = 'gtk-select-font';
   GTK_STOCK_SORT_ASCENDING = 'gtk-sort-ascending';
   GTK_STOCK_SORT_DESCENDING = 'gtk-sort-descending';
   GTK_STOCK_SPELL_CHECK = 'gtk-spell-check';
   GTK_STOCK_STOP = 'gtk-stop';
   GTK_STOCK_STRIKETHROUGH = 'gtk-strikethrough';
   GTK_STOCK_UNDELETE = 'gtk-undelete';
   GTK_STOCK_UNDERLINE = 'gtk-underline';
   GTK_STOCK_UNDO = 'gtk-undo';
   GTK_STOCK_YES = 'gtk-yes';
   GTK_STOCK_ZOOM_100 = 'gtk-zoom-100';
   GTK_STOCK_ZOOM_FIT = 'gtk-zoom-fit';
   GTK_STOCK_ZOOM_IN = 'gtk-zoom-in';
   GTK_STOCK_ZOOM_OUT = 'gtk-zoom-out';

procedure gtk_stock_add(items:PGtkStockItem; n_items:guint); cdecl; external gtklib;
procedure gtk_stock_add_static(items:PGtkStockItem; n_items:guint); cdecl; external gtklib;
function gtk_stock_lookup(stock_id:Pgchar; item:PGtkStockItem):gboolean; cdecl; external gtklib;
{ Should free the list (and free each string in it also).
   This function is only useful for GUI builders and such.
  }
function gtk_stock_list_ids:PGSList; cdecl; external gtklib;
function gtk_stock_item_copy(item:PGtkStockItem):PGtkStockItem; cdecl; external gtklib;
procedure gtk_stock_item_free(item:PGtkStockItem); cdecl; external gtklib;
{ Stock IDs (not all are stock items; some are images only)  }

{$ENDIF read_interface_rest}
// included by gtk2.pas

